#ascert-intro {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 70px 16px 92px;
  overflow: hidden;
  isolation: isolate;
  border: 0;
  color: #172b3d;
  background: #dce5ed;
}

#ascert-intro:not([open]) { display: none; }
#ascert-intro[open] { display: grid; place-items: center; }
#ascert-intro::backdrop { background: transparent; }

.intro-site-photos {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: luminosity;
  opacity: .78;
}
.intro-site-photos::before,
.intro-site-photos::after {
  content: "";
  position: absolute;
  inset-block: 0;
  background-size: cover;
  background-repeat: no-repeat;
}
.intro-site-photos::before {
  left: 0;
  width: 63%;
  background-image: url("intro-construction-frame.webp");
  background-position: 19% 48%;
  mask-image: linear-gradient(94deg, #000 0%, #000e 30%, #0005 64%, transparent 94%);
}
.intro-site-photos::after {
  right: 0;
  width: 59%;
  background-image: url("intro-plan-review.webp");
  background-size: max(165%, 112vh) auto;
  background-position: 1% 55%;
  mask-image: linear-gradient(266deg, #000 0%, #000d 27%, #0004 63%, transparent 94%);
}

#ascert-intro::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, rgba(255,255,255,.98) 0%, rgba(255,255,255,.89) 25%, rgba(255,255,255,.65) 66%, rgba(255,255,255,.48) 100%);
}
#ascert-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, #20539d0a 1px, transparent 1px),
    linear-gradient(#20539d0a 1px, transparent 1px);
  background-position: center;
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 5%, transparent 75%);
}

.intro-brand {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: clamp(14px, 2.5vh, 24px);
  text-align: center;
}

.intro-drawing {
  --tick: #65819c69;
  --line-x: linear-gradient(var(--tick), var(--tick)) no-repeat;
  --line-y: linear-gradient(var(--tick), var(--tick)) no-repeat;
  width: min(78vw, 590px, 114vh);
  padding: clamp(15px, 2.2vw, 32px);
  background:
    var(--line-x) top left / 13px 1px, var(--line-y) top left / 1px 13px,
    var(--line-x) top right / 13px 1px, var(--line-y) top right / 1px 13px,
    var(--line-x) bottom left / 13px 1px, var(--line-y) bottom left / 1px 13px,
    var(--line-x) bottom right / 13px 1px, var(--line-y) bottom right / 1px 13px;
}

.intro-mark { position: relative; width: 100%; aspect-ratio: 1508 / 400; }
.intro-wordmark { width: 100%; height: auto; display: block; }
/* The A occupies these pixel bounds in the approved 1508 × 400 wordmark. */
.intro-a {
  position: absolute;
  left: calc(100% * 6 / 1508);
  top: 2.5%;
  width: calc(100% * 371 / 1508);
  height: 96.75%;
}
.intro-a img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.intro-outline { filter: brightness(0) invert(76%) sepia(12%) saturate(491%) hue-rotate(169deg); }
.intro-edge { filter: brightness(0) invert(64%) sepia(52%) saturate(645%) hue-rotate(169deg); }
#ascert-intro[open] .intro-colour { animation: ascert-intro-fill var(--intro-fill) linear var(--intro-lead-in) both; }
#ascert-intro[open] .intro-edge { animation: ascert-intro-scan var(--intro-fill) linear var(--intro-lead-in) both; }
@keyframes ascert-intro-fill {
  from { clip-path: inset(100% 0 0); }
  to { clip-path: inset(0 0 0); }
}
@keyframes ascert-intro-scan {
  from { clip-path: polygon(0 100%, 100% 100%, 100% 103%, 0 103%); }
  to { clip-path: polygon(0 -3%, 100% -3%, 100% 0%, 0 0%); }
}

.intro-tagline { display: block; width: min(38vw, 240px, 49vh); height: auto; }
.intro-notice {
  position: absolute;
  z-index: 2;
  inset-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  margin: 0;
  color: #21374b;
  text-align: center;
  font: 400 .91rem/1.45 Aileron, Arial, sans-serif;
}
.intro-notice span { display: block; }
.intro-skip {
  position: absolute;
  z-index: 3;
  top: max(19px, env(safe-area-inset-top));
  right: max(24px, env(safe-area-inset-right));
  min-height: 44px;
  padding: 8px 14px;
  background: rgba(255,255,255,.72);
  border: 1px solid #9cabb7;
  border-radius: 2px;
  color: #19344e;
  font: 600 .875rem/1.25 Aileron,Arial,sans-serif;
  cursor: pointer;
}
.intro-skip:hover { background: #fff; border-color: #20539d; }
.intro-skip:focus-visible { outline: 2px solid #20539d; outline-offset: 4px; }
#ascert-intro.intro-leaving { animation: ascert-intro-reveal var(--intro-fade) ease-out both; }
@keyframes ascert-intro-reveal { to { opacity: 0; } }
html:not(.ascert-intro-ready) [data-replay-intro] { display: none !important; }

@media (max-width: 620px) {
  .intro-drawing { width: min(88vw, 114vh); }
  .intro-tagline { width: min(47vw, 210px); }
  .intro-notice { font-size: .84rem; }
  .intro-site-photos::before {
    inset: 0 0 auto;
    width: 100%;
    height: 49%;
    background-position: 19% 40%;
    mask-image: linear-gradient(to bottom, #000 3%, #000c 36%, transparent 100%);
  }
  .intro-site-photos::after {
    inset: auto 0 0;
    width: 100%;
    height: 45%;
    background-size: max(155%, 54svh) auto;
    background-position: 8% 59%;
    mask-image: linear-gradient(to top, #000 0%, #000a 38%, transparent 100%);
  }
}

@media (max-height: 440px) {
  #ascert-intro { padding-block: 44px 54px; }
  .intro-drawing { width: min(65vw, 89vh); padding: 11px; }
  .intro-tagline { width: min(30vw, 38vh); }
  .intro-brand { gap: 8px; }
  .intro-notice { bottom: max(7px, env(safe-area-inset-bottom)); font-size: .79rem; }
  .intro-skip { top: 8px; right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  #ascert-intro[open] .intro-colour, #ascert-intro[open] .intro-edge,
  #ascert-intro.intro-leaving { animation: none; }
  .intro-edge { display: none !important; }
}
