/* ---------- Waterfalls view (#waterfalls): the loopster-x prototype/waterfalls on the home page's grid and type ----------
   A sunset-over-water hero with the product loop, then four crayon bands (yellow / pink / cyan / yellow) strung on a
   ribbon, each with a live product scene in the live card frames, a taped note and a pair of doodles. */
.wfp{position:relative;isolation:isolate;overflow-x:clip}

/* hero: night top, the live sunset painting, the product straddling the paper below */
.wfp-hero{position:relative;isolation:isolate;padding:clamp(116px,12vw,190px) var(--gut) 10px}
.wfp-sky{position:absolute;left:0;right:0;top:0;z-index:-1;height:clamp(560px,53vw,880px);overflow:hidden;background:#181C1B}
.wfp-sky img{position:absolute;left:50%;bottom:0;width:max(100%,640px);height:100%;max-width:none;transform:translateX(-50%);object-fit:cover;object-position:50% 100%}
.wfp-sky i{position:absolute;inset:0;background-size:256px 256px;opacity:.1;pointer-events:none}
.wfp-sky .g1{background-image:url(assets/site/grain-dark.avif);mix-blend-mode:difference}
.wfp-sky .g2{background-image:url(assets/site/grain-light.avif);mix-blend-mode:plus-lighter}
.wfp-hero-copy{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(24px,4vw,64px);width:min(var(--grid),100%);margin:0 auto}
.wfp-hero h1{margin:0;max-width:13em;font:500 var(--h1)/1.1 var(--sans);letter-spacing:-.02em;color:#fff;text-wrap:balance}
.wfp-hero-body{max-width:31em;justify-self:end}
.wfp-hero-body p{font:450 clamp(15.5px,1.22vw,18px)/1.5 var(--sans);color:rgba(255,255,255,.88);text-wrap:pretty}
.wfp-hero-body .ctas{margin-top:24px}
.wfp-hero-shot{width:min(var(--grid),100%);margin:clamp(48px,6vw,96px) auto 0;padding:14px;border-radius:22px;background:rgba(255,255,255,.12);box-shadow:0 40px 80px -40px rgba(0,0,0,.6)}
.wfp-hero-shot .wfp-well{border-radius:12px}
@media (max-width:900px){.wfp-hero-copy{grid-template-columns:minmax(0,1fr)}.wfp-hero-body{justify-self:start}.wfp-hero-shot{padding:8px;border-radius:16px}}
/* phones and tablets: the copy stacks over the dark sky, so the painting (--art high, its top fading into the sky)
   starts under the button and the sun rises in the gap above the product, as udp.css does. All of it scales with the
   screen: the gap is .26 --art; the sky ends .32 --art into the product shot (a full-width 1160:740 well + 8px padding
   a side, over the hero's 10px bottom padding), which puts the sun (its centre .45 --art above the painting's bottom)
   mid-gap. At 108vw the painting shows the middle ~1180 of its 2400px, the sharp part of the phone file (wf/sky-ph). */
@media (max-width:900px){
  #waterfalls .wfp-hero{--art:min(108vw,520px)}
  #waterfalls .wfp-hero-shot{margin-top:calc(var(--art) * .26)}
  #waterfalls .wfp-sky{height:auto;bottom:calc((100vw - 2 * var(--gut) - 16px) * 740 / 1160 + 26px - var(--art) * .32)}
  #waterfalls .wfp-sky img{height:var(--art);-webkit-mask-image:linear-gradient(to bottom,transparent,#000 22%);mask-image:linear-gradient(to bottom,transparent,#000 22%)}
}

/* the bands, strung on a ribbon running down the middle */
.wfp-bands{position:relative;display:flex;flex-direction:column;align-items:center;gap:clamp(120px,11vw,160px);padding:clamp(120px,11vw,160px) var(--gut) clamp(140px,12vw,170px);overflow-x:clip}
.wfp-ribbon{position:absolute;top:0;bottom:0;left:50%;z-index:-2;width:167px;margin-left:-83.5px;background:url(assets/site/illustrations/ribbon-tile.webp) 0 0/167px auto repeat-y;transform-origin:50% 50%}
.wfp-ribbon{background:none}
.wfp-ribbon::before{content:"";position:absolute;left:50%;top:50%;width:12000px;height:167px;transform:translate(-50%,-50%) rotate(-90deg);background:url(assets/site/illustrations/ribbon-tile.webp) left/1021.5px 167px repeat-x}
.wfp-ribbon{overflow:hidden}
.wfp-band{position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:center;gap:52px;width:min(var(--grid),100%);padding:clamp(48px,6vw,128px) clamp(16px,4.4vw,64px) clamp(112px,9vw,128px)}
.wfp-band::before{content:"";position:absolute;inset:-9px;z-index:-1;pointer-events:none;border-style:solid;border-width:58px;border-image-source:var(--frame);border-image-slice:116 fill;border-image-width:58px;border-image-repeat:repeat}
.wfp-bh{display:flex;flex-direction:column;align-items:center;gap:16px;width:100%;padding-bottom:40px;border-bottom:1px solid color-mix(in srgb,var(--bink) 22%,transparent);text-align:center;color:var(--bink)}
.wfp-wide .wfp-bh{border-bottom:0;padding-bottom:0}
.wfp-bh-ic{width:28px;height:28px}
.wfp-bh h2{margin:0;font:500 clamp(27px,2.34vw,34px)/1.1 var(--sans);letter-spacing:-.02em;color:var(--bink);text-wrap:balance;scroll-margin-top:110px}
/* a two-part title: the second line answers the first, a shade lighter */
.wfp-h2-soft{opacity:.72}
@media (max-width:640px){.wfp-br{display:none}}
.wfp-sub{max-width:36em;font:400 clamp(14.5px,1.08vw,16px)/1.55 var(--sans);color:rgba(0,0,0,.72);text-wrap:pretty}

.wfp-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,640px);align-items:center;gap:clamp(32px,4vw,72px);width:100%}
@media (max-width:1023px){.wfp-grid{grid-template-columns:minmax(0,1fr)}}
.wfp-list{position:relative;display:flex;flex-direction:column;gap:clamp(32px,3.6vw,52px);margin:0;padding:0;list-style:none}
.wfp-list li{position:relative;display:grid;grid-template-columns:22px minmax(0,1fr);gap:16px;align-items:start}
.wfp-li-ic{width:22px;height:22px;margin-top:2px;color:color-mix(in srgb,var(--bink) 80%,#000)}
.wfp-list h3{margin:0 0 8px;font:500 16.5px/1.3 var(--sans);color:rgba(0,0,0,.86)}
.wfp-list p{max-width:30em;font:400 14.5px/1.55 var(--sans);color:rgba(0,0,0,.68);text-wrap:pretty}
.wfp-steps li:not(:last-child)::after{content:"";position:absolute;left:10px;top:34px;bottom:calc(-1 * clamp(32px,3.6vw,52px) + 6px);width:1px;background:color-mix(in srgb,var(--bink) 30%,transparent)}
.wfp-n{color:color-mix(in srgb,var(--bink) 85%,#000)}
.wfp-price{font-weight:600;color:rgba(0,0,0,.86);white-space:nowrap}

/* a product mockup in the live crayon card frame */
.wfp-shot{position:relative;isolation:isolate;width:100%;padding:16px}
.wfp-shot::before{content:"";position:absolute;inset:-9px;z-index:-1;pointer-events:none;border-style:solid;border-width:58px;border-image-source:var(--frame);border-image-slice:116 fill;border-image-width:58px;border-image-repeat:repeat}
.wfp-shot-wide{max-width:1100px}
.wfp-well{margin-top:0}

/* taped notes overlapping the bottom edge of each band */
.wfp-note{position:absolute;left:50%;bottom:0;z-index:2;width:min(300px,calc(100% - 32px));transform:translate(-50%,46%) rotate(-2deg);filter:drop-shadow(0 4px 6px rgba(108,98,78,.14))}
.wfp-note::before{content:"";position:absolute;inset:-9px;pointer-events:none;border-style:solid;border-width:58px;border-image-source:var(--frame);border-image-slice:116 fill;border-image-width:58px;border-image-repeat:repeat}
.wfp-note-in{position:relative;display:flex;flex-direction:column;align-items:center;gap:10px;padding:28px 22px 30px;text-align:center;text-wrap:balance}
.wfp-note-in p{font:400 13.5px/1.45 var(--sans);color:rgba(0,0,0,.72)}
.wfp-note-in .wfp-note-h{font:500 16.5px/1.3 var(--sans);color:rgba(0,0,0,.84)}
.wfp-note-ic{width:40px;height:40px;color:rgba(0,0,0,.8)}
.wfp-tape{position:absolute;top:-12px;left:50%;z-index:1;width:84px;height:24px;transform:translateX(-50%) rotate(3deg);background:rgba(255,255,255,.55);box-shadow:0 1px 2px rgba(0,0,0,.08);-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 6px,#000 calc(100% - 6px),transparent);mask-image:linear-gradient(90deg,transparent 0,#000 6px,#000 calc(100% - 6px),transparent)}
.wfp-logos{display:flex;align-items:center}
.wfp-logos img{width:26px;height:26px;margin-left:-5px;padding:3px;border-radius:50%;background:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.08)}
.wfp-logos img:first-child{margin-left:0}

.wfp-deco{position:absolute;z-index:1;display:none;max-width:none;height:auto;pointer-events:none}
@media (min-width:1280px){.wfp-deco{display:block}}
@media (max-width:640px){.wfp-band{gap:36px}.wfp-bh{padding-bottom:28px}.wfp-note{transform:translate(-50%,52%) rotate(-2deg)}}

/* ---------- footer CTA on this page: the live mountain art and its own line ---------- */
.foot-cta-mountain{display:none}
body[data-view="waterfalls"] .foot-cta-main{display:none}
body[data-view="waterfalls"] .foot-cta-mountain{display:flex}
.foot-cta.foot-cta-mountain{height:auto;min-height:448px;flex-direction:column;align-items:center;justify-content:flex-start;padding:48px 24px 128px}
/* the live placement: the painting sits under the copy, its dark sky behind the heading. 112% wide: shifted 4.9% left,
   at 100% its right edge stopped short of the card and the mountain's slope ended in a straight cut */
.mountain-art{position:absolute;z-index:-1;top:calc(100% - 120px);left:50%;width:max(112%,380px);max-width:none;height:auto;transform:translate(-54.9%,-10.7%)}
.foot-cta-mountain .fc-grain{position:absolute;inset:0;z-index:-1;background-size:256px 256px;opacity:.1;pointer-events:none}
.foot-cta-mountain .fc-grain.g1{background-image:url(assets/site/grain-dark.avif);mix-blend-mode:difference}
.foot-cta-mountain .fc-grain.g2{background-image:url(assets/site/grain-light.avif);mix-blend-mode:plus-lighter}
@media (min-width:768px){.foot-cta.foot-cta-mountain{min-height:408px;align-items:center;padding:64px 48px 128px;border-radius:32px 32px 0 0}.mountain-art{top:0;left:calc(12.16% - 140px);width:160%;transform:none}}
@media (min-width:1280px){
  .foot-cta.foot-cta-mountain{height:408px;min-height:0;flex-direction:row;align-items:center;padding:0 48px}
  /* the card is 1060 wide here (the body column, index.html --grid-body): the painting keeps the size and place it has on
     a 1180 card (126% and -17% of 1180), so the climber stays clear of the heading; the card shows less of its right side */
  .mountain-art{top:2.5%;left:-18.92%;width:140.26%}
  .foot-cta-mountain .fc-in{flex-direction:row;align-items:flex-end;justify-content:space-between}
}
