/* Get found first (plan.md). Layout I: the aerial to the window's edges, the words in a paper card at the lower left
   like a map's legend, the searches landing at the right; the four bars on the navy; the scene band; the questions;
   the close on a photo that moves. Tokens only. */

/* ---------- the header ---------- */
.fh { position: relative; isolation: isolate; display: grid; align-items: end; min-height: clamp(640px, calc(100svh - var(--header-h)), 860px); padding-block: clamp(2rem, 1rem + 5vh, 4rem); }
.fh__stage { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--c-brand); }

/* the kit's header (kit.md), as it gives it */
[data-kit-scene="rotate"] [data-kit-slide] { position: absolute; inset: 0; margin: 0; visibility: hidden; overflow: hidden; }
[data-kit-scene="rotate"] [data-kit-slide][data-kit-on] { visibility: visible; z-index: 2; opacity: var(--kit-move, 1); transform: translateX(var(--kit-glide, calc((1 - var(--kit-move, 1)) * 4%))); }
[data-kit-scene="rotate"]:not(:has([data-kit-slide][data-prev])) [data-kit-slide][data-kit-on] { transform: none; opacity: 1; }
[data-kit-scene="rotate"] [data-kit-slide][data-prev] { visibility: visible; z-index: 1; }
[data-kit-scene="rotate"] [data-kit-slide] video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
[data-kit-scene="rotate"]:not(:has([data-kit-slide][data-kit-on])) [data-kit-slide]:not([data-kit-slide] ~ [data-kit-slide]) { visibility: visible; }
[data-kit-scene="rotate"] [data-kit-slide] video { inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; clip-path: inset(2px); }
[data-kit-scene="rotate"] [data-kit-slide] video[data-kit-shown] { clip-path: none; }
[data-kit-scene="rotate"] [data-kit-slide][data-prev] { opacity: clamp(0, (1 - var(--kit-move, 0)) * 1000, 1); }

/* the grade: one still layer, a soft navy toward the foot so the card sits on the ground of the picture */
.fh__stage::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(180deg, color-mix(in srgb, var(--c-brand) 0%, transparent) 45%, color-mix(in srgb, var(--c-brand) 34%, transparent) 100%); }
.fh__stop { top: 18px; right: 18px; }
.fh__wrap { position: relative; z-index: 4; }
.fh__card { width: min(35rem, 100%); padding: clamp(1.5rem, 1rem + 1.8vw, 2.4rem); border-radius: var(--radius-l); background: var(--c-paper); box-shadow: var(--shadow-l); }
.fh__card .ph__title { font-size: clamp(2.15rem, 1.5rem + 2.3vw, 3.45rem); }
.fh__card .ph__line { font-size: clamp(1.05rem, 1rem + .25vw, 1.18rem); }

/* the searches landing at the right, then the business first on the map */
.fh__feed { position: absolute; z-index: 4; top: clamp(5rem, 16%, 9rem); right: max(var(--gutter), calc((100% - var(--max-w)) / 2)); display: grid; justify-items: end; gap: .7rem; width: min(380px, 34vw); }
.fh__search { display: inline-flex; align-items: center; gap: .65rem; margin: 0; padding: .7rem 1.15rem .7rem .95rem; border-radius: 999px; background: var(--c-card); box-shadow: var(--shadow-m); font: 500 .98rem/1.2 var(--font-ui); color: var(--c-ink); }
.fh__search svg { flex: none; width: 17px; height: 17px; fill: none; stroke: var(--c-ink-soft); stroke-width: 2; stroke-linecap: round; }
.fh__pin { display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: center; gap: .85rem; width: 100%; margin-top: .35rem; padding: .9rem 1.15rem .9rem .9rem; border-radius: var(--radius-m); background: var(--c-card); box-shadow: var(--shadow-l); }
.fh__mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--c-brand); }
.fh__mark svg { width: 26px; height: 26px; }
.fh__mark .mk-low, .fstep__pin .mk-low { fill: var(--c-on-ink); }
.fh__mark .mk-top { fill: var(--c-accent); }
.fh__pin b { display: block; font: 600 1.05rem/1.25 var(--font-text); color: var(--c-brand); }
.fh__pin small { display: block; margin-top: .1rem; font-size: .88rem; color: var(--c-accent-text); font-weight: 600; }

