.bd-contact {
  --bd-gutter: clamp(20px, 5vw, 124px);
  color: #f4f7fa;
  background: var(--blueprint-navy, #09182e);
}
.bd-runway {
  position: relative;
  isolation: isolate;
  padding: 0 var(--bd-gutter) clamp(36px, 5vw, 72px);
}
/* A short native sticky interval after the reveal lets a wheel scroll settle. */
.bd-runway[data-dwell]::after { content: ""; display: block; height: clamp(125px, 22svh, 200px); }
.bd-runway[data-dwell] .bd-scene { position: sticky; top: var(--bd-rest-top); }
.bd-intro {
  position: relative;
  border-top: 1px solid #859db44a;
  padding: clamp(27px, 3.4vw, 60px) 0 clamp(22px, 2.8vw, 46px);
  scroll-margin-top: 43svh;
}
.bd-intro::before {
  content: ""; position: absolute; top: -1px; left: 0;
  width: clamp(44px, 5vw, 80px); height: 1px; background: #d9e8f5;
}
.bd-intro .ending-title {
  color: #f5f7fa;
  font-size: clamp(2.45rem, min(5.25vw, 8.4svh), 5.4rem);
  animation: none;
}
.bd-stage {
  position: relative;
  width: 100%;
  margin-inline: auto;
  height: clamp(340px, min(46vw, 60svh), 512px);
  overflow: clip;
  --frame-inset: 0px; --frame-h: 100%; --notch: 12px;
  --frame-right: calc(100% - var(--frame-inset));
  clip-path: polygon(var(--frame-inset) 0, calc(var(--frame-right) - var(--notch)) 0,
    var(--frame-right) var(--notch), var(--frame-right) var(--frame-h),
    calc(var(--frame-inset) + var(--notch)) var(--frame-h), var(--frame-inset) calc(var(--frame-h) - var(--notch)));
}
.bd-card {
  --bd-card-open: 1;
  --card-ink: var(--blueprint-navy, #09182e);
  --bd-gutter: clamp(20px, 3.4vw, 52px);
  --photo-height: clamp(420px, min(48vw, 64svh), 548px);
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100%;
  overflow: clip;
  container-type: size;
  color-scheme: light;
  color: var(--card-ink);
  background: #e9eff8;
}
.bd-card :is(a,button) { cursor: pointer; }
.bd-photo-box {
  position: absolute;
  inset: auto 0 0;
  height: var(--photo-height);
  overflow: clip;
  pointer-events: none;
  transform-origin: 50% 0;
}
.bd-photo-box > .axel-portrait {
  top: 12%; width: 100%; height: 90%;
}
.bd-stage[data-opening] .bd-photo-box {
  transform: translate(var(--portrait-x), var(--portrait-y)) scale(var(--portrait-scale));
}
.bd-details { position: absolute; z-index: 1; }
.bd-stage[data-opening] .bd-details { opacity: var(--card-copy); }
.bd-stage[data-opening] .bd-details:not(:focus-within) { pointer-events: none; }
.bd-identity {
  top: max(env(safe-area-inset-top), clamp(20px, 4.4cqh, 44px));
  left: max(env(safe-area-inset-left), var(--bd-gutter));
  font: 400 clamp(10px, .85vw, 12px)/1.45 "IBM Plex Mono", monospace;
  letter-spacing: .095em;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
  color: var(--qr-royal, #012a8a);
  text-shadow: 0 0 3px rgb(250 253 255 / .65);
}
.bd-identity :is(h3,p) {
  margin: 0;
  font: inherit;
  letter-spacing: inherit;
}
.bd-identity h3 { margin-bottom: .26em; }
.bd-card :is(a,button):focus-visible { outline: 2px solid #132e52; outline-offset: 3px; }
.radio-stop[data-contact-controls] { right: auto; left: max(16px, env(safe-area-inset-left)); }
.ending-address > div + div { margin-top: 1.2em; }
.ending-address > div > strong { margin-bottom: .25em; }
.ending-address > div .ending-street { margin-top: .2em; }

@media (max-width: 900px), (max-width: 1100px) and (max-aspect-ratio: 1/1) {
  .bd-contact { --bd-gutter: clamp(20px, 5.5vw, 36px); }
  .bd-intro { padding-top: 23px; }
  .bd-intro .ending-title { font-size: clamp(2.2rem, 7.8vw, 3.5rem); }
  .bd-stage {
    --photo-height: clamp(234px, min(82vw, 43svh), 382px);
    height: calc(var(--photo-height) + 44px);
  }
  .bd-card { --photo-height: inherit; }
  .bd-photo-box > .axel-portrait { top: 6%; height: 97%; }
}
@media (max-width: 600px) {
  .bd-photo-box {
    mask-image: radial-gradient(ellipse 139px 150px at 100% 95%, transparent 65%, black 110%);
  }
  .bd-photo-box > .axel-portrait { left: -11%; }
}
@media (max-width: 380px) { .bd-photo-box > .axel-portrait { left: -15%; } }
@media print {
  .bd-stage,.bd-stage[data-opening] { width: 100%; height: 110mm; clip-path: none; }
  .bd-stage[data-opening] .bd-photo-box { transform: none; }
  .bd-stage[data-opening] .bd-details { opacity: 1; }
  .bd-card { background: white; --photo-height: 90mm; }
  .bd-photo-box { bottom: 0; mask: none; }
  .bd-runway[data-dwell]::after { display: none; }
  .bd-runway[data-dwell] .bd-scene { position: static; }
  .bd-intro .ending-title,.bd-identity { color: #142639; }
}
