/* The ribbon is atmosphere. Copy, navigation and contact actions stay in view. */
.hero.ribbon-hero {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  color: #fff;
  background: #0a2eaa;
}
.ribbon-hero .hero-stage {
  position: relative;
  display: grid;
  min-height: 570px;
  isolation: isolate;
  overflow: clip;
}
.ribbon-hero .hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #0a2eaa;
  pointer-events: none;
}
.ribbon-hero .hero-media picture { display: block; position: absolute; inset: 0; }
.ribbon-hero .hero-media img,
.ribbon-hero .ribbon-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 50%;
}
.ribbon-hero .hero-media img { opacity: 1; }
.ribbon-hero .ribbon-video { opacity: 0; pointer-events: none; }
.ribbon-hero .hero-stage::before {
  position: absolute;
  content: '';
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgb(7 29 125 / .97) 0%, rgb(7 29 125 / .91) 32%, rgb(7 29 125 / .68) 47%, rgb(7 29 125 / .13) 69%, transparent 82%);
}
.ribbon-hero .hero-inner {
  position: relative;
  z-index: 2;
  align-self: center;
  padding-block: 48px 58px;
}
.ribbon-hero .hero-copy {
  position: relative;
  width: min(590px, 54vw);
  max-width: 100%;
  padding: 0;
}
.ribbon-hero .eyebrow {
  color: #e1e8ff;
  margin-bottom: 18px;
  font-size: 10px;
  letter-spacing: .085em;
}
.ribbon-hero h1 {
  max-width: 10em;
  color: #fff;
  font-size: clamp(58px, 5.7vw, 78px);
  font-weight: 550;
  line-height: 1.055;
  letter-spacing: -.05em;
}
.ribbon-hero .hero-lead {
  max-width: 510px;
  margin-top: 23px;
  color: #e9edff;
  font-size: 18px;
  line-height: 1.65;
}
.ribbon-hero .hero-actions { margin-top: 25px; gap: 12px 22px; }
.ribbon-hero .hero-actions .button {
  min-height: 54px;
  padding: 15px 20px;
  border-color: #fff;
  background: #fff;
  color: #1736bf;
  font-size: 13px;
  gap: 25px;
}
.ribbon-hero .hero-actions .text-link {
  min-height: 44px;
  color: #fff;
  border-color: #ffffff70;
  font-size: 12px;
  gap: 12px;
}
.ribbon-hero .hero-note {
  color: #dce5ff;
  font-size: 11px;
  line-height: 1.6;
  margin-top: 14px;
}
.ribbon-hero .hero-signature {
  position: absolute;
  z-index: 2;
  right: max(52px, calc((100% - 1344px) / 2));
  bottom: 27px;
  color: #eef2ff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.ribbon-hero :focus-visible { outline-color: #fff; }
.ribbon-hero .hero-motion-toggle {
  position: absolute;
  bottom: 0;
  left: 0;
  min-width: 156px;
  min-height: 44px;
  margin: 0;
  padding: 10px 8px 10px 0;
  border: 0;
  border-radius: 3px;
  color: #e1e8ff;
  background: transparent;
  font-size: 11px;
  line-height: 1.5;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: #ffffff70;
}
.ribbon-hero .hero-motion-toggle:not([hidden]) { display: inline-flex; align-items: center; }

/* Reserve the complete short stage before media is requested or decoded. */
@media (min-width: 901px) and (min-height: 650px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .ribbon-motion-eligible .ribbon-hero {
    --hero-stage-height: max(570px, calc(100svh - var(--header-height)));
    height: calc(var(--hero-stage-height) + 60svh);
  }
  .ribbon-motion-eligible .ribbon-hero .hero-stage {
    position: sticky;
    top: var(--header-height);
    height: var(--hero-stage-height);
  }
  .ribbon-motion-eligible .ribbon-hero .hero-inner { padding-block: 24px; }
  .ribbon-motion-eligible .ribbon-hero .hero-copy { padding-bottom: 56px; }
  .ribbon-motion-eligible .ribbon-hero .hero-media img,
  .ribbon-motion-eligible .ribbon-hero .ribbon-video { transition: opacity 300ms ease; }
  .ribbon-motion-eligible .ribbon-hero.has-video .ribbon-video { opacity: 1; }
  .ribbon-motion-eligible .ribbon-hero.has-video .hero-media img { opacity: 0; }
}

.ribbon-rail { color: #687daf; }
.ribbon-rail.is-on-blue { color: #d1dcff; }

/* The closing sculpture sits in the page, above its linked blue footer. */
.closing, .site-footer { --ribbon-ground: #0b2b91; }
.closing { padding-block: clamp(64px, 7vw, 100px) 38px; }
.closing-grid { grid-template-columns: .92fr 1.08fr; align-items: center; gap: 42px; }
.closing h2 { max-width: 18ch; font-size: clamp(42px, 4.25vw, 64px); line-height: 1.12; }
.closing-action { margin-top: 26px; }
.closing-action > p { max-width: 450px; }
.closing-art {
  width: 100%;
  aspect-ratio: 1.38;
  align-self: end;
  margin: 0 0 12px;
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 12%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 12%, #000 90%, transparent);
}
.closing-ribbon { width: 240%; left: -93%; bottom: -2%; }
.closing-thread { width: 180px; height: 28px; margin-top: 18px; color: #d1dcff; }
.site-footer { padding-top: 46px; border-top-color: #ffffff2c; }
.footer-main { column-gap: 36px; }
.footer-column { gap: 0; }
.footer-column h2 { margin-bottom: 12px; }
.footer-column a, .footer-bottom a { min-height: 44px; }
.footer-bottom { margin-top: 30px; padding-top: 18px; }

@media (hover: hover) and (pointer: fine) {
  .ribbon-hero .hero-actions .button:hover { background: #eaf0ff; border-color: #eaf0ff; color: #112eaa; }
  .ribbon-hero .hero-actions .text-link:hover { color: #fff; border-color: #fff; }
  .ribbon-hero .hero-motion-toggle:hover { color: #fff; text-decoration-color: #fff; background: #ffffff0d; }
}

@media (min-width: 901px) and (max-width: 1120px) {
  .ribbon-hero .hero-copy { width: min(540px, 58vw); }
  .ribbon-hero .hero-lead { font-size: 16px; max-width: 480px; margin-top: 20px; }
  .ribbon-hero .hero-actions { margin-top: 22px; gap: 12px 20px; }
  .ribbon-hero .hero-actions .button { padding-inline: 17px; font-size: 12px; gap: 20px; }
  .ribbon-hero .hero-signature { right: 32px; }
  .closing-grid { gap: 28px; }
  .closing h2 { font-size: 43px; }
  .footer-main { column-gap: 27px; }
}

/* The still and copy keep their own space on tablets and phones. */
@media (max-width: 900px) {
  .hero.ribbon-hero, .ribbon-hero .hero-media { background: #052e9b; }
  .ribbon-hero .hero-stage {
    min-height: 0;
    grid-template-areas: 'copy' 'media' 'signature';
    grid-template-columns: minmax(0, 1fr);
  }
  .ribbon-hero .hero-stage::before { display: none; }
  .ribbon-hero .hero-inner { grid-area: copy; padding-block: 38px 30px; }
  .ribbon-hero .hero-copy { width: 100%; max-width: 660px; }
  .ribbon-hero h1 { font-size: clamp(44px, 7.4vw, 66px); line-height: 1.08; max-width: 11em; }
  .ribbon-hero .hero-lead { max-width: 620px; font-size: 17px; margin-top: 22px; }
  .ribbon-hero .hero-actions { margin-top: 25px; }
  .ribbon-hero .hero-media {
    position: relative;
    grid-area: media;
    inset: auto;
    width: 100%;
    aspect-ratio: 3 / 2;
  }
  .ribbon-hero .hero-media picture {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 8%, #000 90%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 8%, #000 90%, transparent 100%);
    mask-composite: intersect;
  }
  .ribbon-hero .hero-media img { object-position: 50% 55%; }
  .ribbon-hero .hero-signature {
    position: static;
    grid-area: signature;
    margin: 18px 32px 28px;
    font-size: 10px;
  }
  .closing-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .closing h2 { font-size: 40px; }
  .closing-art { aspect-ratio: 1.17; }
  .closing-ribbon { width: 275%; left: -115%; bottom: 0; }
}

@media (max-width: 760px) {
  .ribbon-hero .hero-inner { padding-block: 34px 28px; }
  .ribbon-hero .eyebrow { font-size: 9px; margin-bottom: 22px; }
  .ribbon-hero h1 { font-size: clamp(42px, 10.7vw, 64px); letter-spacing: -.047em; }
  .ribbon-hero .hero-lead { font-size: 17px; line-height: 1.65; margin-top: 22px; }
  .ribbon-hero .hero-actions { gap: 10px 22px; }
  .ribbon-hero .hero-actions .button { min-height: 52px; font-size: 12px; padding: 14px 17px; gap: 23px; }
  .ribbon-hero .hero-note { font-size: 10px; margin-top: 15px; }
  .ribbon-hero .hero-signature { margin: 16px 20px 27px; }
  .closing { padding-block: 57px 15px; }
  .closing-grid { display: block; }
  .closing h2 { max-width: 17ch; font-size: clamp(36px, 9.5vw, 52px); line-height: 1.16; }
  .closing-art { max-width: 550px; aspect-ratio: 1.6; margin: 18px auto 0; }
  .closing-ribbon { width: 240%; left: -93%; bottom: -2%; }
  .closing-thread { width: 156px; height: 26px; margin-top: 16px; }
  .site-footer { padding-block: 40px 21px; }
  .footer-main { gap: 30px 23px; }
  .footer-column h2 { margin-bottom: 9px; }
  .footer-bottom { margin-top: 26px; padding-top: 15px; }
}

@media (max-width: 360px) {
  .ribbon-hero h1 { font-size: 39px; }
  .ribbon-hero .hero-lead { font-size: 16px; }
  .ribbon-hero .eyebrow { font-size: 8px; }
  .ribbon-hero .hero-signature { margin-inline: 18px; }
  .footer-main { column-gap: 17px; }
}

@media (max-width: 900px) and (max-height: 500px) {
  .ribbon-hero .hero-media {
    width: min(100%, 110vh);
    width: min(100%, 110svh);
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ribbon-hero .hero-media img, .ribbon-hero .ribbon-video { transition: none; }
  .closing-art { transform: none !important; }
}

@media print {
  .hero.ribbon-hero { height: auto; color: #111638; background: #fff; }
  .ribbon-hero .hero-stage { position: static !important; display: block; height: auto !important; min-height: 0; overflow: visible; }
  .ribbon-hero .hero-stage::before, .ribbon-hero .hero-media, .ribbon-hero .hero-signature,
  .ribbon-hero .hero-motion-toggle:not([hidden]) { display: none; }
  .ribbon-hero .hero-inner { padding: 0; }
  .ribbon-hero .hero-copy { width: 100%; padding: 0; }
  .ribbon-hero h1, .ribbon-hero .eyebrow, .ribbon-hero .hero-lead, .ribbon-hero .hero-note { color: #111638; }
}
