.speedtest-masthead {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 286px;
  align-items: center;
  overflow: hidden;
  padding: 125px 0 52px;
  background: linear-gradient(130deg, #061a2b, #0b3656 60%, #087fce 145%);
  color: #fff;
}
.speedtest-masthead .hero-video,
.speedtest-masthead .hero-wash { position: absolute; inset: 0; width: 100%; height: 100%; }
.speedtest-masthead .hero-video { z-index: -3; object-fit: cover; }
.speedtest-masthead .hero-wash {
  z-index: -2;
  background: linear-gradient(90deg, rgba(3, 19, 34, .93), rgba(4, 31, 51, .73) 56%, rgba(4, 34, 52, .48));
}
.speedtest-heading { position: relative; z-index: 1; }
.speedtest-heading h1 {
  max-width: 850px;
  margin: 14px 0 10px;
  font-size: clamp(38px, 5.8vw, 66px);
  line-height: 1.04;
  letter-spacing: -.055em;
}
.speedtest-heading .hero-text { max-width: 720px; margin: 0; color: #c5dbe7; font-size: 15px; line-height: 1.65; }
.speedtest-content { position: relative; z-index: 2; padding: 0 0 76px; }
.speedtest-content > .page-wrap { margin-top: -20px; }
.speedtest-frame-card {
  max-width: 1080px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(109, 197, 242, .24);
  border-radius: 24px;
  background: #061a2b;
  box-shadow: 0 22px 60px rgba(4, 34, 52, .2);
}
.speedtest-embed { text-align: right; }
.speedtest-embed-min-height { min-height: 360px; background: #061a2b; }
.speedtest-frame-wrap { position: relative; width: 100%; height: 0; min-height: 360px; padding-bottom: 50%; background: #061a2b; }
.speedtest-frame-wrap iframe { position: absolute; top: 0; left: 0; display: block; width: 100%; height: 100%; min-height: 360px; overflow: hidden; border: 0; background: #061a2b; }
.speedtest-attribution {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  padding: 11px 17px;
  background: #f3f8f9;
  color: #597284;
  font-size: 11px;
  line-height: 1.5;
}
.speedtest-attribution a { color: #087fce; font-weight: 700; text-decoration: none; }
.speedtest-attribution a:hover { text-decoration: underline; text-underline-offset: 3px; }
.speedtest-note { max-width: 1080px; margin: 13px auto 0; color: var(--muted); font-size: 12px; line-height: 1.6; text-align: center; }

@media (max-width: 760px) {
  .speedtest-masthead { min-height: 256px; padding: 112px 0 46px; }
  .speedtest-heading h1 { font-size: clamp(36px, 7.5vw, 52px); }
  .speedtest-heading .hero-text { font-size: 14px; }
}
@media (max-width: 480px) {
  .speedtest-masthead { min-height: 242px; padding: 100px 0 42px; }
  .speedtest-heading h1 { margin-top: 12px; font-size: clamp(34px, 9vw, 43px); }
  .speedtest-heading .hero-text { font-size: 13px; }
  .speedtest-content { padding-bottom: 56px; }
  .speedtest-frame-card { border-radius: 18px; }
  .speedtest-attribution { justify-content: center; padding: 10px 12px; font-size: 10px; }
  .speedtest-note { font-size: 11px; }
}
