/* The intro overlay (beats 1-5). Shown only while html.intro-on is set (the head script decides).
   Failsafe: even if every script dies after the class is set, the overlay removes itself at 14 s (pure CSS). */
.intro { display: none; }
/* black from the very first paint (no flash of the finished site); the curtain takes over once build() sizes it */
html.intro-on .intro { display: block; position: fixed; inset: 0; z-index: var(--z-intro); overflow: hidden; background: var(--c-black); animation: intro-failsafe 0s linear 14s forwards; }
.intro.is-built { background: none; }
html.intro-on, html.intro-on body { overflow: hidden; animation: intro-unlock 0s linear 14s forwards; }
@keyframes intro-failsafe { to { visibility: hidden; opacity: 0; pointer-events: none; } }
@keyframes intro-unlock { to { overflow-x: clip; overflow-y: visible; } }

.intro__curtain, .intro__draw { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro__curtain .cur { fill: var(--c-black); }
.intro__clip, .intro__still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.intro__clip.is-on, .intro__still.is-on { opacity: 1; }
.intro__shake { position: absolute; inset: 0; }
.intro__draw { pointer-events: none; overflow: visible; }
/* stroke widths are set per element in L units by intro.js (no non-scaling-stroke: it breaks dash math under a scale) */
.intro__draw .rail, .intro__draw .rung-l, .intro__draw .trace { fill: none; stroke: var(--c-yellow); stroke-linecap: square; stroke-linejoin: miter; }
.intro__draw .mark { fill: var(--c-white); }
/* the drawn scene (config.intro.style "draw"): the house in line, the roofer solid. Widths are set in scene units by intro.js. */
.intro__draw .sc { fill: none; stroke: var(--c-yellow); stroke-linecap: round; stroke-linejoin: round; }
.intro__draw .sc--dim { opacity: .55; }
.intro__draw .wk-l { fill: none; stroke: var(--c-yellow); stroke-linecap: round; stroke-linejoin: round; }
.intro__draw .wk-f { fill: var(--c-yellow); }
.intro__wm { position: absolute; left: 0; top: 0; width: 100px; height: auto; transform-origin: 0 0; opacity: 0; will-change: transform; }
/* Skip, made obvious (2026-11-17, the older-reader pass): big words, a 2 px light border, a 56 px tall button. Where the phone
   dock is hidden (> 900 px) the phone number sits beside it in the same style, so it can be tapped from the first second. */
.intro__bar { position: absolute; left: 50%; translate: -50% 0; bottom: calc(var(--s-6) + var(--safe-b)); z-index: 3; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-4); width: max-content; max-width: calc(100vw - 2 * var(--s-4)); opacity: 0; visibility: hidden; }
html.intro-on .intro__bar { animation: skip-in .3s linear .5s forwards; }
@keyframes skip-in { to { opacity: 1; visibility: visible; } }
.intro__skip, .intro__call { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-width: 10rem; min-height: var(--btn-h); padding: 0 var(--s-5); background: var(--c-veil-strong); border: var(--rule) solid var(--c-white); color: var(--c-white); font-family: var(--f-display); font-weight: var(--wght-ui); font-stretch: var(--wdth-ui); font-size: var(--t-skip); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; white-space: nowrap; touch-action: manipulation; }
.intro__skip:hover, .intro__call:hover { background: var(--c-white); color: var(--c-black); }
.intro__call { display: none; font-variant-numeric: tabular-nums; }
@media (min-width: 901px) { .intro__call { display: inline-flex; } }
.intro.is-open { pointer-events: none; }
.intro.is-open .intro__bar { visibility: hidden; }

/* While the intro runs, the nav's logo waits for the flying lockup to land (no double logo). */
html.intro-on .brand__L, html.intro-on .brand__wm { opacity: 0; animation: brand-failsafe 0s linear 14s forwards; }
@keyframes brand-failsafe { to { opacity: 1; } }
@media (max-width: 900px) { .intro__bar { bottom: calc(var(--dock-h) + var(--s-4) + var(--safe-b)); } }
