/* ---------- Loopgents view (#loopgents): a painted hero with the copy on the left and a square live animation on the right,
   the three feature cards in the homepage card design (features.css), and a board of real questions ---------- */

/* hero: the painting behind (white ink), the copy and the 3:2 live animation (scene lgHero) side by side, both vertically
   centred. The animation sits on its marble in the glass rim (Nick asked for it back) */
.lgp-hero{display:flex;flex-direction:column;justify-content:center;min-height:clamp(620px,52vw,860px);padding-bottom:clamp(48px,5vw,80px)}
.lgp-hero .wfp-sky{bottom:0;height:auto}
/* the painting is drawn by code (tools/art/lg_tower/gen_hero.py); its night is #131314, so the frame matches at the edges */
#loopgents .wfp-sky{background:#131314}
/* past 1920 px the copy and the window stop growing (--grid) but a cover-fit painting kept scaling up under them (the
   tower crown slid under the logo at 2560): hold it at its 1920 size, anchored bottom centre, sides fading into the night */
@media (min-width:1921px){.lgp-hero .wfp-sky img{width:1920px;height:auto;min-height:0;bottom:0;top:auto;-webkit-mask-image:linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent);mask-image:linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent)}}
.lgp-hero-in{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);align-items:start;gap:clamp(32px,5vw,80px);width:min(var(--grid),100%);margin:0 auto}
.lgp-hero-copy{display:flex;flex-direction:column;align-items:flex-start;gap:20px}
.lgp-hero-copy .ctas{margin-top:6px}
/* the pixel badge above the title: Geist Pixel caps + the pixel Loopgents icon (the Product menu's), the site's badge shape
   (f-badge) tinted Loopgents magenta for the dark hero */
