/* Coded homepage hero — see inc/hero.php
   Full-bleed (breaks out of the theme container). Height = viewport minus whatever sits
   above the hero (--lls-hero-top is measured by js/hero.js; 210px is the desktop header
   fallback), so the section always ends at the fold. Type, spacing and the stage scale
   with the viewport (vw for width, vh for height) so the box is filled at every size.
   Layout: lattice stage left, copy right (>= 992px); stacked, stage on top, below that. */
.lls-hero{position:relative;overflow:hidden;box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);height:calc(100vh - var(--lls-hero-top,210px));height:calc(100svh - var(--lls-hero-top,210px));min-height:0;padding:0;color:#fff;font-family:'Rubik',sans-serif;background-color:#07090b;background-image:radial-gradient(ellipse 60% 50% at 18% 28%,rgba(18,126,143,.28),transparent 70%),radial-gradient(ellipse 50% 45% at 84% 76%,rgba(47,183,199,.16),transparent 70%),radial-gradient(rgba(255,255,255,.07) 1px,transparent 1.5px);background-size:auto,auto,26px 26px;background-position:0 0,0 0,center}
.lls-hero__inner{position:relative;box-sizing:border-box;width:100%;max-width:min(2000px,92vw);margin:0 auto;padding:clamp(16px,3vh,56px) clamp(20px,3vw,48px);text-align:center}
.lls-hero.has-stage .lls-hero__inner{display:grid;grid-template-columns:minmax(0,58fr) minmax(0,42fr);gap:clamp(6px,1.4vh,16px) clamp(24px,4vw,72px);align-items:center;text-align:left} /* row gap small (the chip strip sits close under the columns), column gap wide */
.lls-hero__copy{min-width:0}
.lls-hero__stage{order:-1} /* machines on the left, copy on the right (stacked: machines on top) */
.lls-hero__eyebrow{margin:0 0 clamp(4px,1.2vh,14px);font-size:clamp(12px,.8vw,15px);font-weight:500;letter-spacing:.34em;text-transform:uppercase;color:#8fd3dc}
.lls-hero__title{display:block;margin:0 0 clamp(8px,1.8vh,22px);font-family:'Rubik',sans-serif;font-weight:700;font-size:min(clamp(28px,3.6vw,64px),6.2vh);line-height:1.08;letter-spacing:.01em;text-transform:uppercase;color:#fff}
.lls-hero__line{display:block}
/* stacked words: every label occupies the same grid cell, so the cell is sized by the longest one and never reflows */
.lls-hero__words{display:grid;justify-items:center;justify-content:center;margin:0 auto;white-space:nowrap}
.lls-hero.has-stage .lls-hero__words{justify-items:start;justify-content:start;margin:0}
.lls-hero__word{grid-area:1/1;display:block;color:#2fb7c7;white-space:nowrap;opacity:0;transform:translateY(8px);transition:opacity .38s ease,transform .38s ease;pointer-events:none}
.lls-hero__word.is-active{opacity:1;transform:none}
.lls-hero__sub{margin:0 auto clamp(14px,2.8vh,30px);max-width:34em;font-family:'Noto Sans',sans-serif;font-size:min(clamp(14px,1.15vw,20px),2.2vh);line-height:1.5;color:rgba(255,255,255,.82)}
.lls-hero.has-stage .lls-hero__sub{margin-left:0;margin-right:0}
.lls-hero__actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-bottom:0}
.lls-hero.has-stage .lls-hero__actions{justify-content:flex-start}
.lls-hero__btn{display:inline-block;padding:clamp(13px,1.6vh,17px) clamp(24px,1.9vw,34px);border:2px solid transparent;border-radius:3px;font:700 clamp(12px,.85vw,15px)/1 'Rubik',sans-serif;letter-spacing:.12em;text-transform:uppercase;text-decoration:none;transition:background .2s,color .2s,border-color .2s}
.lls-hero__btn--primary{background:#127e8f;border-color:#127e8f;color:#fff}
.lls-hero__btn--primary:hover,.lls-hero__btn--primary:focus{background:#0e6673;border-color:#0e6673;color:#fff}
.lls-hero__btn--ghost{background:transparent;border-color:rgba(255,255,255,.6);color:#fff}
.lls-hero__btn--ghost:hover,.lls-hero__btn--ghost:focus{background:#fff;border-color:#fff;color:#07090b}
/* industry chips: a full-width strip under both columns (grid row 2), wraps to ~2 rows on desktops */
.lls-hero__industries{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;max-width:none;margin:clamp(8px,2vh,28px) auto 0} /* full inner width: 13 chips = 2 rows from 1180px up */
.lls-hero.has-stage .lls-hero__industries{grid-column:1/-1}
.lls-hero__chip{display:inline-block;padding:7px 13px;border:1px solid rgba(255,255,255,.26);border-radius:999px;background:rgba(255,255,255,.04);font:500 clamp(11px,.75vw,14px)/1.2 'Noto Sans',sans-serif;color:rgba(255,255,255,.85);text-decoration:none;white-space:nowrap;transition:border-color .2s,color .2s,background .2s}
.lls-hero__chip:hover,.lls-hero__chip:focus,.lls-hero__chip.is-current{border-color:#2fb7c7;background:rgba(18,126,143,.35);color:#fff}
.lls-hero__chip.is-cannabis{border-color:rgba(47,183,199,.7)}
/* marquee clones exist only for the phone loop */
.lls-hero__chip.is-clone{display:none}
/* lattice stage: keeps 3:2, as wide as its column allows, capped by what fits under the fold */
/* width cap = (hero height - paddings - caption - the chip strip's 2-3 rows) * 3/2 */
.lls-hero__stage{position:relative;box-sizing:border-box;width:min(100%,calc((100svh - var(--lls-hero-top,210px) - 2*clamp(16px,3vh,56px) - 30px - clamp(90px,13vh,130px)) * 1.5));aspect-ratio:3/2;margin:0 auto 24px}
.lls-hero__lattice,.lls-hero__still{position:absolute;inset:0;display:block;width:100%;height:100%}
.lls-hero__still{object-fit:contain;opacity:.9;transition:opacity .5s ease;pointer-events:none}
.lls-hero__stage.is-ready .lls-hero__still{opacity:0}
.lls-hero__caption{position:absolute;left:0;right:0;bottom:-24px;margin:0;font:500 clamp(10px,.62vw,12px)/1.4 'Noto Sans',sans-serif;letter-spacing:.16em;text-transform:uppercase;color:rgba(255,255,255,.5);text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lls-hero__caption-link{color:#8fd3dc;text-decoration:none;margin-left:.9em}
.lls-hero__caption-link:hover,.lls-hero__caption-link:focus{color:#fff}
/* 3D mode (js/hero-3d/engine.js): WebGL canvas, leader lines and part labels over the stage; labels on desktop only */
.lls-hero__gl,.lls-hero__leaders{position:absolute;inset:0;display:block;width:100%;height:100%;pointer-events:none}
.lls-hero__leaders{overflow:visible}
.lls-hero__lbl{position:absolute;top:0;left:0;padding:3px 5px;background:rgba(7,9,11,.78);font:10.5px/1 ui-monospace,"SFMono-Regular","Cascadia Mono",Consolas,monospace;letter-spacing:.12em;text-transform:uppercase;color:rgba(230,240,242,.78);white-space:nowrap;pointer-events:none;transition:opacity .3s linear}
.lls-hero__lbl i{font-style:normal;color:#2fb7c7;margin-right:.7em}
.lls-hero__stage.is-narrow .lls-hero__lbl,.lls-hero__stage.is-narrow .lls-hero__leaders{display:none}

/* small laptops (1024-1366 wide): compact chips so 13 of them make 2 rows, not 3 */
@media (min-width:992px) and (max-width:1366px){
	.lls-hero__industries{gap:6px}
	.lls-hero__chip{padding:6px 10px;font-size:11px}
}
/* short desktop viewports (<= 780px tall): smaller title, more of the fold reserved for the chip strip */
@media (min-width:992px) and (max-height:780px){
	.lls-hero__title{font-size:min(clamp(28px,3.6vw,64px),5.6vh)}
	.lls-hero__sub{margin-bottom:10px;font-size:14px}
	.lls-hero__eyebrow{margin-bottom:4px}
	.lls-hero__stage{width:min(100%,calc((100svh - var(--lls-hero-top,210px) - 2*clamp(16px,3vh,56px) - 30px - 150px) * 1.5));margin-bottom:20px}
}
/* tablets: stack, machine on top, chips wrap centred */
@media (max-width:991px){
	.lls-hero.has-stage .lls-hero__inner{grid-template-columns:1fr;gap:12px;align-content:center}
	.lls-hero__stage{width:min(100%,calc((100svh - var(--lls-hero-top,210px)) * .38 * 1.5));margin:0 auto 26px}
	.lls-hero__title{font-size:min(clamp(26px,4.6vw,44px),6.4vh)}
	.lls-hero__sub{max-width:none}
	.lls-hero.has-stage .lls-hero__industries{margin-top:clamp(8px,2vh,20px)}
	.lls-hero__lbl,.lls-hero__leaders{display:none}
}
/* phones: the header already eats ~35% of the screen, so everything below is tightened to fit above the fold */
@media (max-width:767px){
	.lls-hero__inner{padding:12px 20px 14px}
	.lls-hero.has-stage .lls-hero__inner{gap:6px}
	.lls-hero__stage{width:100%;aspect-ratio:auto;height:30svh;margin:0 0 20px}
	.lls-hero__caption{bottom:-16px;text-align:left;font-size:10px}
	.lls-hero__caption-name{display:none} /* industry only; the vendor/model line is too long for a phone */
	.lls-hero__caption-link{margin-left:0}
	.lls-hero__eyebrow{display:none} /* redundant with the logo directly above */
	.lls-hero__title{margin-bottom:8px;font-size:min(clamp(22px,6.8vw,26px),5.6vh)}
	.lls-hero__sub{margin-bottom:12px;font-size:14px;line-height:1.4}
	.lls-hero__actions{gap:8px}
	.lls-hero__btn{padding:12px 16px;font-size:12px;letter-spacing:.1em}
	.lls-hero__chip{font-size:12px}
	/* looping marquee strip: native horizontal scroll (swipeable), auto-advanced by js/hero.js */
	.lls-hero__industries{flex-wrap:nowrap;justify-content:flex-start;max-width:none;margin:12px -20px 0;padding:0 20px 4px;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;scroll-behavior:auto;scrollbar-width:none;overscroll-behavior-x:contain}
	.lls-hero.has-stage .lls-hero__industries{margin:12px -20px 0}
	.lls-hero__industries::-webkit-scrollbar{display:none}
	.lls-hero__chip{flex:0 0 auto}
	.lls-hero__chip.is-clone{display:inline-block}
}
@media (prefers-reduced-motion:reduce){.lls-hero__word{transition:none}.lls-hero__still{transition:none}}
