/* Home: the scroll story. A sticky stage where a house is drawn and built as you scroll (assets/js/home-build.js). */
.pf-home-hero { position: relative; height: 900vh; padding: 0; --n: 0; }
.pf-home-hero .pf-home-hero__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; color: #fff; }
/* The sky and the drawing grid are painted by the sticky box itself, so no empty decoration blocks are needed in the page. */
.pf-home-hero .pf-home-hero__sticky { background: radial-gradient(120% 90% at 70% 40%, #2450b4 0%, #1a3c8f 45%, #102a6b 100%); }
.pf-home-hero .pf-home-hero__sticky::before { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none; opacity: var(--n); 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%), radial-gradient(90% 70% at 66% 62%, #26345f 0%, #121d42 45%, #070e26 100%); }
.pf-home-hero .pf-home-hero__sticky::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; 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.85); }
.pf-home-hero .pf-home-hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; max-width: none; }

/* labels pinned to the house */
.pf-home-hero .pf-home-hero__annots { position: absolute; inset: 0; pointer-events: none; }
.pf-home-hero .pf-home-hero__annot { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity 0.6s; }
.pf-home-hero .pf-home-hero__annot-dot { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--pf-amber); background: rgba(255, 190, 61, 0.25); }
.pf-home-hero .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 .pf-home-hero__annot-text { position: absolute; white-space: nowrap; font-family: var(--pf-hand); font-size: 1.05rem; line-height: 1.2; color: #fff; }
.pf-home-hero .pf-home-hero__annot-t { color: #fff; }
.pf-home-hero .pf-home-hero__annot-s { display: block; font-size: 0.85rem; color: var(--pf-muted-d); }

.pf-home-hero .pf-home-hero__ui { position: relative; height: 100%; pointer-events: none; width: min(1280px, 100% - 48px); margin-inline: auto; }
.pf-home-hero .pf-home-hero__ui > * { pointer-events: auto; }
.pf-home-hero .pf-home-hero__hero { position: absolute; left: 0; top: 52%; transform: translateY(-46%); max-width: min(620px, 48%); }
.pf-home-hero .pf-home-hero__title { font-size: clamp(2.7rem, 5.1vw, 5.3rem); font-weight: 850; line-height: 0.92; letter-spacing: -0.045em; font-variation-settings: "wdth" 116; color: #fff; }
.pf-home-hero .pf-home-hero__title .pf-line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.pf-js .pf-home-hero .pf-home-hero__title .pf-line > span { display: block; transform: translateY(105%); }
.pf-ready .pf-home-hero .pf-home-hero__title .pf-line > span { animation: pf-rise 1.1s var(--pf-ease) forwards; }
.pf-ready .pf-home-hero .pf-home-hero__title .pf-line:nth-child(2) > span { animation-delay: 0.08s; }
.pf-ready .pf-home-hero .pf-home-hero__title .pf-line:nth-child(3) > span { animation-delay: 0.16s; }
.pf-ready .pf-home-hero .pf-home-hero__title .pf-line:nth-child(4) > span { animation-delay: 0.24s; }
@media (min-width: 901px) { .pf-home-hero .pf-home-hero__title .pf-line { white-space: nowrap; } }
.pf-home-hero .pf-home-hero__title em { font-style: normal; color: var(--pf-amber); }
.pf-home-hero .pf-home-hero__lede { margin-top: 24px; font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--pf-muted-d); max-width: 48ch; }
.pf-home-hero .pf-home-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.pf-home-hero .pf-home-hero__actions .wp-block-buttons, .pf-home-hero .pf-home-hero__actions { gap: 12px; }
.pf-home-hero .pf-home-hero__hint { display: flex; align-items: center; gap: 12px; margin-top: 46px; font-family: var(--pf-hand); color: var(--pf-line); font-size: 1.05rem; position: relative; }
.pf-home-hero .pf-home-hero__hint::before { content: ""; width: 26px; height: 40px; flex: none; border: 1.5px solid rgba(202, 219, 255, 0.6); border-radius: 14px; box-sizing: border-box; }
.pf-home-hero .pf-home-hero__hint::after { content: ""; position: absolute; left: 11.5px; top: 8px; width: 3px; height: 8px; border-radius: 2px; background: var(--pf-amber); animation: pf-cue 1.8s var(--pf-ease) infinite; }
@keyframes pf-cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

.pf-home-hero .pf-home-hero__stages { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: min(440px, 42%); }
.pf-home-hero .pf-home-hero__stage { position: absolute; left: 0; top: 0; transform: translateY(-50%); width: 100%; 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); box-sizing: border-box; opacity: 0; visibility: hidden; translate: 0 30px; filter: blur(8px); transition: opacity 0.6s var(--pf-ease), translate 0.8s var(--pf-ease), filter 0.6s var(--pf-ease), visibility 0.6s; }
.pf-home-hero .pf-home-hero__stage.on { opacity: 1; visibility: visible; translate: 0 0; filter: none; }
.pf-home-hero .pf-home-hero__stage-k { display: flex; align-items: center; gap: 12px; font-family: var(--pf-hand); font-size: 1.05rem; color: var(--pf-amber); }
.pf-home-hero .pf-home-hero__stage-n { font-family: var(--pf-display); font-variation-settings: "wdth" 125; font-weight: 900; font-size: 3.2rem; line-height: 0.8; color: transparent; -webkit-text-stroke: 1.5px var(--pf-amber); letter-spacing: -0.04em; }
.pf-home-hero .pf-home-hero__stage-l { color: var(--pf-amber); }
.pf-home-hero .pf-home-hero__stage-t { 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: #fff; }
.pf-home-hero .pf-home-hero__stage p:not(.pf-home-hero__stage-n):not(.pf-home-hero__stage-l) { margin-top: 14px; color: var(--pf-muted-d); font-size: 1.02rem; }
.pf-home-hero .pf-home-hero__stage ul { margin-top: 18px; display: grid; gap: 8px; }
.pf-home-hero .pf-home-hero__stage li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: 0.96rem; }
.pf-home-hero .pf-home-hero__stage li::before { content: ""; width: 20px; height: 20px; flex: none; margin-top: 2px; background: url("../../svg/ok-amber.svg") center / contain no-repeat; }

.pf-home-hero .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; pointer-events: none; }
.pf-home-hero .pf-home-hero__rail.show { opacity: 1; pointer-events: auto; }
.pf-home-hero .pf-home-hero__rail-btn .wp-block-button__link { display: flex; align-items: center; gap: 10px; justify-content: flex-end; padding: 4px 0; background: none; border: 0; border-radius: 0; color: transparent; font-size: 0.78rem; font-weight: 600; line-height: 1.6; cursor: pointer; transition: color 0.3s; }
.pf-home-hero .pf-home-hero__rail-btn .wp-block-button__link::after { content: ""; display: block; width: 22px; height: 2px; border-radius: 2px; background: rgba(202, 219, 255, 0.35); transition: width 0.4s var(--pf-ease), background-color 0.3s; }
.pf-home-hero .pf-home-hero__rail-btn .wp-block-button__link:hover { color: var(--pf-muted-d); }
.pf-home-hero .pf-home-hero__rail-btn .wp-block-button__link.done::after { background: rgba(202, 219, 255, 0.8); }
.pf-home-hero .pf-home-hero__rail-btn .wp-block-button__link.on { color: #fff; }
.pf-home-hero .pf-home-hero__rail-btn .wp-block-button__link.on::after { width: 40px; background: var(--pf-amber); }
@media (max-width: 900px) {
	.pf-home-hero { height: 820vh; }
	.pf-home-hero .pf-home-hero__hero { top: auto; bottom: 6%; transform: none; max-width: none; right: 0; }
	.pf-home-hero .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 .pf-home-hero__hint { display: none; }
	.pf-home-hero .pf-home-hero__stages { top: auto; bottom: 24px; transform: none; width: 100%; }
	.pf-home-hero .pf-home-hero__stage { top: auto; bottom: 0; transform: none; padding: 22px; }
	.pf-home-hero .pf-home-hero__stage-t { font-size: 1.6rem; margin-top: 10px; }
	.pf-home-hero .pf-home-hero__stage p:not(.pf-home-hero__stage-n):not(.pf-home-hero__stage-l) { font-size: 0.95rem; }
	.pf-home-hero .pf-home-hero__stage ul { display: none; }
	.pf-home-hero .pf-home-hero__stage-n { font-size: 2.4rem; }
	.pf-home-hero .pf-home-hero__rail { right: 12px; top: 110px; transform: none; gap: 2px; }
	.pf-home-hero .pf-home-hero__rail-btn .wp-block-button__link { font-size: 0; }
	.pf-home-hero .pf-home-hero__rail-btn .wp-block-button__link::after { width: 14px; }
	.pf-home-hero .pf-home-hero__rail-btn .wp-block-button__link.on::after { width: 26px; }
	.pf-home-hero .pf-home-hero__annots { display: none; }
}

/* In the page editor the story is laid out as a normal stack so every block can be selected and edited. */
.editor-styles-wrapper .pf-home-hero { height: auto; }
.editor-styles-wrapper .pf-home-hero .pf-home-hero__sticky { position: relative; height: auto; overflow: visible; padding: 110px 24px 60px; }
.editor-styles-wrapper .pf-home-hero .pf-home-hero__ui { height: auto; pointer-events: auto; display: grid; gap: 40px; }
.editor-styles-wrapper .pf-home-hero .pf-home-hero__hero, .editor-styles-wrapper .pf-home-hero .pf-home-hero__stages { position: static; transform: none; width: auto; max-width: none; }
.editor-styles-wrapper .pf-home-hero .pf-home-hero__stages { display: grid; gap: 20px; }
.editor-styles-wrapper .pf-home-hero .pf-home-hero__stage { position: relative; transform: none; translate: none; opacity: 1; visibility: visible; filter: none; }
.editor-styles-wrapper .pf-home-hero .pf-home-hero__annots { position: static; display: grid; gap: 10px; padding-bottom: 20px; pointer-events: auto; }
.editor-styles-wrapper .pf-home-hero .pf-home-hero__annot { position: static; opacity: 1; }
.editor-styles-wrapper .pf-home-hero .pf-home-hero__rail { position: static; transform: none; opacity: 1; pointer-events: auto; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.editor-styles-wrapper .pf-home-hero .pf-home-hero__rail-btn .wp-block-button__link { color: #fff; }
.editor-styles-wrapper .pf-home-hero .pf-home-hero__title .pf-line > span { transform: none; }