.lgp-badge{--cc:#FF4FD8;display:inline-flex;align-items:center;gap:9px;height:34px;padding:0 13px 0 10px;border-radius:7px;background:color-mix(in srgb,var(--cc) 14%,rgba(20,18,26,.55));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--cc) 48%,transparent);color:#fff;font:400 13px/1 var(--pixel);letter-spacing:.08em;text-transform:uppercase;white-space:nowrap;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.lgp-badge svg{width:18px;height:18px;flex:none;color:var(--cc)}
.lgp-lede{font:450 clamp(15.5px,1.22vw,18px)/1.5 var(--sans);color:rgba(255,255,255,.88);text-wrap:pretty}
.lgp-hero-anim{justify-self:end;width:min(700px,100%);padding:14px;border-radius:22px;background:rgba(255,255,255,.12);box-shadow:0 40px 80px -40px rgba(0,0,0,.6);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.lgp-hero-anim .wfp-well{border-radius:12px}
@media (max-width:900px){
  .lgp-hero{min-height:0}
  .lgp-hero .wfp-sky img{height:62%;-webkit-mask-image:linear-gradient(to bottom,transparent,#000 14%);mask-image:linear-gradient(to bottom,transparent,#000 14%)}
  .lgp-hero-in{grid-template-columns:minmax(0,1fr);gap:36px}
  .lgp-hero-anim{justify-self:center;width:min(640px,100%);padding:8px;border-radius:16px}
}

/* Loopgents hero (Nick, 2026-10-24): the "ring of Loopgents" painting with the copy centred in its white oval, in dark ink,
   no badge, no animation. The painting starts under the header on its own near-black (#041000) and fades in, so nothing in
   it sits behind the navbar text; it's cover-fitted around the oval's middle (a 2:1 picture), cropped to its centre on
   phones. The rules above stay for the Functions hero, which is built on this one */
/* the copy starts a quarter of the way down the picture (--img: its height), below the props and above the ring */
#loopgents .lgp-hero{--hd:64px;--img:clamp(576px,50vw,976px);display:flex;align-items:flex-start;justify-content:center;min-height:calc(var(--img) + var(--hd));padding:calc(var(--hd) + var(--img) * .245) var(--gut) clamp(60px,6vw,110px)}
#loopgents .wfp-sky{top:0;bottom:0;height:auto;background:#041000}
#loopgents .lgp-hero .wfp-sky img{top:var(--hd);bottom:auto;left:0;width:100%;height:calc(100% - var(--hd));min-height:0;transform:none;object-fit:cover;object-position:50% 55%;-webkit-mask-image:linear-gradient(to bottom,transparent,#000 56px);mask-image:linear-gradient(to bottom,transparent,#000 56px)}
#loopgents .lgp-hero-in{display:block;width:min(800px,100%)}
#loopgents .lgp-hero-copy{align-items:center;gap:18px;text-align:center}
#loopgents .lgp-hero-copy .ctas{justify-content:center;margin-top:8px}
/* the page's paper laid over the painting (Nick, 2026-10-24), multiplied in so the white oval reads as the same paper as the
   page below and the night keeps its ink. Phones (<=480px) get ring-ph, the middle 640 x 1000 of the picture: all they show */
#loopgents .lgp-hero .wfp-sky::after{content:"";position:absolute;inset:0;background:var(--paper);mix-blend-mode:multiply;pointer-events:none}
#loopgents .lgp-hero h1{max-width:14em;color:#141414;font-size:var(--h1);line-height:1.06}
#loopgents .lgp-lede{max-width:41em;font-size:clamp(15px,1.2vw,18px);color:rgba(20,20,20,.74)}
/* the home testimonials card under it, with one testimonial shown open (the home pop-up's face, quote and name); it rises
   into the haze below the ring (on home it rises 130px over the hero) */
#loopgents .trusted{margin-top:clamp(-30px,-1.6vw,-12px)}
#loopgents .lgp-tm{display:grid;grid-template-columns:112px minmax(0,1fr);gap:24px;width:min(680px,100%);margin:8px auto 0;text-align:left}
#loopgents .lgp-tm .tm-quote{font-size:16px}
/* phones skip it (Nick, 2026-10-24): the hero goes straight into the feature cards, and the photo (lazy) never loads */
@media (max-width:720px){#loopgents .lgp-trusted{display:none}}
@media (max-width:720px){
  #loopgents .lgp-hero{--hd:52px;align-items:flex-start;min-height:clamp(640px,186vw,800px);padding-top:clamp(104px,28vw,128px)}
  #loopgents .lgp-hero .wfp-sky img{object-position:50% 100%;-webkit-mask-image:linear-gradient(to bottom,transparent,#000 40px);mask-image:linear-gradient(to bottom,transparent,#000 40px)}
  #loopgents .lgp-hero h1{font-size:clamp(28px,8vw,34px)}
  #loopgents .lgp-hero-copy{gap:14px}
  #loopgents .lgp-lede{font-size:15.5px}
}
/* the smallest phones: the copy is about as tall as the clear oval between the props (they end 29.3% down the picture)
   and the crew (72%), so centred it ran the H1 into the tablet. The hero grows a little (the picture with it) and the
   copy starts just under the props, tied to the picture's height */
@media (max-width:374px){
  #loopgents .lgp-hero{--H:720px;min-height:var(--H);justify-content:flex-start;padding-top:calc(var(--hd) + (var(--H) - var(--hd)) * .305)}
}

/* the three feature cards: the homepage's cards, below the hero */
.lgp-features{padding-top:clamp(40px,4vw,64px);padding-bottom:clamp(48px,5vw,80px)}   /* Nick, 2026-10-23: less air above the question board */

/* section heads */
.lgp-board{position:relative;padding:clamp(48px,5.5vw,88px) var(--gut) clamp(56px,7vw,104px)}
.lgp-sec-head{display:flex;flex-direction:column;align-items:center;gap:14px;max-width:44em;margin:0 auto clamp(40px,5vw,64px);text-align:center}
.lgp-sec-head h2{margin:0;font:500 var(--h2)/1.1 var(--sans);letter-spacing:-.02em;color:#18161D;text-wrap:balance}
.lgp-sec-head p{font:400 clamp(14.5px,1.12vw,16px)/1.55 var(--sans);color:var(--fg-70);text-wrap:pretty}

/* the question board: four themed columns of taped paper notes, each saying what comes back */
.lgp-qgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(22px,2.6vw,40px);width:min(var(--grid-body),100%);margin:0 auto}
.lgp-qhead{display:flex;align-items:center;gap:9px;margin:0 0 22px;padding-left:2px;font:400 12px/1 var(--pixel);letter-spacing:.06em;text-transform:uppercase;color:rgba(0,0,0,.62)}
.lgp-qic{width:18px;height:18px;flex:none}
.lgp-qcol ul{display:flex;flex-direction:column;gap:24px;margin:0;padding:0;list-style:none}
.lgp-q{position:relative;display:flex;flex-direction:column;gap:16px;min-height:136px;padding:26px 20px 18px;border-radius:3px;background:var(--paper);transform:rotate(var(--tilt));box-shadow:0 1px 1px rgba(0,0,0,.05),0 12px 20px -14px rgba(60,50,30,.42);transition:transform .3s cubic-bezier(.2,.7,.2,1)}
/* only where a pointer really hovers: a tap on a phone left the note straightened and lifted until the next tap */
@media (hover:hover){.lgp-q:hover{transform:rotate(0) translateY(-4px)}}
.lgp-q p{font:500 15.5px/1.38 var(--sans);color:rgba(0,0,0,.84);text-wrap:pretty}
@media (min-width:1024px){.lgp-q p{text-wrap:balance}}   /* the body column's narrower notes: "Have they bought another / company?" split evenly */
/* a hyphenated word kept whole (pre-trained, mid-market); TikTok Sans has no non-breaking hyphen (U+2011) */
.lgp-nw{white-space:nowrap}
.lgp-q-tape{position:absolute;top:-10px;left:50%;width:62px;height:20px;transform:translateX(-50%) rotate(-3deg);background:rgba(255,255,255,.58);box-shadow:0 1px 2px rgba(0,0,0,.08);-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 5px,#000 calc(100% - 5px),transparent);mask-image:linear-gradient(90deg,transparent 0,#000 5px,#000 calc(100% - 5px),transparent)}
.lgp-ret{align-self:flex-start;display:inline-flex;align-items:center;height:24px;margin-top:auto;padding:0 8px;border-radius:5px;background:rgba(255,255,255,.6);box-shadow:inset 0 0 0 1px rgba(0,0,0,.08);font:400 11px/1 var(--pixel);letter-spacing:.02em;color:rgba(0,0,0,.66);white-space:nowrap}
@media (prefers-reduced-motion:reduce){.lgp-q{transition:none}}
@media (max-width:1100px){.lgp-qgrid{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:48px}}
/* phones: each theme is one row of notes you swipe sideways, the next note peeking in at the edge (stacked full width,
   the 16 notes ran to ~2,650 px). Half the tilt, as it shows more on a wide note; less air above the board heading */
@media (max-width:600px){
  .lgp-board{padding-top:24px}
  .lgp-qgrid{grid-template-columns:minmax(0,1fr);row-gap:18px}
  .lgp-qhead{margin-bottom:6px}
  .lgp-qcol ul{flex-direction:row;gap:14px;margin:0 calc(-1*var(--gut));padding:16px var(--gut) 24px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-padding-inline:var(--gut)}
  .lgp-q{flex:0 0 min(74%,300px);min-height:0;scroll-snap-align:start;transform:rotate(calc(var(--tilt)*.5))}
}
