/* Geometry and light reflections specific to the hanging horizontal signal. */
.horizontal-page { --street-treatment: grayscale(1) brightness(.94) contrast(1.08); --password-message-size: 20px; }
.horizontal-page .street-main { height: max(100svh, 600px); }
/* Crop beyond the mounting stem in artwork coordinates, so the arm enters at the viewport edge. */
.horizontal-page .street-scene { width: clamp(820px, 62vw, 1080px); left: 0; top: calc(50% + 24px); bottom: auto; transform: translate(-11%, -42%); }
.horizontal-page .street-scene::before { display: none; }
.horizontal-page .sign-interface { width: 480px; height: 108px; padding: 6px 12px; }
.horizontal-hero { position: absolute; z-index: 2; top: 50%; left: 64%; right: 5.5%; transform: translateY(-50%); margin: 0; color: #edf2e4; font: 400 clamp(104px, 12vw, 208px)/.88 'Bebas Neue', sans-serif; letter-spacing: .01em; pointer-events: none; }
.horizontal-hero span { display: block; white-space: nowrap; }
.signal-lighting { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.signal-lighting .light-layer { opacity: 0; }
@media (max-width: 1000px) and (pointer: coarse) {
  .horizontal-page .horizontal-hero,
  .horizontal-page .scene-crop { translate: 0 var(--password-keyboard-shift, 0px); }
  /* The hidden native field is perspective-scaled; keep its rendered font large
     enough for Safari to avoid zooming the page when the visitor taps it. */
  .horizontal-page .crossing-input input { font-size: 32px; }
}
/* Soft optical scatter over the illustration and sky, confined to the active lamp. */
.lamp-atmosphere { mix-blend-mode: screen; }
[data-signal="red"] .light-layer--stop,
[data-signal="yellow"] .light-layer--wait,
[data-signal="green"] .light-layer--go { opacity: 1; }
@media (max-width: 1199px) {
  .horizontal-page .street-main { height: max(100svh, 760px); }
  .horizontal-page .street-scene { top: calc(50% + 144px); }
  .horizontal-hero { top: 32px; left: auto; right: 8%; transform: none; font-size: clamp(76px, 12vw, 96px); }
}
@media (max-width: 760px) {
  .horizontal-page, .about-page {
    --mobile-signal-size: min(1080px, 162vw, 150svh);
    --mobile-signal-gap: clamp(20px, 3.5svh, 34px);
  }
  .horizontal-page .street-main,
  [data-signal-design] .about-illustration[data-signal-ready] {
    position: relative; inset: auto; width: 100%; height: auto; margin: 0;
    display: flex; flex-direction: column; align-items: center;
    padding-top: calc(var(--mobile-header-space, 0px) + clamp(24px, 5svh, 48px));
    gap: var(--mobile-signal-gap);
  }
  /* About starts below the ruler; reserve its height on the password page too. */
  .horizontal-page .street-main { --mobile-header-space: var(--signal-ruler-height); min-height: 100svh; }
  [data-signal-design] .about:has([data-signal-ready]) {
    display: block; padding: 0; min-height: calc(100svh - var(--navigation-height));
  }
  .horizontal-page .horizontal-hero, .about-page .horizontal-hero {
    position: static; width: 100%; max-width: none; padding: 0;
    transform: none; flex: none; text-align: center;
    font-size: clamp(60px, min(20vw, 9svh), 76px);
  }
  .horizontal-page .scene-crop, .about-page .scene-crop {
    position: relative; inset: auto; width: 100%; flex: none;
    height: calc(var(--mobile-signal-size) * .62); overflow: visible;
  }
  /* The first visible metal is 15.39% down the transparent square canvas. */
  .horizontal-page .street-scene, [data-signal-design] .about-signal-scene {
    position: absolute; left: 0; top: 0; bottom: auto; width: var(--mobile-signal-size);
    transform: translate(-35%, -15.39%);
  }
}
