/* Altier hero visuals. Three directions share one stage: a midnight panel lit from above
   by the lifted bar of the logo. See docs/visual-system.md. Driven by assets/hero.js. */

.hv { position: relative; margin: 0; border-radius: 28px; overflow: hidden; isolation: isolate; color: #fff;
  background: #0c0d2a; min-height: clamp(460px, 44vw, 600px); display: flex; flex-direction: column; justify-content: center;
  padding: clamp(18px, 3vw, 36px); box-shadow: 0 50px 100px -50px rgba(15, 17, 48, 0.65), 0 0 0 1px rgba(15, 17, 48, 0.06);
  font-family: var(--body); -webkit-font-smoothing: antialiased; }
.hv-sky { position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(55% 40% at 50% 0%, rgba(139, 92, 246, 0.5), transparent 72%),
    radial-gradient(80% 60% at 0% 0%, rgba(63, 55, 201, 0.5), transparent 70%),
    radial-gradient(90% 55% at 100% 100%, rgba(63, 55, 201, 0.26), transparent 70%),
    linear-gradient(180deg, #181a5c 0%, #0d0e2e 58%, #0a0b22 100%); }
.hv-sky::after { content: ""; position: absolute; inset: 0; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* The lifted bar: one line of light, with a soft fall of light beneath it */
.hv-beam { position: absolute; left: 50%; top: clamp(24px, 6%, 40px); width: 36%; height: 5px; border-radius: 3px; z-index: -1;
  transform: translateX(-50%); background: #fff; pointer-events: none;
  box-shadow: 0 0 16px 2px rgba(200, 192, 255, 0.9), 0 0 60px 12px rgba(139, 92, 246, 0.5);
  animation: hv-breathe 8s ease-in-out infinite; }
.hv-beam::after { content: ""; position: absolute; left: -45%; right: -45%; top: 3px; height: 360px;
  background: radial-gradient(50% 100% at 50% 0%, rgba(196, 188, 255, 0.3), rgba(139, 92, 246, 0.1) 45%, rgba(139, 92, 246, 0) 75%); }
.hv[data-hero="b"] .hv-beam, .hv[data-hero="c"] .hv-beam { display: none; }
@keyframes hv-breathe { 0%, 100% { opacity: 0.88; } 50% { opacity: 1; } }

.hv .fade { transition: opacity 0.45s ease, transform 0.6s var(--ease, ease); }
.hv.paused *, .hv.paused *::after { animation-play-state: paused !important; }

/* ---------- A: Your day, prepared (a real product surface, role by role) ---------- */
.hva { position: relative; width: min(100%, 440px); margin: clamp(40px, 7%, 60px) auto 0; }
.hva-card { position: relative; background: #fff; color: #12110f; border-radius: 18px; padding: 16px 18px 30px;
  box-shadow: 0 30px 60px -24px rgba(5, 6, 30, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.5); }
.hva-head { display: flex; align-items: center; gap: 12px; padding-bottom: 13px; border-bottom: 1px solid rgba(18, 17, 15, 0.08); }
.hva-mark { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(140deg, #3f37c9, #8b5cf6); box-shadow: 0 6px 16px -6px rgba(63, 55, 201, 0.7); }
.hva-mark svg { width: 13px; height: 16px; fill: #fff; }
.hva-t { font: 600 15px/1.2 var(--display); letter-spacing: -0.01em; }
.hva-s { font-size: 12.5px; color: #6b6a66; margin-top: 2px; }
.hva-list { list-style: none; margin: 2px 0 0; padding: 0; }
.hva-row { display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; align-items: start; padding: 11px 0;
  border-bottom: 1px solid rgba(18, 17, 15, 0.06); font-size: 13.5px; line-height: 1.42; opacity: 0; transform: translateY(6px); }
.hva-row:last-child { border-bottom: 0; }
.hva-row.on { opacity: 1; transform: none; }
.hva-ic { width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #d9d6cf; display: grid; place-items: center; transition: background 0.3s ease, box-shadow 0.3s ease; }
.hva-ic svg { width: 9px; height: 9px; stroke: #fff; fill: none; stroke-width: 2.2; opacity: 0; transition: opacity 0.3s ease; }
.hva-row.done .hva-ic { background: #3f37c9; box-shadow: none; }
.hva-row.done .hva-ic svg { opacity: 1; }
.hva-row.you .hva-ic { box-shadow: inset 0 0 0 1.5px #12110f; }
.hva-badge { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 99px; white-space: nowrap; background: #f2f0eb; color: #8a877f; transition: background 0.3s ease, color 0.3s ease; }
.hva-row.done .hva-badge { background: #ecebfb; color: #3f37c9; }
.hva-row.you .hva-badge { background: #12110f; color: #fff; }
.hva-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 10px; font-size: 11.5px; color: #8a877f; }
.hva-foot span:last-child { flex: none; font-weight: 600; color: #12110f; padding: 6px 12px; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(18, 17, 15, 0.14); }
.hva-nudge { position: relative; z-index: 2; width: min(88%, 340px); margin: -20px 0 0 auto; padding: 12px 14px 13px; border-radius: 14px;
  background: rgba(22, 24, 74, 0.78); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 24px 40px -18px rgba(0, 0, 0, 0.6);
  font-size: 13px; line-height: 1.45; color: #ecebff; opacity: 0; transform: translateY(10px); }
.hva-nudge.on { opacity: 1; transform: none; }
.hva-nudge b { display: flex; align-items: center; gap: 7px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #bdb6ff; margin-bottom: 4px; }
.hva-nudge b::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #c4bcff; box-shadow: 0 0 10px 2px rgba(196, 188, 255, 0.8); }
.hva-body { transition: opacity 0.4s ease; }
.hva.out .hva-body, .hva.out .hva-nudge { opacity: 0; }
.hva-tabs { display: flex; justify-content: center; gap: 2px; margin: 22px auto 0; padding: 4px; width: max-content; max-width: 100%;
  border-radius: 99px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.hva-tab { position: relative; appearance: none; border: 0; background: transparent; color: rgba(255, 255, 255, 0.62); cursor: pointer;
  font: 500 12.5px/1 var(--body); padding: 8px 12px 9px; border-radius: 99px; transition: background 0.3s ease, color 0.3s ease; white-space: nowrap; }
.hva-tab:hover { color: #fff; }
.hva-tab[aria-pressed="true"] { background: rgba(255, 255, 255, 0.13); color: #fff; }
.hva-tab i { position: absolute; left: 14px; right: 14px; bottom: 3px; height: 1.5px; border-radius: 2px; overflow: hidden; opacity: 0; }
.hva-tab[aria-pressed="true"] i { opacity: 1; background: rgba(255, 255, 255, 0.12); }
.hva-tab i::after { content: ""; display: block; height: 100%; width: 0; background: #c4bcff; }
.hva.auto .hva-tab[aria-pressed="true"] i::after { animation: hv-fill var(--hv-dur, 7s) linear forwards; }
@keyframes hv-fill { to { width: 100%; } }
.hva-tab:focus-visible { outline: 2px solid #c4bcff; outline-offset: 1px; }

/* ---------- B: The team map (each role lit by its own AI, fed by the systems below) ---------- */
.hvb { position: relative; display: flex; flex-direction: column; height: 100%; flex: 1; }
.hvb-cap { min-height: 76px; max-width: 360px; }
.hvb-cap .fade { opacity: 1; }
.hvb-cap.out .fade { opacity: 0; transform: translateY(-4px); }
.hvb-role { display: flex; align-items: center; gap: 8px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #bdb6ff; }
.hvb-role::before { content: ""; width: 14px; height: 2.5px; border-radius: 2px; background: #fff; box-shadow: 0 0 8px 1px rgba(196, 188, 255, 0.9); }
.hvb-line { margin-top: 8px; font: 600 clamp(16px, 1.6vw, 19px)/1.3 var(--display); letter-spacing: -0.01em; color: #fff; }
.hvb-svg { display: block; width: 100%; height: auto; margin-top: 6px; overflow: visible; }
.hvb-edge { stroke: rgba(196, 188, 255, 0.16); stroke-width: 1; fill: none; }
.hvb-link { stroke: rgba(196, 188, 255, 0.12); stroke-width: 1; fill: none; stroke-dasharray: 2 4; }
.hvb-flow { stroke: #d6d0ff; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-dasharray: 10 110; stroke-dashoffset: 10; opacity: 0; }
.hvb-n.act .hvb-flow { opacity: 1; animation: hvb-flow 1.1s ease-in forwards; }
@keyframes hvb-flow { from { stroke-dashoffset: 10; } to { stroke-dashoffset: -100; } }
.hvb-who { fill: rgba(255, 255, 255, 0.3); transition: fill 0.6s ease; }
.hvb-bar { fill: #fff; opacity: 0.16; transition: opacity 0.6s ease; }
.hvb-glow { fill: #c4bcff; opacity: 0; transition: opacity 0.8s ease; }
.hvb-cone { opacity: 0; transition: opacity 0.8s ease; }
.hvb-lbl { fill: rgba(255, 255, 255, 0.5); font: 500 11.5px var(--body); text-anchor: middle; transition: fill 0.5s ease; }
.hvb-n.lit .hvb-who { fill: rgba(255, 255, 255, 0.92); }
.hvb-n.lit .hvb-bar { opacity: 1; }
.hvb-n.lit .hvb-glow { opacity: 0.55; }
.hvb-n.lit .hvb-cone { opacity: 0.55; }
.hvb-n.act .hvb-glow { opacity: 1; }
.hvb-n.act .hvb-cone { opacity: 1; }
.hvb-n.act .hvb-lbl { fill: #fff; }
.hvb-sys { display: flex; justify-content: space-between; gap: 6px; margin-top: 4px; }
.hvb-sys span { flex: 1; text-align: center; font-size: 11.5px; font-weight: 500; color: rgba(255, 255, 255, 0.72); padding: 7px 4px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); white-space: nowrap; }
.hvb-sysl { margin-top: 10px; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.4); text-align: center; }
@media (max-width: 480px) { .hvb-lbl { display: none; } .hvb-n.act .hvb-lbl { display: inline; } .hvb-sys span { font-size: 10.5px; } }

/* ---------- C: One light, given to each person (abstract, from the logo's lifted bar) ---------- */
.hvc { display: flex; flex-direction: column; justify-content: center; flex: 1; }
.hvc-svg { display: block; width: 100%; height: auto; max-height: 520px; overflow: visible; }
.hvc-p { transition: transform 1.2s var(--ease, ease); }
.hvc-who { fill: rgba(255, 255, 255, 0.26); transition: fill 0.9s ease; }
.hvc-bar { fill: #fff; opacity: 0; transition: transform 1.5s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.5s ease; }
.hvc-halo { fill: #c4bcff; opacity: 0; transition: opacity 1s ease 0.9s; }
.hvc-n.lit .hvc-p { transform: translateY(-9px); }
.hvc-n.lit .hvc-who { fill: #fff; transition-delay: 0.9s; }
.hvc-n.lit .hvc-bar { opacity: 1; transform: none !important; }
.hvc-n.lit .hvc-halo { opacity: 0.6; }
.hvc.reset .hvc-n * { transition-duration: 0.9s; transition-delay: 0s; }
.hvc-cap { margin-top: 6px; text-align: center; font: 600 clamp(15px, 1.5vw, 18px)/1.3 var(--display); letter-spacing: -0.01em; color: rgba(255, 255, 255, 0.86); }
.hvc-cap small { display: block; margin-top: 4px; font: 500 11px/1.3 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.42); }

/* Depth on fine pointers (hero.js sets --tx/--ty from -0.5 to 0.5) */
.hv.tilt { --tx: 0; --ty: 0; }
.hv.tilt > .hva, .hv.tilt > .hvb, .hv.tilt > .hvc { transform: perspective(1400px) rotateY(calc(var(--tx) * 6deg)) rotateX(calc(var(--ty) * -5deg)); transition: transform 0.9s var(--ease, ease); }
.hv.tilt .hv-beam { margin-left: calc(var(--tx) * -18px); transition: margin-left 0.9s var(--ease, ease); }
.hv.tilt .hv-sky { transform: translate(calc(var(--tx) * -10px), calc(var(--ty) * -8px)) scale(1.04); transition: transform 1.1s var(--ease, ease); }

/* Tablets: a wider card on the stacked stage */
@media (min-width: 600px) and (max-width: 900px) { .hva { width: min(100%, 540px); } .hv { padding: 32px; } }
/* Large screens: a taller stage */
@media (min-width: 1600px) { .hv { min-height: 640px; } .hva { width: min(100%, 470px); } }
@media (max-width: 900px) { .hv { min-height: 0; } }
@media (max-width: 480px) {
  .hv { border-radius: 22px; padding: 16px; }
  .hva { margin-top: 44px; }
  .hva-card { padding: 14px 14px 28px; }
  .hva-row { font-size: 13px; grid-template-columns: 16px 1fr auto; gap: 8px; }
  .hva-tab { padding: 8px 9px 9px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .hv *, .hv *::after { animation: none !important; transition: none !important; }
}
