/* Hallmark · waive 79 · .scene road and signs fill the space under the headline at 1440 x 900 · the road is the hero's picture, set below the text on purpose */
/* Hallmark · hero B, "the road": an Italian road at dusk (day in light mode) runs to the horizon, real exam signs stand on their posts at three distances, the near ones with their Italian name and the Bengali arriving under it; the headline sits in the sky (Poster) · motion: one entrance and one small loop, the lane dashes coming toward you (3s), paused off-screen, on hover, under reduced motion and by its button */
.hero-b { --horizon: 58%; min-height: max(700px, min(100svh, 940px)); display: grid; align-content: start; padding-top: calc(var(--nav-h) + var(--space-2xl)); }
.hero-b .scene { position: absolute; inset: 0; z-index: 0; }
.hero-b .sky { position: absolute; inset: 0 0 calc(100% - var(--horizon)) 0; background: radial-gradient(45% 60% at 70% 100%, var(--scene-glow), transparent 72%), linear-gradient(to bottom, var(--scene-top), var(--scene-mid) 60%, var(--scene-low)); }
.hero-b .hills { position: absolute; left: 0; width: 100%; height: 14%; top: calc(var(--horizon) - 13.9%); }
.hero-b .hill-far { fill: var(--hill-far); }
.hero-b .hill-near { fill: var(--hill-near); }
.hero-b .ground { position: absolute; left: 0; right: 0; top: var(--horizon); bottom: 0; background: linear-gradient(to bottom, var(--hill-near), var(--color-paper) 92%); }
/* the road: a band that narrows to the horizon; each dash is a full-road layer scaled from the vanishing point, so it grows as it comes */
.hero-b .road { position: absolute; left: 0; right: 0; top: var(--horizon); bottom: 0; overflow: hidden; }
.hero-b .asphalt { position: absolute; inset: 0; background: linear-gradient(to bottom, var(--asphalt-edge), var(--asphalt) 40%); clip-path: polygon(48.8% 0, 51.2% 0, 94% 100%, 6% 100%); }
.hero-b .edge { position: absolute; inset: 0; background: var(--lane); opacity: 0.85; }
.hero-b .edge.l { clip-path: polygon(48.8% 0, 48.95% 0, 8.4% 100%, 6% 100%); }
.hero-b .edge.r { clip-path: polygon(51.05% 0, 51.2% 0, 94% 100%, 91.6% 100%); }
.hero-b .dashes b { position: absolute; inset: 0; transform-origin: 50% 0; transform: scale(var(--s, 0.5)); }
.hero-b .dashes b::before { content: ""; position: absolute; left: 50%; top: 64%; width: 1.2%; height: 18%; margin-left: -0.6%; background: var(--lane); border-radius: 2px; }
.hero-b .dashes b:nth-child(1) { --s: 0.08; } .hero-b .dashes b:nth-child(2) { --s: 0.2; } .hero-b .dashes b:nth-child(3) { --s: 0.38; }
.hero-b .dashes b:nth-child(4) { --s: 0.62; } .hero-b .dashes b:nth-child(5) { --s: 0.95; } .hero-b .dashes b:nth-child(6) { --s: 1.4; }
@media (prefers-reduced-motion: no-preference) {
  .js .hero-b .dashes b { animation: lane 3s cubic-bezier(0.55, 0, 1, 0.45) infinite; animation-delay: calc(var(--k) * -0.5s); }
}
@keyframes lane { from { transform: scale(0.02); } to { transform: scale(1.75); } }
/* the fade into the page under the road */
.hero-b .scene::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: linear-gradient(to bottom, transparent, var(--color-paper)); }

/* posts: a pole and a sign; size is the distance */
.hero-b .post { position: absolute; display: grid; justify-items: center; width: var(--w); top: var(--t); left: var(--l); }
.hero-b .post img { width: 100%; height: auto; position: relative; z-index: 1; filter: drop-shadow(var(--sign-shadow)); }
.hero-b .post i { display: block; width: max(2px, calc(var(--w) * 0.045)); height: calc(var(--w) * 1); margin-top: calc(var(--space-3xs) * -1); background: var(--pole); color: var(--color-ink); border-radius: 2px; }
.hero-b .post .tag { position: absolute; top: 16%; white-space: nowrap; z-index: 2; }
.hero-b .far-l { --w: 26px; --l: 41.6%; --t: calc(var(--horizon) - 33px); }
.hero-b .far-r { --w: 30px; --l: 55.4%; --t: calc(var(--horizon) - 30px); }
.hero-b .mid-l { --w: 72px; --l: 30%; --t: calc(var(--horizon) - 8px); }
.hero-b .mid-l .tag { right: calc(100% + var(--space-sm)); }
.hero-b .near-r { --w: 132px; --l: 74%; --t: calc(var(--horizon) - 10px); }
.hero-b .near-r .tag { left: calc(100% + var(--space-xs)); top: 6%; }
.hero-b .far-l, .hero-b .far-r { opacity: 0.85; }

/* the entrance: the signs come up out of the ground, the nearest last */
.js .hero-b .post { animation: stand 900ms var(--ease-out) both; animation-delay: calc(300ms + var(--d, 0) * 180ms); }
.js .hero-b .near-r { animation-delay: 620ms; }
@keyframes stand { from { opacity: 0; transform: translateY(18px); } }

.hero-b .hero-copy { max-width: var(--container); }
.hero-b .lead { color: var(--color-ink); }

@media (max-width: 60rem) {
  .hero-b { --horizon: 62%; min-height: 760px; padding-top: calc(var(--nav-h) + var(--space-lg)); }
  .hero-b .near-r { --w: 84px; --l: auto; --t: calc(var(--horizon) + 4px); right: var(--space-md); left: auto; }
  .hero-b .near-r .tag { left: auto; right: 0; top: calc(100% - 6px); }
  .hero-b .mid-l { --w: 46px; --l: var(--space-md); --t: calc(var(--horizon) + 8px); }
  .hero-b .mid-l .tag { display: grid; right: auto; left: 0; top: calc(100% - 4px); }
  .hero-b .far-l { --l: 38%; }
  .hero-b .far-r { --l: 57%; }
  .hero-b .tag .it { font-size: 0.8125rem; }
  .hero-b .tag .bn { font-size: 0.875rem; }
}

/* v3: everything ends inside the hero: the poles are shorter than the space left under them, the pause button sits in the lower right corner on the grass */
.hero-b .post i { height: calc(var(--w) * 0.9); }
.hero-b .loop-btn { bottom: var(--space-md); right: var(--space-md); }
@media (max-width: 60rem) { .hero-b .post i { height: calc(var(--w) * 0.75); } .hero-b .loop-btn { bottom: var(--space-sm); right: var(--space-sm); } }
@media (max-width: 60rem) {
  .hero-b .post .tag { white-space: normal; width: 8rem; padding: var(--space-2xs) var(--space-xs); }
  .hero-b .tag .it { font-size: 0.75rem; }
  .hero-b .tag .bn { font-size: 0.8125rem; }
}
