/* IROVAST v3 — anime hero (drawn → painted portrait, doodles, splash) and the product showcase.
   Uses the site tokens from site.css: --bg, --ink, --accent, --muted, --line, --card, --font-head. */

/* ---------- anime hero ---------- */
.ah { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.ah-stage { position: absolute; inset: 0; }
.ah-tone {
  position: absolute; inset: 0;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 13%, transparent) 1.2px, transparent 1.7px);
  background-size: 14px 14px;
  -webkit-mask-image: radial-gradient(60% 70% at 64% 58%, #000 0%, transparent 75%);
          mask-image: radial-gradient(60% 70% at 64% 58%, #000 0%, transparent 75%);
}
[dir="rtl"] .ah-tone { -webkit-mask-image: radial-gradient(60% 70% at 36% 58%, #000 0%, transparent 75%); mask-image: radial-gradient(60% 70% at 36% 58%, #000 0%, transparent 75%); }
.ah-word {
  position: absolute; left: 50%; top: 52%; translate: -50% -50%; direction: ltr;
  font: 900 clamp(84px, 20vw, 330px)/0.82 "Arial Black", "Segoe UI Black", var(--font-head), sans-serif;
  letter-spacing: -0.04em; white-space: nowrap; color: transparent; -webkit-text-stroke: 2px var(--ink); opacity: 0;
}
.ah-word .on { color: var(--accent); -webkit-text-stroke: 0; }
.ah-speed { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.ah-speed line { stroke: var(--ink); stroke-linecap: round; }
.ah-frame { position: absolute; inset: calc(var(--header-h) + 16px) 5% 3%; opacity: 0; pointer-events: none; }
.ah-frame i { position: absolute; width: 44px; height: 44px; border: 3px solid var(--ink); }
.ah-frame i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.ah-frame i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.ah-frame i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.ah-frame i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }

.ah-intro {
  position: absolute; inset-inline-start: clamp(18px, 6vw, 96px); top: calc(var(--header-h) + clamp(20px, 7vh, 80px));
  max-width: min(30rem, 44vw); display: flex; flex-direction: column; gap: 14px; z-index: 3;
}
.ah-badge { font: 700 12.5px/1.2 var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
[dir="rtl"] .ah-badge { letter-spacing: 0; font-size: 15px; }
.ah-title { font-size: clamp(34px, 5vw, 66px); font-weight: 700; line-height: 1.02; text-wrap: balance; }
.ah-sub { color: var(--muted); font-size: clamp(15px, 1.5vw, 18px); max-width: 40ch; }
.ah-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

.ah-figure { position: absolute; left: 64%; bottom: 0; height: calc(100% - var(--header-h) - 10px); aspect-ratio: var(--ar, 0.68); translate: -50% 0; z-index: 2; }
[dir="rtl"] .ah-figure { left: 36%; }
.ah-art, .ah-art svg, .ah-art img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ah-art svg { overflow: visible; }
.ah-art img { object-fit: contain; opacity: 0; }
.ah .hv-ink path { fill: var(--ink); stroke: var(--ink); stroke-width: 1.2; }
.ah-splash { position: absolute; left: 50%; top: 46%; width: 118%; translate: -50% -50%; overflow: visible; opacity: 0; }
.ah-splash path, .ah-splash circle { fill: var(--accent); }
.ah-rec { position: absolute; left: 3%; top: 9%; display: flex; align-items: center; gap: 6px; font: 700 12px/1 Consolas, monospace; color: var(--ink); opacity: 0; direction: ltr; }
.ah-rec i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }

.ah-doodle { position: absolute; left: var(--x); top: var(--y); width: 23%; rotate: var(--r); overflow: visible; opacity: 0; pointer-events: none; }
.ah-doodle.sm { width: 8%; }
.ah-doodle path, .ah-doodle circle, .ah-doodle ellipse { fill: none; stroke: var(--ink); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.ah-doodle .acc { fill: var(--accent); }
.ah-doodle .acc-s { stroke: var(--accent); }

.ah-cards {
  position: absolute; inset-inline-end: clamp(16px, 6vw, 96px); top: 50%; translate: 0 -40%;
  width: min(390px, 40vw); display: flex; flex-direction: column; gap: 12px; z-index: 4;
}
.ah-card {
  display: grid; grid-template-columns: 50px 1fr; gap: 14px; align-items: center; padding: 14px 16px;
  background: var(--card); border: 2.5px solid var(--ink); border-radius: 16px; box-shadow: 6px 6px 0 var(--ink);
  opacity: 0; transition: transform .2s, box-shadow .2s;
}
[dir="rtl"] .ah-card { box-shadow: -6px 6px 0 var(--ink); }
.ah-card:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--c); }
.ah-card-ico { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; background: var(--c); color: #fff; font: 900 17px/1 "Arial Black", var(--font-head), sans-serif; }
.ah-card-txt { display: flex; flex-direction: column; min-width: 0; }
.ah-card-txt b { font-family: var(--font-head); font-size: 19px; }
.ah-card-txt small { color: var(--muted); font-size: 13.5px; line-height: 1.35; }
.ah-hint { position: absolute; left: 50%; bottom: 14px; translate: -50% 0; font: 700 11px/1 var(--font-head); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); z-index: 5; }

/* Before JS runs (or without it) the hero is a finished still: art visible, cards hidden. */
html:not(.js) .ah-art img, html:not(.js) .ah-doodle, html:not(.js) .ah-splash { opacity: 1; }

@media (max-width: 860px) {
  .ah-intro { max-width: none; inset-inline: 18px; top: calc(var(--header-h) + 14px); gap: 10px; }
  .ah-title { font-size: clamp(30px, 8vw, 44px); }
  .ah-sub { display: none; }
  .ah-figure, [dir="rtl"] .ah-figure { left: 50%; height: min(60%, calc(86vw / var(--ar, 0.68))); }
  .ah-cards { inset-inline: 16px; width: auto; top: auto; bottom: 4vh; translate: none; gap: 8px; }
  .ah-card { grid-template-columns: 38px 1fr; padding: 9px 12px; box-shadow: 4px 4px 0 var(--ink); }
  .ah-card-ico { width: 38px; height: 38px; font-size: 13px; }
  .ah-card-txt small { display: none; }
  .ah-doodle { width: 22%; left: clamp(-8%, var(--x), 86%); }
  .ah-doodle.sm { width: 9%; }
}

/* ---------- product showcase ---------- */
.sc { position: relative; }
.sc-head-wrap { padding-bottom: 0; }
.sc-list { display: flex; flex-direction: column; }
.sc-ch {
  position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 90px);
  align-items: center; min-height: 92vh; padding: clamp(50px, 8vw, 110px) clamp(16px, 6vw, 96px);
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--c) 10%, transparent) 40%, color-mix(in srgb, var(--c) 10%, transparent) 60%, transparent);
  overflow: hidden;
}
.sc-ch.flip .sc-device { order: 2; }
.sc-num { position: absolute; inset-inline-end: 3%; top: 4%; font: 900 clamp(90px, 16vw, 230px)/1 "Arial Black", var(--font-head), sans-serif; color: transparent; -webkit-text-stroke: 2px color-mix(in srgb, var(--c) 45%, transparent); pointer-events: none; }
.sc-ch.flip .sc-num { inset-inline-end: auto; inset-inline-start: 3%; }
.sc-device { justify-self: center; width: min(320px, 70vw); aspect-ratio: 9 / 18.5; border: 10px solid var(--ink); border-radius: 44px; background: var(--ink); box-shadow: 18px 22px 0 color-mix(in srgb, var(--c) 70%, transparent); overflow: hidden; position: relative; }
[dir="rtl"] .sc-device { box-shadow: -18px 22px 0 color-mix(in srgb, var(--c) 70%, transparent); }
.sc-device.laptop { width: min(580px, 88vw); aspect-ratio: 16 / 10.4; border-width: 12px; border-radius: 18px; }
.sc-device.laptop .sc-screen { border-radius: 6px; }
.sc-screen { position: absolute; inset: 0; border-radius: 34px; overflow: hidden; background: color-mix(in srgb, var(--c) 30%, var(--ink)); }
.sc-screen video, .sc-screen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-empty { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font: 900 64px/1 var(--font-head); }
.sc-text { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; position: relative; z-index: 1; }
.sc-status { font: 700 12px/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: #fff; background: var(--c); padding: 7px 12px; border-radius: 999px; }
[dir="rtl"] .sc-status { letter-spacing: 0; font-size: 13px; }
.sc-name { font-size: clamp(48px, 8vw, 110px); font-weight: 700; line-height: .95; color: var(--ink); }
.sc-name::after { content: "."; color: var(--c); }
.sc-tagline { font-family: var(--font-head); font-size: clamp(20px, 2.4vw, 30px); line-height: 1.2; font-weight: 600; max-width: 22ch; }
.sc-desc { color: var(--muted); max-width: 48ch; }
.sc-tags { display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 860px) {
  .sc-ch { grid-template-columns: 1fr; min-height: 0; gap: 30px; }
  .sc-ch.flip .sc-device { order: 0; }
  .sc-device { width: min(260px, 64vw); }
}

@media (prefers-reduced-motion: reduce) {
  .ah-doodle, .ah-splash, .ah-art img { opacity: 1; }
}
