/* Home hero: a sticky stage where an agency is built as the visitor scrolls (assets/js/home-hero.js adds .is-scroll) */
.pf-home-hero { position: relative; padding: 0; max-width: none; }
.pf-home-hero .pf-home-hero__sticky { position: relative; overflow: hidden; color: var(--wp--preset--color--base); max-width: none; padding: calc(84px + 56px) 0 64px; min-height: 100svh; }
.pf-home-hero__layer { position: absolute; inset: 0; pointer-events: none; }
.pf-home-hero__day { background: radial-gradient(120% 90% at 70% 40%, var(--wp--preset--color--primary-light) 0%, var(--wp--preset--color--primary) 45%, var(--wp--preset--color--primary-dark) 100%); }
.pf-home-hero__night { background: radial-gradient(90% 70% at 66% 62%, #26345f 0%, #121d42 45%, var(--wp--preset--color--night) 100%); opacity: var(--n, 0); }
.pf-home-hero__stars { opacity: var(--n, 0); background-image: radial-gradient(1.4px 1.4px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 28% 8%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 46% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 64% 12%, #fff 50%, transparent 51%), radial-gradient(1.6px 1.6px at 82% 20%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 92% 6%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 38% 32%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 74% 30%, #fff 50%, transparent 51%); }
.pf-home-hero__grid { background-image: linear-gradient(rgba(202, 219, 255, 0.14) 1px, transparent 1px), linear-gradient(90deg, rgba(202, 219, 255, 0.14) 1px, transparent 1px), linear-gradient(rgba(202, 219, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(202, 219, 255, 0.06) 1px, transparent 1px); background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px; opacity: calc(1 - var(--n, 0) * 0.85); }
.pf-home-hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.pf-home-hero__annots { position: absolute; inset: 0; pointer-events: none; }
.pf-home-hero__annot { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity 0.6s; }
.pf-home-hero__annot-dot { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--wp--preset--color--accent); background: rgba(255, 190, 61, 0.25); }
.pf-home-hero__annot-line { position: absolute; left: 0; top: 0; height: 1px; background: rgba(202, 219, 255, 0.75); transform-origin: 0 0; }
.pf-home-hero__annot-text { position: absolute; white-space: nowrap; font-family: var(--wp--preset--font-family--hand); font-size: 1.05rem; line-height: 1.2; color: var(--wp--preset--color--base); }
.pf-home-hero__annot-text small { display: block; font-size: 0.85rem; color: var(--wp--preset--color--muted-light); }

.pf-home-hero .pf-home-hero__ui { position: relative; width: min(1280px, 100% - 48px); margin-inline: auto; max-width: none; }
.pf-home-hero__intro { max-width: min(620px, 100%); }
.pf-home-hero h1.pf-home-hero__title { margin: 0; font-size: var(--wp--preset--font-size--hero); font-weight: 850; line-height: 0.92; letter-spacing: -0.045em; font-variation-settings: "wdth" 116; color: var(--wp--preset--color--base); }
.pf-home-hero__title em { font-style: normal; color: var(--wp--preset--color--accent); }
.pf-home-hero .pf-home-hero__lede { margin: 24px 0 0; font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--wp--preset--color--muted-light); max-width: 48ch; }
.pf-home-hero .pf-home-hero__actions { margin-top: 34px; }
.pf-home-hero .pf-home-hero__hint { display: none; align-items: center; gap: 12px; margin: 46px 0 0; color: var(--wp--preset--color--line); font-size: 1.05rem; }
.pf-home-hero .pf-home-hero__hint::before { content: ""; position: relative; width: 26px; height: 40px; border: 1.5px solid rgba(202, 219, 255, 0.6); border-radius: 14px; background: linear-gradient(var(--wp--preset--color--accent), var(--wp--preset--color--accent)) 50% 8px / 3px 8px no-repeat; animation: pf-cue 1.8s var(--wp--custom--ease) infinite; flex: none; }
@keyframes pf-cue { 0% { background-position: 50% 8px; } 80% { background-position: 50% 20px; } 100% { background-position: 50% 8px; } }
@media (prefers-reduced-motion: no-preference) {
	.pf-js .pf-home-hero__title, .pf-js .pf-home-hero__lede, .pf-js .pf-home-hero__actions, .pf-js .pf-home-hero__hint { animation: pf-fade-up 1.1s var(--wp--custom--ease) both; }
	.pf-js .pf-home-hero__lede { animation-delay: 0.25s; }
	.pf-js .pf-home-hero__actions { animation-delay: 0.45s; }
	.pf-js .pf-home-hero__hint { animation-delay: 0.7s; }
}

/* the seven stages: stacked cards until the script turns them into a scroll story */
.pf-home-hero .pf-home-hero__stages { margin-top: 40px; display: grid; gap: 16px; max-width: 520px; }
.pf-home-hero__stage { padding: 30px 30px 28px; border-radius: 22px; background: rgba(8, 22, 64, 0.42); border: 1px solid rgba(202, 219, 255, 0.25); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.pf-home-hero__stage > * { margin: 0; }
.pf-home-hero .pf-stage-k { display: flex; align-items: center; gap: 12px; font-family: var(--wp--preset--font-family--hand); font-size: 1.05rem; color: var(--wp--preset--color--accent); }
.pf-home-hero .pf-stage-k strong { font-family: var(--wp--preset--font-family--body); font-variation-settings: "wdth" 125; font-weight: 900; font-size: 3.2rem; line-height: 0.8; color: transparent; -webkit-text-stroke: 1.5px var(--wp--preset--color--accent); letter-spacing: -0.04em; }
.pf-home-hero .pf-stage-title { margin-top: 18px; font-size: clamp(1.8rem, 2.8vw, 2.6rem); font-variation-settings: "wdth" 118; font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--wp--preset--color--base); }
.pf-home-hero .pf-stage-text { margin-top: 14px; color: var(--wp--preset--color--muted-light); font-size: 1.02rem; }
.pf-home-hero .pf-stage-list { margin-top: 18px; display: grid; gap: 8px; }
.pf-home-hero .pf-stage-list li { font-weight: 600; font-size: 0.96rem; color: var(--wp--preset--color--base); }
.pf-home-hero .pf-stage-list li::before { background: var(--wp--preset--color--accent); top: 0.15em; }

/* scroll story (script adds .is-scroll) */
.pf-home-hero.is-scroll { height: 900vh; }
.pf-home-hero.is-scroll .pf-home-hero__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; padding: 0; }
.pf-home-hero.is-scroll .pf-home-hero__ui { height: 100%; pointer-events: none; }
.pf-home-hero.is-scroll .pf-home-hero__ui > * { pointer-events: auto; }
.pf-home-hero.is-scroll .pf-home-hero__intro { position: absolute; left: 0; top: 52%; transform: translateY(-46%); max-width: min(620px, 48%); }
@media (min-width: 901px) { .pf-home-hero.is-scroll h1.pf-home-hero__title { white-space: nowrap; } }
.pf-home-hero.is-scroll .pf-home-hero__hint { display: flex; }
.pf-home-hero.is-scroll .pf-home-hero__stages { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: min(440px, 42%); margin: 0; display: block; }
.pf-home-hero.is-scroll .pf-home-hero__stage { position: absolute; left: 0; top: 0; transform: translateY(-50%); width: 100%; opacity: 0; visibility: hidden; translate: 0 30px; filter: blur(8px); transition: opacity 0.6s var(--wp--custom--ease), translate 0.8s var(--wp--custom--ease), filter 0.6s var(--wp--custom--ease), visibility 0.6s; }
.pf-home-hero.is-scroll .pf-home-hero__stage.on { opacity: 1; visibility: visible; translate: 0 0; filter: none; }

.pf-home-hero__rail { position: absolute; right: max(20px, calc((100vw - 1280px) / 2)); top: 50%; transform: translateY(-50%); display: grid; gap: 6px; opacity: 0; transition: opacity 0.5s; z-index: 3; }
.pf-home-hero__rail.show { opacity: 1; }
.pf-home-hero__rail button { display: flex; align-items: center; gap: 10px; justify-content: flex-end; padding: 4px 0; color: var(--wp--preset--color--muted-light); font-size: 0.78rem; font-weight: 600; background: none; border: 0; cursor: pointer; font-family: inherit; }
.pf-home-hero__rail button span { opacity: 0; transform: translateX(8px); transition: opacity 0.3s, transform 0.4s var(--wp--custom--ease); }
.pf-home-hero__rail button:hover span, .pf-home-hero__rail button:focus-visible span, .pf-home-hero__rail button.on span { opacity: 1; transform: none; }
.pf-home-hero__rail button i { display: block; width: 22px; height: 2px; border-radius: 2px; background: rgba(202, 219, 255, 0.35); transition: width 0.4s var(--wp--custom--ease), background-color 0.3s; }
.pf-home-hero__rail button.done i { background: rgba(202, 219, 255, 0.8); }
.pf-home-hero__rail button.on i { width: 40px; background: var(--wp--preset--color--accent); }
.pf-home-hero__rail button.on { color: var(--wp--preset--color--base); }

@media (max-width: 900px) {
	.pf-home-hero.is-scroll { height: 820vh; }
	.pf-home-hero.is-scroll .pf-home-hero__intro { top: auto; bottom: 6%; transform: none; max-width: none; right: 0; }
	.pf-home-hero h1.pf-home-hero__title { font-size: clamp(2.2rem, 10vw, 3.4rem); }
	.pf-home-hero .pf-home-hero__lede { font-size: 0.95rem; margin-top: 14px; line-height: 1.5; }
	.pf-home-hero .pf-home-hero__actions { margin-top: 22px; }
	.pf-home-hero.is-scroll .pf-home-hero__hint { display: none; }
	.pf-home-hero.is-scroll .pf-home-hero__stages { top: auto; bottom: 24px; transform: none; width: 100%; }
	.pf-home-hero.is-scroll .pf-home-hero__stage { top: auto; bottom: 0; transform: none; padding: 22px; }
	.pf-home-hero.is-scroll .pf-stage-title { font-size: 1.6rem; margin-top: 10px; }
	.pf-home-hero.is-scroll .pf-stage-text { font-size: 0.95rem; }
	.pf-home-hero.is-scroll .pf-stage-list { display: none; }
	.pf-home-hero .pf-stage-k strong { font-size: 2.4rem; }
	.pf-home-hero__rail { right: 12px; top: 110px; transform: none; gap: 2px; }
	.pf-home-hero__rail button span { display: none; }
	.pf-home-hero__rail button i { width: 14px; }
	.pf-home-hero__rail button.on i { width: 26px; }
	.pf-home-hero__annots { display: none; }
}
@media (prefers-reduced-motion: reduce) { .pf-home-hero.is-scroll .pf-home-hero__stage { transition: none; } }
