/* Illustrated city: art buildings replace the drawn silhouettes. */
body[data-view="experimental"] .retro-city--art .retro-building--art {
  position:absolute; display:block; padding:0; margin:0;
  background:none !important; border:0 !important; box-shadow:none !important;
}
body[data-view="experimental"] .retro-city--art .retro-building--art::before,
body[data-view="experimental"] .retro-city--art .retro-building--art::after { display:none !important; }
.retro-building--art[hidden] { display:none !important; }
.retro-building--art > .art-windows,
.retro-building--art > .art-img { position:absolute; inset:0; width:100%; height:100%; display:block; pointer-events:none; }
.retro-building--art > .is-flipped { transform:scaleX(-1); }
/* The far row is distance-tinted in the files, so it no longer needs the layer blur. */
body[data-view="experimental"] .retro-city--far.retro-city--art { opacity:.62; filter:none; }
/* The street moves with the front row (see the paint loop) and runs deeper below it. */
body[data-view="experimental"] .retro-street { bottom:-30%; height:calc(var(--street-h) + 30%); }
/* Closest row: in front of the street, full-screen box, never blurred or hazed. */
body[data-view="experimental"] .retro-city--hero { position:absolute; inset:0; height:auto; z-index:5; pointer-events:none; }
/* Street-front row: in front of the street surface, behind the close towers. */
body[data-view="experimental"] .retro-city--front { position:absolute; inset:0; height:auto; z-index:4; pointer-events:none; }
body[data-view="experimental"] .retro-city--horizon,body[data-view="experimental"] .retro-city--farmid,body[data-view="experimental"] .retro-city--midnear { will-change:transform; }
/* ---- "Get in touch" billboard on the Garage roof truss (mirrors the marquee overlay) ---- */
.retro-billboard-overlay { display:none; }
body[data-view="experimental"] .retro-billboard-overlay {
  display:block; position:fixed; inset:0; z-index:5; pointer-events:none; transform-origin:50% 72%; will-change:transform;
}
body[data-view="experimental"].view-changing .retro-billboard-overlay { visibility:hidden; }
.retro-billboard-street { position:absolute; inset:0; will-change:transform; }
.retro-billboard {
  position:absolute; display:grid; place-content:center; justify-items:center; gap:.25em; text-decoration:none;
  /* A pasted poster lit from above by the three gooseneck lamps on the truss. */
  background:radial-gradient(ellipse 30% 70% at 17% 0%,#ffd9a033,transparent 70%),radial-gradient(ellipse 30% 70% at 50% 0%,#ffd9a033,transparent 70%),
    radial-gradient(ellipse 30% 70% at 83% 0%,#ffd9a033,transparent 70%),linear-gradient(#1a1230,#0d0a1a);
  box-shadow:inset 0 0 0 2px #2a1f3a; color:#fff7ee; container-type:size;
  opacity:0; visibility:hidden; pointer-events:none; transition:opacity .5s ease-out, visibility 0s linear .5s, box-shadow .3s;
}
.retro-billboard-overlay.is-lit .retro-billboard { opacity:1; visibility:visible; pointer-events:auto; transition:opacity .5s ease-out, box-shadow .3s; }
.retro-billboard .b-kicker { font:700 max(.5rem,7cqh)/1 'Courier New',monospace; letter-spacing:.4em; text-transform:uppercase; color:#a6fff3; text-shadow:0 0 6px #18c9e6; }
.retro-billboard .b-title { font:900 min(30cqh,13cqw)/1 Impact,'Arial Black',sans-serif; letter-spacing:.06em; text-transform:uppercase; color:#fff7ee; text-shadow:0 0 2px #fff,0 0 12px #ffb35a,0 0 28px #ff7a3c88; }
.retro-billboard .b-sub { font:600 max(.5rem,7cqh)/1.4 'Courier New',monospace; letter-spacing:.2em; text-transform:uppercase; color:#d9cbe6; }
.retro-billboard:hover, .retro-billboard-overlay.is-focus .retro-billboard { box-shadow:inset 0 0 0 2px #ffb35a, 0 0 40px #ffb35a44; }
.retro-billboard:hover .b-sub, .retro-billboard-overlay.is-focus .b-sub { color:#fff; }
/* The billboard replaces the in-page button visually; the link stays for keyboards and screen readers. */
body.has-billboard[data-view="experimental"] .home-contact > a {
  position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap;
}

/* ---- Billboard v2: your posters, lamplight, live text ---- */
body[data-view="experimental"] .retro-billboard {
  background:#120c22; box-shadow:none; overflow:hidden; display:block;
  opacity:1; visibility:visible; pointer-events:auto; transition:filter .3s;
}
.retro-billboard .b-poster { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.retro-billboard .b-on { opacity:0; transition:opacity .9s ease-out; }
.retro-billboard-overlay.is-lit .b-on { opacity:1; }
/* Three warm pools from the gooseneck lamps above the truss. */
.retro-billboard .b-lamps { position:absolute; inset:0; mix-blend-mode:screen; opacity:0; transition:opacity .9s ease-out;
  background:radial-gradient(ellipse 22% 85% at 17% -8%,#ffd29a66,transparent 70%),radial-gradient(ellipse 22% 85% at 50% -8%,#ffd29a66,transparent 70%),radial-gradient(ellipse 22% 85% at 83% -8%,#ffd29a66,transparent 70%); }
.retro-billboard-overlay.is-lit .b-lamps { opacity:1; }
.retro-billboard .b-head { position:absolute; left:4%; right:4%; top:14%; text-align:center;
  font:700 min(30cqh,7.6cqw)/1 "Big Shoulders",Impact,sans-serif; letter-spacing:.02em; text-transform:uppercase;
  color:#cfc3dc; transition:color .9s, text-shadow .9s; }
.retro-billboard-overlay.is-lit .b-head { color:#fff4e6; text-shadow:0 2px 0 #1a1230,0 0 18px #ffb35a55; }
.retro-billboard .b-cta { position:absolute; left:50%; bottom:11%; translate:-50% 0; padding:.25em 1em; border-radius:999px;
  font:700 max(.55rem,min(11cqh,2.6cqw))/1.2 "Geist Mono","Courier New",monospace; letter-spacing:.18em; text-transform:uppercase; white-space:nowrap;
  color:#6f8f95; border:1px solid #3d5a60; transition:color .6s, border-color .6s, box-shadow .6s, text-shadow .6s; }
.retro-billboard-overlay.is-lit .b-cta { color:#cffff8; border-color:#7ff3e6; text-shadow:0 0 6px #18c9e6; box-shadow:0 0 10px #18c9e688, inset 0 0 8px #18c9e655; }
.retro-billboard:hover .b-cta, .retro-billboard-overlay.is-focus .b-cta { color:#fff; border-color:#fff; box-shadow:0 0 18px #18c9e6, inset 0 0 10px #18c9e6aa; }
.retro-billboard:hover, .retro-billboard-overlay.is-focus .retro-billboard { box-shadow:none; filter:brightness(1.08); }
/* The billboard replaces the heading and button visually in this view only. */
body.has-billboard[data-view="experimental"] .home-contact h2 {
  position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap;
}
/* ---- Marquee v2: your art, live text, hung off the right close tower ---- */
body[data-view="experimental"] .retro-marquee {
  background:none; border:0; box-shadow:none; padding:0; display:block;
  opacity:1; visibility:visible; pointer-events:auto; animation:none !important;
}
body[data-view="experimental"] .retro-marquee::before, body[data-view="experimental"] .retro-marquee::after { display:none; }
.retro-marquee .m-art { position:absolute; inset:0; width:100%; height:100%; }
.retro-marquee .m-on { opacity:0; transition:opacity .6s steps(3,end); }
.retro-marquee-overlay.is-lit .m-on { opacity:1; }
/* Panel inside the bulbs, measured from the art. */
.retro-marquee .m-panel { position:absolute; left:4.8%; width:78.4%; top:36.5%; height:45%; display:grid; place-content:center; justify-items:center; gap:.15em; container-type:size; }
.retro-marquee .m-kicker, .retro-marquee .m-sub { font-size:max(.5rem,11cqh); }
.retro-marquee .m-title { font-size:min(38cqh,12cqw); }
.retro-marquee-overlay:not(.is-lit) .m-panel { opacity:.45; }
@media (prefers-reduced-motion:no-preference) {
  /* A gentle chase: alternating bands of bulbs dim in turn. */
  .retro-marquee-overlay.is-lit .m-on { -webkit-mask:repeating-linear-gradient(90deg,#000 0 18px,#0009 18px 36px); mask:repeating-linear-gradient(90deg,#000 0 18px,#0009 18px 36px);
    animation:marquee-chase 1.2s steps(2,end) infinite; }
  @keyframes marquee-chase { to { -webkit-mask-position:36px 0; mask-position:36px 0; } }
}
body[data-view="experimental"].retro-motion-paused .m-on { animation-play-state:paused; }
/* ---- Aviation beacons on the crane and comms tower ---- */
.art-beacon { position:absolute; width:4px; height:4px; margin:-2px 0 0 -2px; border-radius:50%; background:#ff3b3b; box-shadow:0 0 6px 2px #ff2a2a99; }
@media (prefers-reduced-motion:no-preference) {
  .art-beacon { animation:beacon 2.4s steps(1,end) infinite; }
  .art-beacon + .art-beacon { animation-delay:1.2s; }
  @keyframes beacon { 0%,40% { opacity:1; } 41%,100% { opacity:.12; } }
}

/* Signs belong to the city: behind the page's cards and text, in front of the skyline. */
body[data-view="experimental"] .retro-billboard-overlay,
body[data-view="experimental"] .retro-marquee-overlay { z-index:-1; }

/* Kinks: the billboard is the contact section here, so its old label goes; the old CSS marquee's
   light pool and double ring no longer belong to anything. */
body.has-billboard[data-view="experimental"] .experimental-contact-label { display:none; }
body[data-view="experimental"] .retro-marquee-glow { display:none !important; }
body[data-view="experimental"] .retro-marquee,
body[data-view="experimental"] .retro-marquee-overlay.is-lit .retro-marquee,
body[data-view="experimental"] .retro-marquee:hover,
body[data-view="experimental"] .retro-marquee-overlay.is-focus .retro-marquee { box-shadow:none !important; border:0 !important; }

/* ---- Traffic in depth ---- */
.city-lane { position:absolute; left:0; right:0; height:0; pointer-events:none; z-index:6; }
.city-lane--deck { right:auto; z-index:1; }
.city-car { position:absolute; left:0; top:0; display:block; opacity:0;
  width:calc(var(--car-len,14px) * var(--car-scale,1)); height:calc(2.5px * var(--car-scale,1) + .5px);
  border-radius:2px; background:currentColor; filter:opacity(var(--car-glow,1));
  box-shadow:0 0 calc(6px * var(--car-scale,1)) currentColor; }
/* A headlight beam ahead of rightward cars; taillights get none. */
.city-car::after { content:""; position:absolute; left:100%; top:50%; width:calc(28px * var(--car-scale,1)); height:calc(5px * var(--car-scale,1));
  translate:0 -50%; background:linear-gradient(90deg,#fff0d244,transparent); border-radius:50%; }
.city-car.is-tail::after { display:none; }
@media (prefers-reduced-motion:reduce) { .city-lane { display:none; } }
/* Distant cars: a wider halo so they read through the haze. */
.city-car { box-shadow:0 0 calc(4px + 6px * var(--car-scale,1)) currentColor, 0 0 calc(10px + 8px * var(--car-scale,1)) color-mix(in srgb, currentColor 45%, transparent); }

/* Cars always pass BEHIND the buildings of their row (and every row in front): roads seen through gaps. */
.city-lane { z-index:-1 !important; }
.city-lane--deck { z-index:0 !important; }
/* Softer headlight glow ahead of the car. */
.city-car::after { width:calc(14px * var(--car-scale,1)); background:linear-gradient(90deg,#fff0d222,transparent); }
/* Deep ending: one extra screen after the last card, where only the city and its signs remain. */
body.has-billboard[data-view="experimental"] .home-contact { min-height:100vh; }

/* ---- Street wall: replaces the bare ground band. Tall enough that no ground ever shows,
   even when the front row has risen fully; repeats sideways; its holes show the city behind. */
body[data-view="experimental"] .retro-street { background:none !important; }
body[data-view="experimental"] .retro-street-dusk,
body[data-view="experimental"] .retro-street-sheen,
body[data-view="experimental"] .retro-street-curb { display:none; }
.city-wall { display:none; }
body[data-view="experimental"] .city-wall {
  display:block; position:absolute; left:0; right:0; top:0; height:calc(var(--street-h) + 180px);
  background:url("art/signs/wall.webp") repeat-x center top / auto 100%; pointer-events:none;
}
@media (max-width:42rem) { body[data-view="experimental"] .city-wall { background-image:url("art/signs/wall-1200.webp"); } }

/* Phones: the Garage stands in front of the right close tower. */
@media (max-width:679px) { body[data-view="experimental"] .retro-city--front { z-index:6; } }

/* ---- Section ads riding the close towers ---- */
.ad-rail { display:none; }
body.has-ads[data-view="experimental"] .ad-rail {
  display:block; position:absolute; top:-60%; bottom:-60%; width:6px; z-index:1;
  background:linear-gradient(90deg,#120d1d,#4a3b55 40%,#7e5b74 55%,#2a2135); box-shadow:0 0 0 1px #0b0814;
}
body.has-ads[data-view="experimental"] .ad-rail[hidden] { display:none; }
body.has-ads[data-view="experimental"] .home-destination {
  position:relative; display:block !important; justify-self:start !important;
  width:var(--ad-w) !important; height:var(--ad-h) !important; margin-left:var(--ad-x) !important; margin-right:0 !important;
  padding:0 !important; border:0 !important; background:none !important; box-shadow:none !important;
}
body.has-ads[data-view="experimental"] .home-destination > .ad-art { position:absolute; inset:0; width:100%; height:100%; display:block; filter:drop-shadow(0 10px 18px #05030c99); }
/* Clamps: the rail end sits on the tower wall; mirrored for signs on the left tower. */
body.has-ads[data-view="experimental"] .home-destination > .ad-clamp {
  position:absolute; width:var(--clamp-w); height:auto; left:100%; display:block;
}
body.has-ads[data-view="experimental"] .home-destination[data-side="left"] > .ad-clamp { left:auto; right:100%; transform:scaleX(-1); }
body.has-ads[data-view="experimental"] .home-destination > .ad-clamp--top { top:16%; }
body.has-ads[data-view="experimental"] .home-destination > .ad-clamp--bottom { bottom:16%; }
/* Old card dressing off: neon frame, chip duplicates, bars, art, extra lines. */
body.has-ads[data-view="experimental"] .home-destination .destination-neon-frame,
body.has-ads[data-view="experimental"] .home-destination .cyber-sign-label,
body.has-ads[data-view="experimental"] .home-destination > svg,
body.has-ads[data-view="experimental"] .home-destination > span.lofi-card-bar,
body.has-ads[data-view="experimental"] .home-destination > span.vapor-card-bar,
body.has-ads[data-view="experimental"] .home-destination > img:not(.ad-art):not(.ad-clamp) { display:none !important; }
body.has-ads[data-view="experimental"] .home-destination .destination-caption::before,
body.has-ads[data-view="experimental"] .home-destination .destination-caption::after { display:none !important; }
/* Live text inside the ad's empty area. */
body.has-ads[data-view="experimental"] .home-destination .destination-caption {
  position:absolute !important; left:var(--tx); top:var(--ty); width:var(--tw); height:var(--th);
  margin:0 !important; padding:0 !important; border:0 !important; background:none !important; backdrop-filter:none !important;
  display:flex !important; flex-direction:column; justify-content:center; align-items:flex-start; gap:.45em; container-type:size; transform:none !important;
}
body.has-ads[data-view="experimental"] .home-destination .destination-neon-plaque {
  display:inline-block; position:static !important; margin:0 !important; padding:.25em .6em; border:1px solid var(--sign-neon); color:var(--sign-neon);
  font:700 clamp(.5rem,5cqh,.68rem)/1.2 "Geist Mono","Courier New",monospace; letter-spacing:.16em; text-transform:uppercase; background:#0b081499; transform:none !important;
}
body.has-ads[data-view="experimental"] .home-destination h3 {
  margin:0 !important; font:700 min(17cqh,11.5cqw)/1 "Big Shoulders",Impact,sans-serif !important; letter-spacing:.02em !important; text-transform:uppercase;
  color:#fff7ee !important; text-shadow:0 0 2px #fff,0 0 14px var(--sign-glow) !important; transform:none !important;
}
body.has-ads[data-view="experimental"] .home-destination .destination-neon-subline {
  position:static !important; margin:0 !important; font:600 clamp(.48rem,4.4cqh,.62rem)/1.3 "Geist Mono","Courier New",monospace; letter-spacing:.18em; color:var(--sign-neon); opacity:.85;
}
body.has-ads[data-view="experimental"] .home-destination .destination-caption p {
  position:static !important; margin:.2em 0 0 !important; max-width:none !important; color:#e9e2f2 !important;
  font-size:clamp(.68rem,6.2cqh,.92rem) !important; line-height:1.4 !important; text-shadow:0 1px 3px #000;
}
@container (max-height:125px) { .destination-caption p { display:none; } }
@container (max-height:110px) { .destination-neon-subline { display:none; } }
body.has-ads[data-view="experimental"] .home-destination .home-number {
  position:absolute !important; top:5%; right:6%; left:auto; padding:0 !important; font-size:.62rem; z-index:1;
}
body.has-ads[data-view="experimental"] .home-destination .home-arrow {
  position:absolute !important; right:6%; bottom:8%; padding:0 !important; font-size:1.1rem; z-index:1;
}
body.has-ads[data-view="experimental"] .home-destination:hover > .ad-art { filter:drop-shadow(0 10px 18px #05030c99) brightness(1.12); }
body.has-ads[data-view="experimental"] .home-destination:focus-visible { outline:2px solid var(--sign-neon); outline-offset:6px; }
/* Ads keep their true proportions; the old 75svh card height becomes spacing around each ad,
   so the page's scroll rhythm is unchanged. */
body.has-ads[data-view="experimental"] .home-destination {
  min-height:0 !important; max-height:none !important;
  margin-block:max(2rem, calc((110lvh - var(--ad-h)) / 2)) !important;
}

/* ---- Neon signs: 40% smaller, placed for the final view ---- */
body[data-view="experimental"] .retro-building .neon-accent { width:clamp(4.8rem,8.4vw,7.2rem) !important; }
body[data-view="experimental"] .retro-building .neon-accent[data-panel="design"] { width:clamp(3.8rem,6.7vw,5.8rem) !important; }
body[data-view="experimental"] .neon-accent[data-panel="engineering"][data-mount="wall-left"] { top:40%; }
body[data-view="experimental"] .neon-accent[data-panel="design"][data-mount="wall-left"] { top:20%; }
@media (max-width:42rem) {
  body[data-view="experimental"] .retro-building .neon-accent { width:clamp(3.4rem,13vw,4.6rem) !important; }
  body[data-view="experimental"] .retro-building .neon-accent[data-panel="design"] { width:clamp(2.8rem,10.5vw,3.8rem) !important; }
}

body.has-ads[data-view="experimental"] .home-destination[data-panel="design"] .home-number { top:31%; right:9%; }

/* ---- Phones: signs glued to the screen edges, no rail or clamps, bigger titles ---- */
@media (max-width:679px) {
  body.has-ads[data-view="experimental"] .home-destination > .ad-clamp { display:none !important; }
  body.has-ads[data-view="experimental"] .home-destination .destination-neon-subline { display:none !important; }
  body.has-ads[data-view="experimental"] .home-destination h3 { font-size:min(30cqh,15cqw) !important; }
  /* Résumé's billboard is too short for copy: the description becomes a caption under the sign. */
  body.has-ads[data-view="experimental"] .home-destination .destination-neon-plaque { display:none !important; }
  body.has-ads[data-view="experimental"] .home-destination h3 { font-size:min(34cqh,16cqw) !important; }
  /* Every description becomes a caption just under its sign. */
  body.has-ads[data-view="experimental"] .home-destination .destination-caption p {
    display:block !important; position:absolute !important; top:calc(var(--cap-top) + 8px); left:var(--cap-left); width:var(--cap-w) !important; box-sizing:border-box;
    padding:.5em .7em; background:#0b0814cc; border-left:2px solid var(--sign-neon); font-size:.78rem !important;
  }
}

/* Phones: the Design display has room, so its description stays inside the sign. */
@media (max-width:679px) {
  body.has-ads[data-view="experimental"] .home-destination[data-panel="design"] .destination-caption p {
    position:static !important; width:auto !important; background:none; border-left:0; padding:0; font-size:clamp(.7rem,7cqh,.85rem) !important;
  }
}
@media (max-width:679px) {
  body.has-ads[data-view="experimental"] .home-destination[data-panel="design"] .home-arrow { bottom:auto; top:41%; right:9%; }
}

/* ---- Steady sizing: the scene and its overlays use the largest viewport height, so the phone's
   address bar collapsing (first scroll) or returning (page end) never resizes the city. ---- */
body[data-view="experimental"] .retro-scene,
body[data-view="experimental"] .retro-billboard-overlay,
body[data-view="experimental"] .retro-marquee-overlay { bottom:auto !important; height:100vh; height:100lvh; }
/* One extra screen of sky between the hero and the first sign. */
body[data-view="experimental"] .home-explore { margin-top:100lvh; }

/* Rain removed: at most 9% opacity it was invisible, but cost about a tenth of every frame. */
body[data-view="experimental"] .retro-rain { display:none !important; }
