/* Speculate Techs - homepage hero carousel */
@property --o { syntax:'<number>'; inherits:false; initial-value:0; }
@property --ang { syntax:'<angle>'; inherits:false; initial-value:0deg; }

.hx { --ac:#ffffff; --ac2:#9a9a9a; transition:--ac 1.2s ease, --ac2 1.2s ease;
  position:relative; z-index:2; height:100vh; height:100svh; min-height:640px; max-height:1200px; overflow:hidden; background:#000000; color:#ffffff; isolation:isolate; }
.hx *, .hx *::before, .hx *::after { box-sizing:border-box; }
.hx-stage { position:absolute; inset:0; transform-origin:50% 50%; }
.hx-s { position:absolute; inset:0; visibility:hidden; }
.hx-s.is-active, .hx-s.is-leaving { visibility:visible; }
.hx-s.is-active { z-index:2; } .hx-s.is-leaving { z-index:1; }

/* media layers: clip (transition) > parallax > ken burns */
.hx-media { position:absolute; inset:0; overflow:hidden; }
.hx-par { position:absolute; inset:-4%; transform:translate3d(calc(var(--px,0) * 1px), calc(var(--py,0) * 1px), 0); transition:transform .8s cubic-bezier(.2,.8,.2,1); }
.hx-img { width:100%; height:100%; object-fit:cover; display:block; object-position:var(--op,50% 50%); }
.hx-s.is-active .hx-img { animation:hxKen 11s cubic-bezier(.2,.6,.2,1) both; }
@keyframes hxKen { from { transform:scale(1.14); } to { transform:scale(1.02); } }
.hx-s.is-leaving .hx-par { animation:hxOut 1.3s cubic-bezier(.7,0,.2,1) both; }
@keyframes hxOut { to { transform:translate3d(-3%,0,0) scale(1.1); filter:brightness(.45) saturate(.8); } }

/* transitions on the incoming slide's media */
.hx-s.is-active[data-fx="shard"] .hx-media { animation:fxShard 1.25s cubic-bezier(.77,0,.18,1) both; }
@keyframes fxShard { from { clip-path:polygon(56% 0,60% 0,44% 100%,40% 100%); } to { clip-path:polygon(-12% 0,112% 0,112% 100%,-12% 100%); } }
.hx-s.is-active[data-fx="iris"] .hx-media { animation:fxIris 1.3s cubic-bezier(.77,0,.18,1) both; }
@keyframes fxIris { from { clip-path:circle(0% at 82% 74%); } to { clip-path:circle(150% at 82% 74%); } }
.hx-s.is-active[data-fx="blinds"] .hx-media { animation:fxBlinds 1.3s cubic-bezier(.6,0,.2,1) both;
  -webkit-mask-image:repeating-linear-gradient(90deg,#000 0,#000 calc(var(--o) * 12.5%),transparent calc(var(--o) * 12.5%),transparent 12.5%);
  mask-image:repeating-linear-gradient(90deg,#000 0,#000 calc(var(--o) * 12.5%),transparent calc(var(--o) * 12.5%),transparent 12.5%); }
@keyframes fxBlinds { from { --o:0; } to { --o:1.02; } }
.hx-s.is-active[data-fx="scan"] .hx-media { animation:fxScan 1.2s cubic-bezier(.77,0,.18,1) both; }
@keyframes fxScan { from { clip-path:inset(100% 0 0 0); } to { clip-path:inset(0 0 0 0); } }
.hx.is-first .hx-s.is-active .hx-media { animation:none; -webkit-mask-image:none; mask-image:none; }

.hx-shade { position:absolute; inset:0; pointer-events:none;
  background:
    radial-gradient(60% 70% at 18% 70%, color-mix(in srgb,var(--ac) 14%,transparent), transparent 70%),
    linear-gradient(90deg, rgba(0,0,0,.95) 0%, rgba(0,0,0,.8) 30%, rgba(0,0,0,.3) 60%, transparent 82%),
    linear-gradient(0deg, rgba(0,0,0,.8), transparent 30%),
    linear-gradient(180deg, rgba(0,0,0,.6), transparent 22%); }
.hx-s.r .hx-shade { background:
    radial-gradient(60% 70% at 82% 70%, color-mix(in srgb,var(--ac) 14%,transparent), transparent 70%),
    linear-gradient(270deg, rgba(0,0,0,.95) 0%, rgba(0,0,0,.8) 30%, rgba(0,0,0,.3) 60%, transparent 82%),
    linear-gradient(0deg, rgba(0,0,0,.8), transparent 30%),
    linear-gradient(180deg, rgba(0,0,0,.6), transparent 22%); }

/* lighting + HUD overlays */
.hx-fx { position:absolute; inset:0; z-index:3; pointer-events:none; overflow:hidden; }
.hx-fx .aur { position:absolute; width:170vmax; height:170vmax; left:calc(72% - 85vmax); top:calc(38% - 85vmax); background:conic-gradient(from 0deg at 50% 50%, transparent 0 55%, color-mix(in srgb,var(--ac) 30%,transparent) 66%, transparent 78%, color-mix(in srgb,var(--ac2) 26%,transparent) 90%, transparent); mix-blend-mode:screen; opacity:.55; will-change:transform; animation:hxSpin 40s linear infinite; }
@keyframes hxSpin { to { transform:rotate(360deg); } }
.hx.is-paused .aur { animation-play-state:paused; }
.hx-fx .grid { position:absolute; inset:0; background-image:linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px); background-size:84px 84px; -webkit-mask-image:radial-gradient(ellipse at 70% 45%,#000,transparent 70%); mask-image:radial-gradient(ellipse at 70% 45%,#000,transparent 70%); }
.hx-fx .scan { position:absolute; inset:0; background:repeating-linear-gradient(0deg,rgba(255,255,255,.03) 0 1px,transparent 1px 3px); opacity:.6; }
.hx-fx .flare { position:absolute; top:-10%; bottom:-10%; left:-40%; width:36%; transform:skewX(-18deg); opacity:0; mix-blend-mode:screen; background:linear-gradient(90deg,transparent,rgba(255,255,255,.28),var(--ac),transparent); }
.hx-fx .flare.go { animation:hxFlare 1.3s cubic-bezier(.6,0,.2,1); }
@keyframes hxFlare { 0% { left:-40%; opacity:0; } 15% { opacity:1; } 100% { left:130%; opacity:0; } }
.hx-br { position:absolute; width:26px; height:26px; border:0 solid rgba(255,255,255,.4); }
.hx-br.a { left:clamp(14px,2vw,28px); top:92px; border-left-width:1px; border-top-width:1px; }
.hx-br.b { right:clamp(14px,2vw,28px); top:92px; border-right-width:1px; border-top-width:1px; }
.hx-br.c { left:clamp(14px,2vw,28px); bottom:clamp(14px,2vw,28px); border-left-width:1px; border-bottom-width:1px; }
.hx-br.d { right:clamp(14px,2vw,28px); bottom:clamp(14px,2vw,28px); border-right-width:1px; border-bottom-width:1px; }

/* content */
.hx-content { position:absolute; inset:0; z-index:4; display:flex; align-items:center; padding:110px clamp(22px,6vw,96px) 150px; pointer-events:none; }
.hx-s.r .hx-content { justify-content:flex-end; }
.hx-body { max-width:40rem; pointer-events:auto; transform:translate3d(calc(var(--px,0) * -.3px), calc(var(--py,0) * -.3px), 0); }
.hx-s.is-leaving .hx-body { animation:hxBodyOut .45s ease both; }
@keyframes hxBodyOut { to { opacity:0; transform:translateY(-16px); } }
.hx-chip { display:inline-flex; align-items:center; gap:10px; padding:8px 16px; border-radius:999px; text-decoration:none; color:#ffffff; font-family:'Montserrat','Montserrat Fallback',system-ui,-apple-system,'Segoe UI',Arial,sans-serif; font-size:.78rem; font-weight:500; letter-spacing:.14em; text-transform:uppercase; border:1px solid color-mix(in srgb,var(--ac) 55%,transparent); background:color-mix(in srgb,var(--ac) 12%,rgba(0,0,0,.4)); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); }
.hx-chip .dot { background:var(--ac); box-shadow:0 0 0 0 var(--ac); }
.hx-title { font-weight:300; font-size:clamp(2.3rem,5.6vw,5.2rem); line-height:1.02; letter-spacing:-.032em; margin:clamp(18px,3vh,30px) 0 clamp(16px,2.6vh,24px); max-width:15ch; color:#fff; text-shadow:0 4px 40px rgba(0,0,0,.4); }
.hx-title em { font-style:normal; font-weight:400; }
.hx-title em .hx-wi { background:linear-gradient(100deg,#fff,var(--ac) 60%,#fff); -webkit-background-clip:text; background-clip:text; color:transparent; -webkit-text-fill-color:transparent; padding-right:.04em; }
.hx-w { display:inline-block; overflow:hidden; vertical-align:top; padding:0 .04em .16em 0; margin-bottom:-.16em; }
.hx-wi { display:inline-block; opacity:0; transform:translateY(112%) rotate(4deg); }
.hx-lead { font-size:clamp(1rem,1.35vw,1.2rem); line-height:1.7; color:rgba(240,247,255,.82); max-width:33rem; }
.hx-tags { list-style:none; display:flex; flex-wrap:wrap; gap:8px; margin-top:20px; }
.hx-tags li { padding:6px 13px; border-radius:999px; font-size:.78rem; letter-spacing:.05em; border:1px solid rgba(255,255,255,.22); background:rgba(255,255,255,.06); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); color:#eaf4ff; }
.hx-cta { display:flex; flex-wrap:wrap; gap:12px; margin-top:clamp(22px,4vh,36px); }
.hx .btn { color:#ffffff; background:#1B549E; }
.hx .btn:hover { background:#1a4f93; }
.hx .btn.ghost { background:rgba(255,255,255,.06); color:#fff; border:1px solid rgba(255,255,255,.4); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); }
.hx .btn.ghost:hover { background:#fff; color:#000000; border-color:#fff; }
.hx-rise { opacity:0; transform:translateY(22px); }

.hx.is-live .hx-s.is-active .hx-wi { animation:hxWord .95s cubic-bezier(.2,.8,.2,1) both; animation-delay:calc(.5s + var(--i) * 75ms); }
.hx.is-live .hx-s.is-active .hx-rise { animation:hxRise .85s cubic-bezier(.2,.8,.2,1) both; animation-delay:calc(.35s + var(--r) * 110ms); }
.hx.is-live.is-first .hx-s.is-active .hx-wi { animation-delay:calc(.25s + var(--i) * 75ms); }
.hx.is-live.is-first .hx-s.is-active .hx-rise { animation-delay:calc(.15s + var(--r) * 110ms); }
@keyframes hxWord { from { opacity:0; transform:translateY(112%) rotate(4deg); filter:blur(8px); } to { opacity:1; transform:none; filter:none; } }
@keyframes hxRise { from { opacity:0; transform:translateY(22px); } to { opacity:1; transform:none; } }
.hx-s.is-leaving .hx-wi, .hx-s.is-leaving .hx-rise { animation:none; opacity:1; transform:none; }

/* controls */
.hx-ctl { position:absolute; z-index:6; left:0; right:0; bottom:clamp(20px,4.5vh,44px); padding:0 clamp(22px,6vw,96px); display:flex; justify-content:space-between; align-items:flex-end; gap:20px; }
.hx-pgs { display:flex; gap:clamp(8px,1.4vw,18px); flex:1; max-width:760px; }
.hx-pg { flex:1; min-width:0; background:none; border:0; padding:10px 0 4px; cursor:pointer; text-align:left; color:rgba(255,255,255,.58); font-family:'Montserrat','Montserrat Fallback',system-ui,-apple-system,'Segoe UI',Arial,sans-serif; transition:color .3s; }
.hx-pg:hover, .hx-pg.on { color:#fff; }
.hx-pgl { display:block; font-size:.76rem; letter-spacing:.1em; text-transform:uppercase; margin-bottom:10px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.hx-bar { display:block; position:relative; height:2px; background:rgba(255,255,255,.22); overflow:hidden; }
.hx-bar i { position:absolute; inset:0; background:linear-gradient(90deg,var(--ac),#fff); transform:scaleX(0); transform-origin:0 50%; box-shadow:0 0 12px var(--ac); }
.hx-pg.done .hx-bar i { transform:scaleX(1); }
.hx-pg.on .hx-bar i { animation:hxFill var(--dur,8s) linear both; }
@keyframes hxFill { to { transform:scaleX(1); } }
.hx.is-paused .hx-pg.on .hx-bar i { animation-play-state:paused; }
.hx.no-auto .hx-pg.on .hx-bar i { animation:none; transform:scaleX(1); }
.hx-side { display:flex; align-items:center; gap:14px; }
.hx-count { font-family:'Montserrat','Montserrat Fallback',system-ui,-apple-system,'Segoe UI',Arial,sans-serif; font-size:.95rem; letter-spacing:.14em; color:rgba(255,255,255,.7); min-width:4.4em; text-align:right; font-variant-numeric:tabular-nums; }
.hx-count b { color:#fff; font-weight:500; }
.hx-btn { width:48px; height:48px; border-radius:50%; display:grid; place-items:center; cursor:pointer; border:1px solid rgba(255,255,255,.3); background:rgba(255,255,255,.07); color:#fff; backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); transition:background .3s, border-color .3s, transform .3s, color .3s; }
.hx-btn:hover { background:var(--ac); border-color:var(--ac); color:#000000; transform:scale(1.07); }
.hx-btn svg { width:20px; height:20px; stroke:currentColor; fill:none; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.hx-pause .i-play { display:none; } .hx-pause[aria-pressed="true"] .i-play { display:block; } .hx-pause[aria-pressed="true"] .i-pause { display:none; }
.hx.no-auto .hx-pause { display:none; }
.hx-scroll { position:absolute; z-index:6; right:clamp(22px,6vw,96px); top:50%; width:1px; height:90px; margin-top:-45px; background:rgba(255,255,255,.25); display:none; }
.hx :focus-visible { outline:2px solid #fff; outline-offset:3px; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

@media (max-width:760px) {
  .hx { min-height:600px; }
  .hx-content { align-items:flex-end; padding:100px 22px 138px; }
  .hx-s.r .hx-content { justify-content:flex-start; }
  .hx-shade, .hx-s.r .hx-shade { background:linear-gradient(0deg,rgba(0,0,0,.97) 0%,rgba(0,0,0,.82) 40%,rgba(0,0,0,.2) 72%,rgba(0,0,0,.55) 100%); }
  .hx-title { font-size:clamp(2.1rem,10vw,3rem); max-width:12ch; }
  .hx-tags { display:none; }
  .hx-pgl, .hx-br.a, .hx-br.b { display:none; }
  .hx-count { display:none; }
  .hx-btn { width:44px; height:44px; }
  .hx-ctl { padding-left:86px; padding-right:18px; gap:12px; }
  .hx-side { gap:8px; }
  .hx-pg { padding-top:18px; }
}
@media (max-height:640px) and (orientation:landscape) { .hx-tags, .hx-lead { display:none; } .hx-content { padding-bottom:110px; } .hx { min-height:520px; } }
@media (prefers-reduced-motion: reduce) { .hx-s.is-active .hx-img, .hx-fx .aur { animation:none !important; } }



