/* DropVector web 0.22 – landing page */

.hm-section { padding-block: var(--sp-9) var(--sp-7); }
.hm-narrow { max-width: 16em; }
.hm-section-lead { margin-top: var(--sp-4); }
.hm-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.hm-svg-label { font-family: var(--font-num); font-weight: 600; font-size: 15px; fill: var(--text); }
.hm-svg-h { font-family: var(--font-num); font-weight: 600; font-size: 22px; fill: var(--text); }
.hm-svg-s { font-family: var(--font-ui); font-size: 15px; fill: var(--text-2); }
.hm-svg-key { font-family: var(--font-num); font-weight: 600; font-size: 18px; fill: var(--signal); }

/* ---------- hero ---------- */
.hm-hero { padding: var(--sp-5); }
.hm-hero-frame { min-height: min(86vh, 860px); display: flex; }
.hm-hero-frame > .hm-hero-stage { flex: 1; height: auto; display: flex; align-items: center; background: #05090d url("../media/dv-hero-poster.jpg") center / cover no-repeat; }
.hm-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hm-hero-shade { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 19, 27, .94) 0%, rgba(10, 19, 27, .78) 34%, rgba(10, 19, 27, .18) 62%, rgba(10, 19, 27, 0) 78%),
    linear-gradient(0deg, rgba(10, 19, 27, .85) 0%, rgba(10, 19, 27, 0) 22%); }
.hm-hero-copy { position: relative; z-index: 1; max-width: 660px; padding: var(--sp-8) var(--sp-7) 120px; }
.hm-hero-copy .dv-lead { margin-top: var(--sp-5); }
.hm-hero-copy .hm-actions { margin-top: var(--sp-6); }
.hm-facts { list-style: none; margin: var(--sp-6) 0 0; padding: var(--sp-4) 0 0; border-top: 1px solid var(--line-2); display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5); font-size: var(--fs-s); font-weight: 600; color: #c3cfd7; }
.hm-facts li { display: flex; align-items: center; gap: 8px; }
.hm-facts svg { width: 22px; height: 22px; fill: none; stroke: var(--text); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.hm-chapters { position: absolute; z-index: 2; left: var(--sp-7); right: var(--sp-5); bottom: var(--sp-5); display: flex; align-items: flex-end; gap: var(--sp-4); }
.hm-chapters ol { flex: 1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-2); font-family: var(--font-num); font-weight: 600; font-size: 14px; color: var(--text-2); }
.hm-chapters li { display: flex; flex-direction: column; gap: 6px; transition: color .2s var(--ease); }
.hm-chapters li span { height: 3px; background: rgba(230, 238, 242, .22); position: relative; overflow: hidden; }
.hm-chapters li span::after { content: ""; position: absolute; inset: 0; background: var(--text); transform-origin: left; transform: scaleX(var(--p, 0)); }
.hm-chapters li.is-active { color: var(--text); }
.hm-chapters li.is-done span::after { transform: scaleX(1); }
.hm-video-toggle { flex: none; background: rgba(10, 19, 27, .72); }
.hm-video-toggle .i-play { display: none; }
.hm-video-toggle.is-paused .i-play { display: block; }
.hm-video-toggle.is-paused .i-pause { display: none; }

@media (max-width: 860px) {
  .hm-hero { padding: var(--sp-3); }
  .hm-hero-frame { min-height: 0; }
  .hm-hero-frame > .hm-hero-stage { flex-direction: column; align-items: stretch; justify-content: flex-end; min-height: 640px; }
  .hm-hero-shade { background: linear-gradient(0deg, rgba(10, 19, 27, .97) 0%, rgba(10, 19, 27, .88) 46%, rgba(10, 19, 27, .1) 76%, rgba(10, 19, 27, 0) 100%); }
  .hm-hero-copy { padding: 280px var(--sp-5) 104px; }
  .hm-chapters { left: var(--sp-4); right: var(--sp-4); bottom: var(--sp-4); }
  .hm-chapters ol { font-size: 12px; }
}

/* ---------- audiences ---------- */
.hm-aud { display: flex; flex-wrap: wrap; gap: var(--sp-5); margin-top: var(--sp-7); }
.hm-aud-card { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); }
.hm-aud-card--def { background: var(--bg-2); }
.hm-aud-card--civ { background: var(--panel); }
.hm-aud-figure { position: relative; height: 260px; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg); }
.hm-aud-figure img, .hm-aud-figure svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hm-aud-card--def .hm-aud-figure img { object-position: 82% 30%; }
.hm-aud-card--civ .hm-aud-figure img { object-position: 50% 58%; }
.hm-aud-body { padding: var(--sp-6) var(--sp-6) var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-3); }
.hm-aud-body p { margin: 0; }
.hm-caps { margin: var(--sp-3) 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5) var(--sp-6); }
.hm-caps dt { font-weight: 600; }
.hm-caps dd { margin: 4px 0 0; color: var(--text-2); font-size: var(--fs-s); }
@media (max-width: 520px) { .hm-caps { grid-template-columns: 1fr; } }

