html { background: white; overflow-x: clip; }
.drive-story { position: relative; z-index:0; height: 225vh; height: 225svh; background: white; }
#hero { position: absolute; top: 0; }
.drive-story .hero {
  display: block; position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0;
  isolation: isolate; overflow: hidden; --chrome-opacity: 1;
}
.hero .caption { opacity: var(--chrome-opacity); }
.hero #viewer { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; min-height: 0; }
.hero .caption {
  display: block; position: absolute; inset: auto 0 0;
  padding: clamp(65px,12svh,140px) var(--gutter) max(38px,5.5svh,env(safe-area-inset-bottom));
  background: radial-gradient(ellipse 62% 112% at 0% 108%,#091928e3 6%,#0817239c 40%,#0c1c2926 71%,transparent 100%);
}
.caption-text { padding: 0; }
.caption-text h1 { margin: 0; font-weight: 480; font-size: clamp(2.15rem,4.1vw,5.25rem); letter-spacing: -.064em; line-height: 1.07; }
.drive-link { color: #fbfbf6; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; gap: .40em; padding: .14em .12em .14em 0; pointer-events: auto; }
.draft-arrow {
  display: block; width: .66em; height: .87em; overflow: visible;
  stroke: #fff; stroke-width: 1.9; stroke-linejoin: miter; stroke-linecap: square;
  filter: drop-shadow(0 0 3px rgb(225 242 255 / .85)) drop-shadow(0 0 7px rgb(190 223 255 / .4));
}
@media (prefers-reduced-motion: no-preference) {
  html:not([data-arrival-pending]) body:not(:has(.arrival:not([hidden]))) .hero:not([data-driving]) .draft-arrow {
    animation: drive-arrow-bounce 2.65s ease-in-out infinite;
  }
  @keyframes drive-arrow-bounce {
    0%, 45%, 100% { transform: translateY(0); }
    17% { transform: translateY(.17em); }
    30% { transform: translateY(-.035em); }
  }
}
.arrow-glint { opacity: 0; stroke: white; stroke-width: 2.4; stroke-dasharray: .21 .79; }
.drive-link:is(:hover,:focus-visible) .arrow-glint { animation: arrow-glint 780ms ease-out 1; }
@keyframes arrow-glint { 0%{opacity:0;stroke-dashoffset:1;} 23%{opacity:1;filter:drop-shadow(0 0 2px white);} 100%{opacity:0;stroke-dashoffset:0;} }
#projects { position:relative; z-index:2; margin-top:-100vh; margin-top:-100svh; }
.drive-stills { position:absolute; inset:0; pointer-events:none; }
.drive-stills { z-index:1; opacity:0; visibility:hidden; transition:opacity 200ms ease-out, visibility 0s linear 200ms; }
.drive-stills[data-visible] { opacity:1; visibility:visible; transition:none; }
.drive-stills img { position:absolute;width:100%;height:100%;object-fit:cover;opacity:0;filter:opacity(0);transition:filter 150ms ease-out; }
.drive-stills img[data-decoded] { filter:opacity(1); }
.drive-recording { position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;pointer-events:none; }
.drive-recording.is-current { opacity:1; }
.hero[data-driving] .caption { pointer-events:none; }
.hero[data-driving] .drive-link { pointer-events:none; }

/* The receiver follows the modeled dish, including while the phone pans left. */
.antenna-station {
  position:absolute; left:0; top:0; z-index:3; width:0; height:0;
  --arc-x:1; --arc-y:1; --leader-rise:clamp(86px,9vw,172px);
  color:white; font-family:"IBM Plex Mono",monospace;
}
.antenna-station[hidden], .antenna-station[data-away], .antenna-callout[hidden],
html[data-arrival-pending] .antenna-station,
.hero[data-driving] .antenna-station, body:has(.arrival:not([hidden])) .antenna-station,
.radio-stop[hidden] { display:none; }
.antenna-trigger {
  position:absolute; inset:-23px auto auto -23px; width:46px; height:46px; padding:0;
  display:grid; place-items:center; border:0; border-radius:50%; background:transparent;
}
.antenna-trigger::after {
  content:""; position:absolute; inset:12px; border:1px solid rgb(255 255 255 / .68);
  border-radius:50%; box-shadow:0 0 3px #f4faff42;
  opacity:0; transform:scale(.75); transition:transform .2s,opacity .2s;
}
.antenna-station[data-glint]:not([data-clipped]) .antenna-trigger:not(:disabled)::before {
  content:""; position:absolute; pointer-events:none; border-radius:50%;
  --u:var(--dish-unit, 1px);
  left:calc(50% - 3.8 * var(--u)); top:calc(50% - 1.8 * var(--u));
  width:calc(18.8 * var(--u)); height:calc(40.5 * var(--u));
  transform:translate(-50%,-50%) rotate(16deg);
  background:linear-gradient(115deg,transparent 32%,#e5f7ff70 42%,#fff 50%,#f1fbff80 58%,transparent 68%) 100% 50% / 320% 100%;
  box-shadow:inset 0 0 1px 1px #f3fbffbf, 0 0 3px 1px #d5f2ffb0;
  animation:dish-sheen 3.8s .26s ease-in-out infinite both;
}
@keyframes dish-sheen {
  0%,6% { opacity:0; background-position:100% 50%; }
  25% { opacity:.92; }
  51%,100% { opacity:0; background-position:0% 50%; }
}
@media (prefers-reduced-motion:reduce) {
  .antenna-station[data-glint]:not([data-clipped]) .antenna-trigger:not(:disabled)::before {
    animation:none; background-position:50% 50%; opacity:.25;
  }
}
.antenna-trigger:is(:focus-visible,:hover,[aria-expanded="true"]):not(:disabled)::after { opacity:1; transform:scale(1); }
.antenna-trigger:disabled { cursor:default; pointer-events:none; }
.antenna-station[data-clipped] .antenna-trigger { opacity:0; pointer-events:none; }
.dish-panorama { display:none; }
@media (max-width:700px) and (max-aspect-ratio:4/5) {
  body:not(.ready) .dish-panorama {
    display:block; position:absolute; z-index:1; pointer-events:none;
    /* The wide photo and the mobile crop share the calibrated camera.
       Register their picture centers before exposing the sliver at left. */
    width:265%; max-width:none; height:auto; top:50%; left:0;
    transform:translate(calc(-31.43% + var(--dish-pan-x,0px)),-50.63%);
  }
  body:not(.ready) #poster { translate:var(--dish-pan-x,0px) 0; }
}
.antenna-station[data-left] { --arc-x:-1; }
.antenna-station[data-below] { --arc-y:-1; }
.antenna-callout {
  position:absolute; inset:0 auto auto 0; width:0; height:0; z-index:1;
  transform:scale(var(--arc-x),var(--arc-y));
}
.antenna-arc {
  pointer-events:none; position:absolute; left:0; bottom:0; width:108px; height:var(--leader-rise); overflow:visible;
  fill:none; stroke:#fcfeff; stroke-width:.65; stroke-linecap:round;
  filter:drop-shadow(0 0 1.1px #f1f8ff85) drop-shadow(0 .5px .8px #0b254e75);
}
.antenna-receive {
  position:absolute; left:86px; bottom:calc(var(--leader-rise) * .97222 - 22px); height:44px; padding:0 18px;
  display:flex; align-items:center; gap:6px; background:transparent; border:0; border-radius:3px;
  white-space:nowrap; visibility:hidden; opacity:0; transition:opacity 70ms ease-out;
}
.antenna-callout[data-linked] .antenna-receive { visibility:visible; opacity:1; }
.receiver-dot {
  display:block; width:8px; height:8px; flex:none; border:1px solid #fff;
  border-radius:50%; box-shadow:0 0 2.5px #e8f6ff80;
}
.receiver-label {
  color:#fff; font:400 9px/1.2 "IBM Plex Mono",monospace; letter-spacing:.095em;
  text-transform:uppercase; -webkit-font-smoothing:antialiased;
  text-shadow:0 0 2px #e1f2ff90,0 1px 2px #0d27477a;
  transform:scale(var(--arc-x),var(--arc-y));
}
.antenna-receive:is(:hover,:focus-visible) .receiver-dot { box-shadow:0 0 5px #effbffb0; }
.antenna-receive:focus-visible { outline:none; }
.antenna-receive:focus-visible .receiver-dot { outline:1px solid currentColor; outline-offset:3px; color:white; }
.radio-stop {
  position:fixed; z-index:10; bottom:max(16px,env(safe-area-inset-bottom)); right:max(16px,env(safe-area-inset-right));
  display:flex; align-items:center; gap:7px; min-height:44px; padding:0 9px; border:0;
  color:#fff; background:transparent; font:400 10px/1.2 "IBM Plex Mono",monospace;
  text-transform:uppercase; letter-spacing:.095em; -webkit-font-smoothing:antialiased;
  text-shadow:0 0 2px #e5f3ff73,0 1px 2px #0d1e35,0 0 4px #0b192ac7;
}
.radio-stop svg { width:16px; height:16px; stroke-width:1.1; filter:drop-shadow(0 1px 1px #0b2136); }
.radio-stop[aria-pressed="true"] .sound-off,.radio-stop[aria-pressed="false"] .sound-waves { display:none; }
@media (prefers-reduced-motion:reduce) {
  .antenna-receive { transition:none; }
}
/* Match the contractor section's blueprint paper from first paint. The
   transparent grid stays registered while the live model takes on material. */
.arrival, html[data-arrival-pending]::after {
  --draft-paper: radial-gradient(ellipse at 56% 41%, #193b61, #102b4a 58%, var(--blueprint-navy));
  --draft-grid: linear-gradient(rgb(74 144 217 / .065) 1px, transparent 1px),
    linear-gradient(90deg, rgb(74 144 217 / .065) 1px, transparent 1px),
    linear-gradient(rgb(74 144 217 / .13) 1px, transparent 1px),
    linear-gradient(90deg, rgb(74 144 217 / .13) 1px, transparent 1px);
  position: fixed;
  inset: 0;
  z-index: 20;
  display: block;
  pointer-events: none;
  overflow: hidden;
  isolation: isolate;
}
html[data-arrival-pending]::after {
  content: '';
  background-color: var(--blueprint-navy);
  background-image: var(--draft-grid), var(--draft-paper);
  background-size: 20px 20px,20px 20px,100px 100px,100px 100px,cover;
  background-position: center;
}
/* QR's actual mark appears only if preparing the drawing takes a moment. */
html[data-arrival-pending]::before {
  content: ''; position: fixed; z-index: 21; left: 50%; top: 50%;
  width: clamp(40px,4.2vw,62px); aspect-ratio: 1426 / 863;
  transform: translate(-50%,-50%); pointer-events: none;
  background: #e5eff9;
  mask: url('../assets/contact/quality-mark.svg') center / contain no-repeat;
  animation: arrival-preparation .36s .16s ease-out both;
}
@keyframes arrival-preparation { from { opacity:0; } to { opacity:.87; } }
.arrival::before, .arrival::after { content:''; position:absolute; inset:0; }
.arrival::before {
  z-index:-2; background:var(--draft-paper) var(--blueprint-navy);
  transition:opacity 180ms ease-out;
}
.arrival[data-live]::before { opacity:0; }
/* Remove the photographic layer before the drafting paper goes transparent.
   Otherwise the finished palms and sign flash through the unbuilt facade. */
body.ready:has(.arrival:not([hidden])) #viewer .still { transition:none; }
.arrival::after {
  z-index:-1; background-image:var(--draft-grid);
  background-size:20px 20px,20px 20px,100px 100px,100px 100px;
  background-position:center; opacity:var(--draft-grid-opacity,1);
}
body:has(.arrival:not([hidden])) .hero .caption { opacity:var(--arrival-caption,0); }
.arrival { animation:arrival-out 320ms cubic-bezier(.42,0,.24,1) var(--exit-at,4480ms) both; }
.arrival-drawing {
  position: absolute;
  inset: 0 auto auto 0;
  display: block;
  width: 100%;
  height: 100%;
}
.arrival-drawing {
  fill: none;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.arrival-drawing path { vector-effect: non-scaling-stroke; }
.arrival-ground { fill:none; stroke-linecap:butt; stroke-linejoin:miter; }
.arrival-ground path {
  stroke-dasharray:1;
  animation:arrival-ground-trace 630ms cubic-bezier(.23,.57,.36,1) var(--ground-delay) both;
}
.arrival-ground-curb { stroke:#eff5f8; stroke-width:1; opacity:.82; }
.arrival-ground-bays { stroke:#e4eff7; stroke-width:.95; opacity:.61; }
.arrival-ground-access { stroke:#d7ebf7; stroke-width:.95; opacity:.67; }
.arrival-ground .arrival-ground-grid, .arrival-ground .arrival-ground-course {
  --pencil:.58;
  stroke:#f3f9fc; stroke-width:.85; stroke-dasharray:none;
  animation:arrival-course-ink 2200ms cubic-bezier(.31,.03,.4,.99) var(--ground-delay) both;
}
.arrival-ground .arrival-ground-grid { --pencil:.42; stroke-width:.75; }
.arrival[data-mode="assembly"] :is(.arrival-ground-grid,.arrival-ground-course) { animation-name:assembly-course-ink; }
@keyframes assembly-course-ink {
  0% { opacity:0; }
  27%,55% { opacity:var(--pencil); }
  100% { opacity:calc(var(--pencil) * .45); }
}
.arrival[data-mode="assembly"] .arrival-frame { filter:drop-shadow(0 0 1.25px #d0eeffa6); }
.arrival-ground .arrival-ground-trace, .arrival-ground .arrival-ground-halo {
  --pencil:.89;
  stroke:#fff; stroke-width:1.05;
  animation:arrival-course-glint 1480ms cubic-bezier(.28,.16,.34,.98) var(--ground-delay) both;
}
.arrival-ground .arrival-ground-halo { --pencil:.14; stroke:#edfaff; stroke-width:3.2; }
@keyframes arrival-course-ink {
  0%,100% { opacity:0; }
  27%,55% { opacity:var(--pencil); }
}
@keyframes arrival-course-glint {
  0% { stroke-dashoffset:1; opacity:0; }
  29% { opacity:var(--pencil); }
  64% { stroke-dashoffset:0; }
  100% { stroke-dashoffset:0; opacity:0; }
}
@keyframes arrival-ground-trace {
  from { stroke-dashoffset:1; opacity:0; }
  to { stroke-dashoffset:0; }
}
.arrival-guide, .arrival-guide-tick {
  stroke: #eff7ff;
  stroke-width: .85;
  opacity: .72;
  fill: none;
}
.arrival-guide {
  stroke-dasharray: 1;
  animation: arrival-trace 410ms cubic-bezier(.19,.58,.3,1) var(--start, 130ms) both;
}
.arrival-guide-tick { animation: arrival-rule-in 370ms ease-out var(--start, 140ms) both; }
.arrival-rays path {
  fill: none; stroke: #f1f7ff; stroke-width: .75;
  stroke-dasharray: 1;
  animation: arrival-witness 1000ms cubic-bezier(.22,.6,.3,1) var(--delay) both;
}
@keyframes arrival-witness {
  0% { stroke-dashoffset: 1; opacity: 0; }
  36% { opacity: .58; }
  68% { stroke-dashoffset: 0; opacity: .48; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
.arrival-outline {
  stroke: #f6fbff;
  stroke-width: 1.35;
  stroke-dasharray: 1;
  animation: arrival-trace 730ms cubic-bezier(.22,.60,.26,1) 20ms both;
}
.arrival-ink {
  stroke: #e3edf6;
  stroke-width: 1.1;
  animation: arrival-glaze 560ms cubic-bezier(.25,.65,.28,1) 120ms both;
}
.arrival-frame { stroke: #eef8ff; stroke-width: 1.35; animation-delay: 225ms; }
.arrival-mullions { stroke: #dcecf7; stroke-width: .95; animation-delay: 315ms; }
.arrival-panel, .arrival-garage { stroke: #d2e0ec; stroke-width: .72; animation-delay: 360ms; }
.arrival-glass-tone {
  fill: url(#arrival-glass-wash) #8aabb9; fill-opacity: .045; stroke: none;
  animation: arrival-tone-in 650ms ease-out 525ms both;
}
.arrival-sign { visibility:hidden; }
/* Only these short lengths of aluminum catch the passing light. Keep the
   underlying navy line visible on both sides of each moving highlight. */
.arrival-glint {
  fill: none;
  stroke: #f2fbff;
  stroke-width: 1.85;
  stroke-dasharray: .18 1.04;
  filter: drop-shadow(0 0 2px #c1eeff);
  animation: arrival-edge-light 480ms cubic-bezier(.27,.36,.36,.9) var(--start, 360ms) both;
}
.arrival-spark {
  fill: #f6fcff;
  stroke: none;
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(0 0 2px #dbf6ff);
  animation: arrival-settle 330ms ease-out var(--start, 540ms) both;
}
@keyframes arrival-trace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes arrival-glaze {
  from { clip-path: inset(-3% 100% -3% -3%); opacity: 0; }
  to { clip-path: inset(-3% -3% -3% -3%); opacity: 1; }
}
@keyframes arrival-edge-light {
  0% { stroke-dashoffset: .18; opacity: 0; }
  18% { opacity: .95; }
  76% { opacity: .95; }
  100% { stroke-dashoffset: -1; opacity: 0; }
}
@keyframes arrival-settle {
  0% { opacity: 0; transform: translate(-3px, 1.5px) scale(.55); }
  42% { opacity: .94; transform: translate(0) scale(1); }
  100% { opacity: 0; transform: scale(.75); }
}
@keyframes arrival-rule-in { from { opacity: 0; } }
@keyframes arrival-tone-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes arrival-out { from { opacity: 1; } to { opacity: 0; visibility: hidden; } }
.arrival[hidden], body:has(:target:not(#shop, #hero)) .arrival:not([data-requested]) { display: none; }
.arrival:not([data-playing]), .arrival:not([data-playing]) * { animation-play-state: paused; }
/* Hold the material clock while loading. The floor and witness lines can
   finish drawing into that hold, even on a cold or slow graphics device. */
.arrival[data-waiting] { animation-play-state: paused; }
.intro-review {
  position: absolute; z-index: 3;
  top: max(16px,env(safe-area-inset-top)); right: max(16px,env(safe-area-inset-right));
  display:flex; align-items:stretch; overflow:hidden; border:1px solid #ffffff70;
  border-radius:99px; color:white; background:#0c2039e6; font-size:.8125rem;
}
.intro-review[hidden] { display:none; }
.intro-review select,.intro-review button {
  padding:.6em .85em; min-height:38px; border:0; color:inherit; background:transparent; font:inherit; cursor:pointer;
}
.intro-review select { color-scheme:dark; }
.intro-review button { border-left:1px solid #ffffff3a; }
.intro-review :focus-visible { outline:1px solid #c8eaff; outline-offset:-4px; border-radius:99px; }
@media(pointer:coarse) { .intro-review select,.intro-review button { min-height:44px; } }
@media(max-width:700px) and (orientation:portrait){
  .hero .caption { padding:80px var(--gutter) calc(clamp(32px,5svh,50px) + env(safe-area-inset-bottom,0px)); background:linear-gradient(0deg,#07182ae6,transparent); }
  .hero .caption-text { padding:0; }
}
@media (pointer:coarse) and (orientation:landscape) {
  .hero .caption {
    padding-inline: max(var(--gutter), calc(env(safe-area-inset-left,0px) + 12px)) max(var(--gutter), calc(env(safe-area-inset-right,0px) + 12px));
    padding-bottom: calc(19px + env(safe-area-inset-bottom,0px));
  }
}
@media(prefers-reduced-motion:reduce){
  .arrival:not([data-requested]) { display:none; }
  .drive-link .arrow-glint { animation:none!important; }
}
/* The wide plate uses the reference camera. Portrait plates already include
   their lens shift; crop their extra sky and foreground around the center. */
#poster { width:100%; height:100%; left:0; top:0; transform:none; object-fit:cover; object-position:calc(50% + var(--poster-shift-x, 0px)) center; }
@media(max-aspect-ratio:9/5){
  #poster { width:100%; height:auto; min-height:100%; left:50%; top:50%; transform:translate(-50%,-50%); object-position:center; }
}
#poster[data-backup] { inset:0; width:100%; height:100%; transform:none; object-fit:cover; object-position:center; }