/* ---------- the four bars (the signature), on the navy with the motif faint behind ---------- */
.fsteps { overflow: hidden; }
.fsteps.motif-bars::before { right: auto; bottom: auto; left: 2%; top: 7%; width: min(24vw, 320px); } /* the motif in the empty navy beside the headline, clear of the bars */
.fsteps .head { margin-inline: auto; }
.fsteps__stage { position: relative; }
.fsteps__stop { top: -6px; right: 0; }
.fsteps__list { list-style: none; margin: 0; padding: 0 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.9rem, .4rem + 1.3vw, 1.5rem); align-items: end; border-bottom: 2px solid color-mix(in srgb, var(--c-on-ink) 22%, transparent); }
.fstep { display: grid; }
.fstep__top { position: relative; z-index: 2; display: flex; padding-bottom: 1.6rem; }
.fstep__chip { display: inline-flex; align-items: center; gap: .5rem; margin: 0; padding: .45rem .85rem .45rem .45rem; border-radius: 999px; background: var(--c-card); box-shadow: var(--shadow-m); font: 600 .86rem/1.2 var(--font-text); color: var(--c-brand); }
.fstep__tick { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: color-mix(in srgb, var(--c-brand) 9%, var(--c-card)); }
.fstep__tick svg { width: 13px; height: 13px; fill: none; stroke: var(--c-brand); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
/* each bar a step taller than the one before, like the logo's; the tallest edged in brass */
.fstep__bar { position: relative; display: grid; align-content: start; gap: .55rem; min-height: calc(clamp(190px, 9rem + 5vw, 230px) + var(--step) * clamp(44px, 1.6rem + 2vw, 64px)); padding: 2.4rem 1.3rem 1.5rem; border-radius: var(--radius-m) var(--radius-m) 0 0; background: var(--c-card); }
.fstep:last-child .fstep__bar { box-shadow: inset 0 0 0 2px var(--c-accent); }
.fstep:last-child .fstep__tick { background: var(--c-accent); }
.fstep:last-child .fstep__tick svg { stroke: var(--c-on-accent); }
/* the pin (the mark, brass) on the bar it has reached; it leaves a bar as soon as it lands on the next */
.fstep__pin { position: absolute; top: calc(100% - 23px); left: 1.1rem; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--c-accent); box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--c-brand) 90%, transparent), 0 0 0 4px var(--c-brand); }
.fstep__pin svg { width: 24px; height: 24px; }
.fstep__pin .mk-low { fill: var(--c-brand); }
.fstep__pin .mk-top { fill: var(--c-card); }
.fstep:has(+ .fstep .fstep__top[data-kit-on]) .fstep__pin { visibility: hidden; }
.fstep__name { font-size: var(--fs-h3); }
.fstep__line { font-size: var(--fs-small); line-height: 1.45; color: var(--c-ink-soft); }

@media (max-width: 1023.98px) {
  .fsteps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 0; row-gap: 2.5rem; }
}

/* ---------- the scene band ---------- */
.fmap__stop { top: 16px; right: 16px; }
.scene.fmap__scene { min-height: 560px; }

/* ---------- the phone ---------- */
@media (max-width: 759.98px) {
  .fh { display: block; min-height: 0; padding: 0 0 2rem; }
  .fh__stage { position: relative; inset: auto; height: 480px; }
  .fh__stage::after { background: linear-gradient(180deg, color-mix(in srgb, var(--c-brand) 0%, transparent) 55%, color-mix(in srgb, var(--c-brand) 30%, transparent) 100%); }
  .fh__wrap { margin-top: -64px; }
  .fh__feed { top: 64px; right: 12px; left: 12px; width: auto; gap: .5rem; }
  .fh__search { padding: .55rem .9rem .55rem .75rem; font-size: .9rem; }
  .fh__stop { top: 12px; right: 12px; }
  .fsteps__list { grid-template-columns: minmax(0, 1fr); row-gap: 1.75rem; }
  .fstep__top { padding-bottom: 1.5rem; }
  /* the stack rises in width, one bar under the next */
  .fstep__bar { min-height: 0; width: calc(70% + var(--step) * 10%); border-radius: var(--radius-m); }
  .scene.fmap__scene { min-height: 520px; }
}
