/* Sparkinnov Advisory — home hero animation (scene 1: archipelago, scene 2: how we work). */

.hm { display: flex; flex-direction: column; gap: 20px; }
.hm__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.hm__tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.hm__tab, .hm__replay {
	min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px;
	background: transparent; border: 1px solid #4a6a92; border-radius: 4px; color: #c9d7e6;
	font: 600 13px/1 Montserrat, system-ui, sans-serif; cursor: pointer;
}
.hm__tab[aria-pressed="true"] { background: #fff; border-color: #fff; color: var(--navy); }
.hm__tab:hover, .hm__replay:hover { border-color: #8fd3d5; color: #fff; }
.hm__tab[aria-pressed="true"]:hover { color: var(--navy); }
.hm__tab:focus-visible, .hm__replay:focus-visible { outline: 2px solid #8fd3d5; outline-offset: 2px; }

.hm__stage { display: grid; }
.hm__scene { grid-area: 1 / 1; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.hm__scene--2 { gap: 22px; justify-content: center; }

/* Static states: one scene visible. */
.hm[data-state="s1"] .hm__scene--2,
.hm[data-state="s2"] .hm__scene--1 { visibility: hidden; opacity: 0; }

/* Map */
.hm__map { width: 100%; height: auto; display: block; font-family: Montserrat, system-ui, sans-serif; overflow: visible; }
.hm__grid path { stroke: #17345a; stroke-width: 1; fill: none; }
.hm__seal-ring { fill: #123660; stroke: #8fd3d5; stroke-width: 6; stroke-linejoin: round; }
.hm__seal-inner { fill: none; stroke: rgba(143, 211, 213, .4); stroke-width: 1; stroke-linejoin: round; }
.hm__seal-text { font-size: 14px; font-weight: 600; letter-spacing: 3.5px; fill: #fff; }
.hm__isles circle { fill: #1fa2a6; }
.hm__pulse { fill: none; stroke: #8fd3d5; stroke-width: 1.2; opacity: 0; transform-box: fill-box; transform-origin: center; animation: hmHalo 3s ease-out 1.2s infinite; }
.hm__arcs path { fill: none; stroke: #8fd3d5; stroke-width: 1.6; stroke-linecap: round; opacity: .85; }
.hm__dot { fill: #fff; }
.hm__place { font-size: 14px; font-weight: 600; fill: #fff; }
.hm__sub { font-size: 12px; fill: #9fb3c8; }
.hm__arcs--more path { stroke-dasharray: 3 5; opacity: .5; }
.hm__more circle { fill: none; stroke: #8fd3d5; stroke-width: 1.4; stroke-dasharray: 3 3; }
.hm__more path { stroke: #8fd3d5; stroke-width: 1.6; stroke-linecap: round; }
.hm__sub--more { font-style: italic; font-size: 11px; }
.hm__note { margin: -6px 0 0; font-size: 12px; color: #7e97b4; }

.hm__pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hm__pillar { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid #22406a; border-radius: 6px; }
.hm__pillar p, .hm__step p { margin: 0; font-size: 14px; line-height: 1.45; color: #dce6f0; }
.hm__pillar strong, .hm__step strong { display: block; color: #fff; font-weight: 600; }

/* Steps */
.hm__steps { list-style: none; margin: 0; padding: 0; position: relative; display: flex; flex-direction: column; gap: 26px; }
.hm__track { position: absolute; left: 25px; top: 26px; bottom: 26px; width: 2px; background: #22406a; }
.hm-fill { position: absolute; inset: 0; background: #8fd3d5; transform-origin: top; }
.hm__step { position: relative; display: flex; align-items: center; gap: 20px; }
.hm__step p { font-size: 15px; line-height: 1.5; color: #c9d7e6; }
.hm__step strong { font-size: 19px; margin-bottom: 4px; }

.hm__result { background: #fff; color: var(--text, #334155); border-radius: 6px; box-shadow: 0 24px 60px rgba(0, 0, 0, .28); padding: 20px 24px; display: flex; flex-direction: column; gap: 12px; }
.hm__result p { margin: 0; }
.hm__result-label { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted, #5b6b80); }
.hm__result-text { font-size: 16px; line-height: 1.45; font-weight: 600; color: var(--navy); }
.hm__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hm__chips li { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--teal-text); background: var(--tint-teal); border-radius: 4px; padding: 6px 10px; }

/* Timeline: only while playing. */

.hm[data-state="play"] .hm__scene--2 { opacity: 0; animation: hmIn .4s ease 6.9s forwards; }
.hm[data-state="play"] .hm-fade { opacity: 0; animation: hmFade .6s ease-out var(--d, 0s) forwards; }
.hm[data-state="play"] .hm-pop { opacity: 0; transform-box: fill-box; transform-origin: center; animation: hmPop .45s cubic-bezier(.2, .7, .2, 1) var(--d, 0s) forwards; }
.hm[data-state="play"] .hm__arcs--more .hm-arc { stroke-dasharray: 3 5; stroke-dashoffset: 0; opacity: 0; animation: hmFadeHalf .6s ease-out var(--d, 0s) forwards; }
.hm[data-state="play"] .hm__arcs:not(.hm__arcs--more) .hm-arc { stroke-dasharray: 420; stroke-dashoffset: 420; animation: hmDraw 1.2s cubic-bezier(.4, 0, .2, 1) var(--d, 0s) forwards; }
.hm[data-state="play"] .hm-up { opacity: 0; animation: hmUp .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0s) forwards; }
.hm[data-state="play"] .hm-fill { transform: scaleY(0); animation: hmLine 2.6s linear 7.5s forwards; }

@keyframes hmFade { to { opacity: 1; } }
@keyframes hmFadeHalf { to { opacity: .5; } }
@keyframes hmPop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
@keyframes hmDraw { to { stroke-dashoffset: 0; } }
@keyframes hmUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes hmLine { to { transform: scaleY(1); } }
@keyframes hmOut { to { opacity: 0; visibility: hidden; } }
@keyframes hmIn { to { opacity: 1; } }
@keyframes hmHalo { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.14); opacity: 0; } }

@media (max-width: 640px) {
	.hm__pillars { grid-template-columns: 1fr; }
	.hm__pillar { flex-direction: row; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
	.hm__pulse { display: none; }
	.hm[data-state="play"] * { animation: none !important; }
}

/* Hydrangea archipelago mark */
.hm__flowers path { stroke: #0b2545; stroke-width: 1.5; stroke-linejoin: round; }
.hm__flowers circle { fill: #0b2545; }
.hm__name { font-size: 15px; font-weight: 600; letter-spacing: 4px; fill: #fff; }
.hm__name--sub { font-size: 11px; font-weight: 500; letter-spacing: 4px; fill: #9fb3c8; }