/* ---------- three views ---------- */
.hm-profile { position: relative; height: 200px; margin-top: var(--sp-6); }
.hm-profile svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hm-profile-mark { position: absolute; top: 0; transform: translateX(8px); font-family: var(--font-num); font-weight: 600; font-size: 15px; }
.hm-views { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 40fr 30fr 30fr; border-top: 2px solid var(--text); }
.hm-view { padding: var(--sp-5) var(--sp-6) 0 0; display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; }
.hm-view + .hm-view { padding-left: var(--sp-5); border-left: 1px solid var(--line); }
.hm-view p { color: #c3cfd7; margin: 0; }
.hm-view-k { font-family: var(--font-num); font-weight: 600; font-size: 15px; }
.hm-k--route { color: var(--route); } .hm-k--signal { color: var(--signal); } .hm-k--target { color: var(--target); }
.hm-demo { margin: var(--sp-4) 0 0; position: relative; border: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.hm-demo--plan { height: 300px; }
.hm-demo--plan img, .hm-demo--plan svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hm-demo--plan img { object-position: 76% 45%; }
.hm-demo--plan figcaption { position: absolute; left: 12px; bottom: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.hm-demo--plan .dv-chip { background: var(--bg); }
@media (max-width: 960px) {
  .hm-views { grid-template-columns: 1fr; }
  .hm-view, .hm-view + .hm-view { padding: var(--sp-5) 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .hm-profile { height: 120px; }
}

.hm-demo--live { display: flex; padding: 12px; gap: 12px; }
.hm-roster { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hm-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px; border-left: 3px solid transparent; }
.hm-row b { display: block; font-weight: 600; }
.hm-row small { display: block; font-size: 13px; font-weight: 600; }
.hm-row .num { font-size: 26px; }
.hm-row--sel { background: rgba(98, 176, 255, .1); border-left-color: var(--target); }
.hm-badge { width: 28px; height: 28px; border-radius: 50%; background: var(--c); color: var(--bg); display: grid; place-items: center; font-weight: 600; font-size: 11px; }
.ph-canopy { color: var(--phase-canopy); } .ph-ff { color: var(--alert-text); } .ph-stale { color: var(--caution); }
.hm-tape { position: relative; width: 32px; flex: none; border-left: 2px solid var(--line); background: repeating-linear-gradient(180deg, var(--line) 0 1px, transparent 1px 25%); }
.hm-tape-l { position: absolute; inset: 0; transform: translateY(var(--from)); }
.hm-tape-m { position: absolute; left: -7px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.hm-tape-m--sel { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--target); }
.hm-tape-m--stale { outline: 2px dashed var(--caution); outline-offset: 2px; }
.is-visible .hm-tape-l { animation: hm-tape 16s linear infinite; }
.is-visible .hm-tape-l--still { animation: none; }
@keyframes hm-tape { from { transform: translateY(var(--from)); } to { transform: translateY(var(--to)); } }

.hm-demo--replay { height: 300px; display: flex; flex-direction: column; justify-content: flex-end; }
.hm-demo--replay img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hm-scrub { position: relative; height: 48px; margin: 0 12px; background: rgba(10, 19, 27, .86); border: 1px solid var(--line); }
.hm-scrub svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hm-head-l { position: absolute; inset: -6px 0; }
.hm-head { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--target); }
.is-visible .hm-head-l { animation: hm-head 12s linear infinite; }
@keyframes hm-head { from { transform: translateX(0); } to { transform: translateX(100%); } }
.hm-stats { position: relative; display: flex; gap: var(--sp-4); padding: 10px 12px 12px; font-size: 14px; color: var(--text-2); }
.hm-stats b { color: var(--text); font-size: 17px; }

/* drawing of routes when a block scrolls into view */
.hm-draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.is-visible .hm-draw { animation: hm-draw 2.4s cubic-bezier(.45, 0, .25, 1) .2s forwards; }
.is-visible .hm-draw--b { animation-delay: .5s; }
.is-visible .hm-draw--c { animation-delay: .8s; }
.is-visible .hm-draw--slow { animation-duration: 3.2s; }
@keyframes hm-draw { to { stroke-dashoffset: 0; } }
.hm-flow { animation: none; }
.is-visible .hm-flow { animation: hm-flow 1.2s linear infinite; }
@keyframes hm-flow { to { stroke-dashoffset: -17; } }
.hm-curtain { stroke-opacity: .3; }
.hm-ring { transform-box: fill-box; transform-origin: center; }
.is-visible .hm-ring { animation: hm-ring 2.4s ease-out 2.4s both; }
@keyframes hm-ring { 0% { transform: scale(.2); opacity: 0; } 30% { opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
.hm-wind { transform-box: fill-box; }

/* ---------- security ---------- */
.hm-sec { background: var(--panel); border-block: 1px solid var(--line); }
.hm-sec-grid { display: flex; flex-wrap: wrap; gap: var(--sp-7); padding-block: var(--sp-9); }
.hm-sec-grid > div { flex: 1 1 380px; min-width: 0; }
.hm-sec-grid .dv-lead { margin-top: var(--sp-5); }
.hm-sec-list { list-style: none; margin: var(--sp-6) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-3); }
.hm-sec-list li { padding-top: var(--sp-3); border-top: 1px solid var(--line-2); color: #c3cfd7; }
.hm-sec-list b { color: var(--text); }
.hm-sec-figure { flex: 1 1 560px; min-width: 0; margin: 0; }
.hm-sec-figure svg { width: 100%; height: auto; }
.hm-packet { transform: translate(166px, 205px); opacity: 0; }
.is-visible .hm-packet { animation: hm-packet 5s cubic-bezier(.45, 0, .25, 1) infinite; }
@keyframes hm-packet {
  0% { transform: translate(140px, 205px); opacity: 0; }
  8% { opacity: 1; }
  38% { transform: translate(300px, 205px); opacity: 1; }
  52% { transform: translate(340px, 205px); opacity: 1; }
  86% { transform: translate(500px, 205px); opacity: 1; }
  96%, 100% { transform: translate(500px, 205px); opacity: 0; }
}
.hm-keyline { stroke-dashoffset: 0; }
.is-visible .hm-keyline { animation: hm-flow 1.4s linear infinite; }

/* ---------- Finland ---------- */
.hm-fin { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-7); }
.hm-fin > div { flex: 1 1 420px; min-width: 0; }
.hm-fin .dv-lead { margin-top: var(--sp-5); }
.hm-fin-photo { flex: 1 1 480px; margin: 0; aspect-ratio: 14 / 9; }
.hm-fin-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) contrast(1.05); }

/* ---------- FAQ ---------- */
.hm-faq { display: flex; flex-wrap: wrap; gap: var(--sp-6) var(--sp-8); border-top: 1px solid var(--line); }
.hm-faq-side { flex: 1 1 320px; display: flex; flex-direction: column; gap: var(--sp-4); align-self: flex-start; }
.hm-faq-search { margin-top: var(--sp-3); }
.hm-faq-topics { display: flex; flex-wrap: wrap; gap: 8px; }
.hm-faq-topics .dv-chip { background: transparent; color: var(--text); min-height: 38px; }
.hm-faq-topics .dv-chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.hm-faq-count { margin: 0; }
.hm-faq-boundary { font-size: var(--fs-s); margin: 0; }
.hm-faq-list { flex: 2 1 560px; min-width: 0; border-bottom: 1px solid var(--line-2); }
.hm-faq-item { border-top: 1px solid var(--line-2); }
.hm-faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: flex-start; gap: var(--sp-4); padding: var(--sp-4) 0; font-weight: 600; font-size: var(--fs-l); line-height: 1.35; }
.hm-faq-item summary::-webkit-details-marker { display: none; }
.hm-faq-item summary svg { width: 22px; height: 22px; flex: none; margin-top: 3px; fill: none; stroke: var(--text-2); stroke-width: 2; transition: transform .2s var(--ease); }
.hm-faq-item[open] summary svg { transform: rotate(180deg); }
.hm-faq-item p { margin: 0 0 var(--sp-5); max-width: 42em; color: #c3cfd7; }
.hm-faq-none { padding: var(--sp-5) 0; color: var(--text-2); }

/* ---------- closing ---------- */
.hm-end { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--sp-5) var(--sp-8); padding-block: var(--sp-9) var(--sp-8); border-top: 1px solid var(--line); }
.hm-end > div { flex: 1 1 520px; }
.hm-end .dv-lead { margin-top: var(--sp-4); }

.hm-video-dialog video { width: 100%; height: auto; background: #000; }

@media (prefers-reduced-motion: reduce) {
  .hm-draw { stroke-dashoffset: 0; }
  .hm-packet { opacity: 1; transform: translate(204px, 205px); }
  .hm-chapters li span::after { transform: scaleX(0); }
}
