/* E-hely homepage sections (loaded after site.css). */
/* ---------- Hero ---------- */
.hx-hero{padding-top:clamp(12px,1.6vw,20px)}
/* The photo fills the frame, cropped from the top (empty sky) so the drones sit above the copy. */
.hx-hero-media{--photo-h:calc((min(100vw, var(--max)) - 2 * var(--gut)) * 728 / 1536);position:relative;border-radius:var(--radius);overflow:hidden;height:calc(var(--photo-h) * .4 + 280px);display:flex;align-items:flex-end;background:#121212}
.hx-hero-media>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 100%}
.hx-hero-media::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(18,18,18,.85) 0%,rgba(18,18,18,.5) 35%,rgba(18,18,18,0) 62%),linear-gradient(90deg,rgba(18,18,18,.55) 0%,rgba(18,18,18,0) 55%)}
.hx-hero-copy{position:relative;z-index:1;padding:clamp(24px,3.4vw,44px);max-width:600px;color:#fff}
.hx-hero h1 span{display:block}
.hx-hero .hx-label{color:rgba(255,255,255,.75);margin-bottom:10px}
.hx-hero h1{color:#fff;font-size:clamp(36px,4.4vw,56px);line-height:1.04;letter-spacing:-.04em}
.hx-hero h1 span{color:rgba(255,255,255,.65)}
.hx-hero-copy .hx-actions{margin-top:22px}
/* Wide frames: no room under the left drone, so the label moves to the empty sky and the paragraph is hidden. */
@media (min-width:701px){
  .hx-hero-copy{position:static}
  .hx-hero-copy>*{position:relative;z-index:1}
  .hx-hero-copy p{display:none}
  .hx-hero .hx-label{position:absolute;top:clamp(20px,2.6vw,32px);left:clamp(20px,2.6vw,32px);margin:0;padding:8px 14px;border-radius:999px;background:rgba(18,18,18,.5);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);color:#fff}
}
.hx-hero-copy p{max-width:460px;margin:12px 0 0;font-size:clamp(16px,1.3vw,18px);color:rgba(255,255,255,.82)}
.hx-btn-light{background:#fff;color:var(--ink)}.hx-btn-light:hover{background:#e9e9e9}
.hx-btn-market{width:52px;height:52px;padding:0;border-radius:50%} /* icon-only marketplace buttons */
.hx-market-icon{width:26px;height:26px;flex:none;object-fit:contain;transition:transform .3s var(--ease)}
.hx-btn-market:hover .hx-market-icon{transform:scale(1.1)}
@media (max-width:700px){.hx-hero-copy .hx-btn.hx-btn-market{width:48px;height:48px;padding:0}}
.hx-btn-glass{border:1px solid rgba(255,255,255,.45);color:#fff;background:rgba(255,255,255,.08);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}.hx-btn-glass:hover{background:rgba(255,255,255,.18)}
.hx-stats{display:grid;grid-template-columns:repeat(4,1fr);border-bottom:1px solid var(--line)}
.hx-stats>div{padding:28px 0;display:flex;flex-direction:column-reverse;gap:4px}
.hx-stats dt{font-size:14px;color:var(--gray)}
.hx-stats dd{font:600 clamp(26px,2.6vw,34px)/1.1 var(--display);color:var(--ink);letter-spacing:-.03em;font-variant-numeric:tabular-nums}
/* Narrow frames: the drone sits in the lower half, so the copy moves up into the sky with a dark fade from the top. */
@media (max-width:700px){.hx-hero-media{height:clamp(480px,70svh,560px);align-items:flex-start}.hx-hero-media>img{object-position:64% 100%}.hx-hero-media::after{background:linear-gradient(to bottom,rgba(18,18,18,.8) 0%,rgba(18,18,18,.55) 30%,rgba(18,18,18,0) 52%)}.hx-hero-copy p{display:none}.hx-hero-copy .hx-actions{flex-wrap:nowrap;gap:10px}.hx-hero-copy .hx-btn{height:44px;padding:0 16px;font-size:14px}.hx-stats{grid-template-columns:1fr 1fr}.hx-stats>div{padding:20px 0}}

/* ---------- Categories ---------- */
.hx-cat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:clamp(14px,1.6vw,20px)}
.hx-cat{display:block}
.hx-cat-media{border-radius:var(--radius);overflow:hidden;aspect-ratio:4/5;background:var(--soft)}
.hx-cat-media img{width:100%;height:100%;object-fit:cover;transition:transform .8s var(--ease)}
.hx-cat:hover .hx-cat-media img{transform:scale(1.04)}
.hx-cat-body{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:16px 2px 0}
.hx-cat h3{font-size:18px;letter-spacing:-.02em}
.hx-cat p{font-size:14px;line-height:1.55;color:var(--gray);margin-top:4px}
.hx-arrow{flex:none;width:36px;height:36px;border-radius:50%;border:1px solid var(--line);display:grid;place-items:center;color:var(--ink);transition:background .3s,color .3s,border-color .3s}
.hx-cat:hover .hx-arrow{background:var(--ink);border-color:var(--ink);color:#fff}
/* Always one row of four; smaller screens drop the description and arrow and keep a centred title. */
@media (max-width:1000px){.hx-cat-grid{gap:12px}.hx-cat p{display:none}.hx-cat h3{font-size:16px}}
@media (max-width:700px){.hx-cat-grid{gap:8px}.hx-cat-media{aspect-ratio:1/1;border-radius:12px}.hx-cat-body{justify-content:center;text-align:center;padding:8px 0 0}.hx-cat h3{font-size:12px;line-height:1.3;letter-spacing:-.01em}.hx-arrow{display:none}}

/* ---------- About ---------- */
.hx-about{display:grid;grid-template-columns:1fr 1fr;gap:clamp(40px,7vw,96px);align-items:center}
.hx-about-visual{position:relative;padding:0 clamp(28px,5vw,64px) clamp(36px,6vw,72px) 0}
.hx-about-media{border-radius:var(--radius);overflow:hidden;aspect-ratio:4/5}
.hx-about-store{position:absolute;right:0;bottom:0;width:44%;aspect-ratio:720/990;border-radius:14px;overflow:hidden;border:6px solid #fff;box-shadow:0 24px 60px -24px rgba(0,0,0,.35)}
.hx-about-store a{position:relative;display:block;width:100%;height:100%}
.hx-about-store img{width:100%;height:100%;object-fit:cover;transition:transform .6s var(--ease)}
.hx-about-store a:hover img{transform:scale(1.05)}
.hx-about-store-tag{position:absolute;left:8px;right:8px;bottom:8px;display:flex;align-items:center;justify-content:center;gap:6px;padding:7px 10px;border-radius:999px;background:rgba(255,255,255,.92);font-size:12px;font-weight:500;color:var(--ink);white-space:nowrap;transition:background .3s,color .3s}
.hx-about-store a:hover .hx-about-store-tag{background:var(--ink);color:#fff}
.hx-about-media img{width:100%;height:100%;object-fit:cover}
.hx-about-copy>p{margin-top:20px;color:var(--gray);max-width:480px}
.hx-timeline{margin-top:36px;border-top:1px solid var(--line)}
.hx-timeline li{display:grid;grid-template-columns:80px 1fr;gap:16px;padding:20px 0;border-bottom:1px solid var(--line)}
.hx-timeline li>span{font-size:14px;font-weight:500;color:var(--gray);padding-top:1px}
.hx-timeline h3{font-size:17px;letter-spacing:-.01em}
.hx-timeline p{font-size:15px;color:var(--gray);margin-top:2px}
@media (max-width:860px){.hx-about{grid-template-columns:1fr}.hx-about-media{aspect-ratio:4/3}}

/* ---------- Features ---------- */
.hx-features{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(16px,2vw,24px)}
.hx-features article{border:1px solid var(--line);border-radius:var(--radius);padding:36px 28px;text-align:center;display:flex;flex-direction:column;align-items:center;transition:border-color .3s}
.hx-features article:hover{border-color:#cfcfcf}
.hx-icon{width:72px;height:72px;border-radius:20px;background:var(--soft);color:var(--ink);display:grid;place-items:center;font-size:28px;margin-bottom:28px}
.hx-icon .ui-icon{font-size:inherit}
.hx-features h3{font-size:19px;letter-spacing:-.02em;margin-bottom:6px}
.hx-features p{font-size:15px;color:var(--gray);max-width:300px}
/* Two per row; a leftover single card is centred. */
@media (max-width:860px){.hx-features{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}.hx-features article{flex:0 0 calc(50% - 6px);padding:24px 14px}.hx-icon{width:56px;height:56px;border-radius:16px;font-size:22px;margin-bottom:16px}.hx-features h3{font-size:16px}.hx-features p{font-size:13px;line-height:1.5}}

/* ---------- Contact ---------- */
.hx-contact{display:grid;grid-template-columns:1.3fr 1fr;gap:40px;align-items:center;background:var(--soft);border-radius:calc(var(--radius) + 4px);padding:clamp(28px,5vw,64px)}
.hx-contact-copy p{color:var(--gray);margin:14px 0 28px;max-width:440px}
.hx-contact-info{display:grid;gap:20px;border-left:1px solid var(--line);padding-left:clamp(24px,4vw,48px)}
.hx-contact-info dt{font-size:13px;color:var(--gray);margin-bottom:2px}
.hx-contact-info dd{font-weight:500;color:var(--ink)}
.hx-contact-info a{display:inline-flex;gap:6px;align-items:center;border-bottom:1px solid var(--line)}
.hx-market-links{display:flex;flex-wrap:wrap;gap:6px 18px}
.hx-map{margin-top:12px;border-radius:12px;overflow:hidden;border:1px solid var(--line);aspect-ratio:16/10;background:#e9e9e7}
.hx-map iframe{width:100%;height:100%;border:0;display:block}
@media (max-width:860px){.hx-contact{grid-template-columns:1fr}.hx-contact-info{border-left:0;padding-left:0;border-top:1px solid var(--line);padding-top:24px}}

/* ---------- Motion: hero starts hidden; the failsafe shows it if JS never runs ---------- */
.js [data-hero],.js [data-hero-media]{opacity:0;animation:hx-failsafe .4s 2.5s forwards}
@keyframes hx-failsafe{to{opacity:1}}
