/* Highbeam frame for the research articles in content/research/.
   Each article keeps its own layout and charts; this adds the header, hero,
   "What helps" box and footer. Every rule is prefixed hb- to stay out of the
   articles' own styles. */

.hb-skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: #0c2e5c;
  color: #fff;
  font-family: "Figtree", system-ui, sans-serif;
  font-weight: 600;
  text-decoration: none;
}

.hb-skip:focus {
  top: 16px;
}

/* ---------- Header ---------- */

.hb-header {
  position: absolute;
  z-index: 50;
  top: 16px;
  left: 16px;
  right: 16px;
  height: 64px;
  padding: 0 10px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.hb-brand {
  justify-self: start;
  margin-left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 23px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hb-brand svg {
  margin-top: 3px;
}

.hb-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hb-nav a {
  display: flex;
  align-items: center;
  height: 40px;
  font-size: 15px;
  font-weight: 500;
  color: #e6ecf8;
  text-decoration: none;
}

.hb-nav a:hover {
  color: #fff;
}

.hb-nav a[aria-current="page"] {
  color: #fff;
  font-weight: 600;
  box-shadow: inset 0 -2px 0 #fff;
}

.hb-sep {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.26);
}

.hb-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  background: #e4edf8;
  color: #0c2e5c;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.hb-cta:hover {
  background: #fff;
}

/* ---------- Hero ---------- */

.hb-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #0a1330 url("/research-assets/hero-scene.svg") center bottom / cover no-repeat;
  color: #fff;
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.hb-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("/grain.png") 0 0 / 200px 200px;
  opacity: 0.3;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hb-hero__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 152px 40px clamp(104px, 9vw, 136px);
  box-sizing: border-box;
}

.hb-hero__eyebrow {
  margin: 0;
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c9d4ec;
}

.hb-hero__title {
  margin: 18px 0 0;
  max-width: 900px;
  font-family: "Figtree", system-ui, sans-serif;
  font-size: clamp(36px, 2vw + 26px, 58px);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: balance;
}

.hb-hero__dek {
  margin: 18px 0 0;
  max-width: 700px;
  font-size: clamp(17px, 0.3vw + 15px, 20px);
  line-height: 1.55;
  color: #cfd9ee;
  text-wrap: pretty;
}

.hb-hero__meta {
  margin: 22px 0 0;
  font-size: 14px;
  line-height: 20px;
  color: #9fb3d9;
}

/* ---------- Compact hero with key takeaways (draft, on /research/the-case-for-limits) ---------- */

/* A tighter horizon glow leaves room for text low in a short hero. */
.hb-hero--split {
  background-image: url("/research-assets/hero-scene-compact.svg");
}

/* Equal space above (from the bottom of the nav bar, which ends 80px down) and below,
   so the title and takeaways sit centered in the visible band. */
.hb-hero--split .hb-hero__inner {
  --hb-nav-bottom: 80px;
  --hb-gap: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  column-gap: clamp(32px, 4vw, 64px);
  align-items: center;
  padding: calc(var(--hb-nav-bottom) + var(--hb-gap)) 40px var(--hb-gap);
}

.hb-hero--split .hb-hero__title {
  margin-top: 14px;
  font-size: clamp(34px, 1.5vw + 26px, 50px);
}

.hb-hero--split .hb-hero__dek {
  margin-top: 14px;
  font-size: clamp(16px, 0.2vw + 15px, 18px);
}

.hb-hero--split .hb-hero__meta {
  margin-top: 16px;
  color: #c9d4ec;
  text-shadow: 0 1px 10px rgba(5, 10, 28, 0.5);
}

.hb-takeaways {
  padding: 18px 22px 20px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 19, 48, 0.46);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  backdrop-filter: blur(18px) saturate(135%);
  box-shadow: 0 16px 40px rgba(4, 8, 22, 0.3);
}

.hb-takeaways__label {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c9d4ec;
}

.hb-takeaways ul {
  margin: 10px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.hb-takeaways li {
  font-size: 15px;
  line-height: 1.5;
  color: #e6ecf8;
}

.hb-takeaways li::marker {
  color: #9fb3d9;
}

@media (max-width: 900px) {
  .hb-hero--split .hb-hero__inner {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 28px;
  }
}

/* ---------- In the article ---------- */

.hb-helps {
  margin: 36px 0;
  padding: 24px 28px;
  border-radius: 20px;
  background: #e9f0f9;
  font-family: "Figtree", system-ui, sans-serif;
}

.hb-helps__label {
  margin: 0;
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1f5fbf;
}

.hb-helps ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.hb-helps li {
  margin: 8px 0;
  font-size: 17px;
  line-height: 1.55;
  color: #0c2e5c;
}

.hb-helps li::marker {
  color: #1f5fbf;
}

.hb-helps__more {
  display: inline-block;
  margin-top: 10px;
  font-size: 15px;
  font-weight: 500;
  color: #1f5fbf;
}

.hb-next {
  margin: 28px 0;
  font-family: "Figtree", system-ui, sans-serif;
  font-size: 16px;
  color: #405a7a;
}

.hb-next a {
  color: #1f5fbf;
  font-weight: 500;
}

/* ---------- After the article ---------- */

.hb-after {
  max-width: 1280px;
  margin: 72px auto 0;
  padding: 0 40px;
  box-sizing: border-box;
  font-family: "Figtree", system-ui, sans-serif;
}

.hb-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 16px;
  font-weight: 500;
  color: #1f5fbf;
  text-decoration: none;
}

.hb-signup {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 32px clamp(12px, 2.8vw, 40px) 0;
  border-radius: 24px;
  background: #0a1330 url("/research-assets/hero-scene.svg") center bottom / cover no-repeat;
  color: #fff;
  text-align: center;
  font-family: "Figtree", system-ui, sans-serif;
}

.hb-signup__inner {
  padding: clamp(56px, 6vw, 80px) 24px;
}

.hb-signup h2 {
  margin: 0;
  font-family: "Figtree", system-ui, sans-serif;
  font-size: clamp(30px, 1.8vw + 22px, 46px);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #fff;
}

.hb-signup p {
  margin: 14px auto 0;
  max-width: 560px;
  font-size: 17px;
  line-height: 1.6;
  color: #cfd9ee;
}

.hb-btn {
  display: inline-flex;
  align-items: center;
  height: 48px;
  margin-top: 28px;
  padding: 0 24px;
  border-radius: 10px;
  background: #e4edf8;
  color: #0c2e5c;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}

.hb-btn:hover {
  background: #fff;
}

.hb-footer {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 40px 48px;
  box-sizing: border-box;
  font-family: "Figtree", system-ui, sans-serif;
  color: #405a7a;
}

.hb-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.hb-footer__brand {
  max-width: 360px;
}

.hb-brand--dark {
  margin-left: 0;
  color: #0c2e5c;
  font-size: 24px;
}

.hb-footer__brand p {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.6;
}

.hb-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 80px;
}

.hb-footer__nav div {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hb-footer__nav p {
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5b6f8e;
}

.hb-footer__nav a {
  font-size: 15px;
  line-height: 22px;
  color: #0c2e5c;
  text-decoration: none;
}

.hb-footer__nav a:hover {
  color: #1f5fbf;
}

.hb-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid #d5e0ec;
  font-size: 14px;
  line-height: 20px;
  color: #5b6f8e;
}

/* ---------- Small screens ---------- */

@media (max-width: 720px) {
  .hb-header {
    top: 12px;
    left: 12px;
    right: 12px;
    grid-template-columns: auto 1fr;
  }

  .hb-brand {
    margin-left: 6px;
    font-size: 21px;
  }

  .hb-nav {
    justify-self: end;
    gap: 14px;
    margin-right: 6px;
  }

  .hb-nav a {
    font-size: 14px;
  }

  .hb-sep,
  .hb-cta {
    display: none;
  }

  /* A smaller scene keeps the horizon glow below the text on narrow screens. */
  .hb-hero {
    background-size: 900px auto;
  }

  .hb-hero__inner {
    padding: 120px 20px 104px;
  }

  .hb-hero--split {
    background-size: cover;
  }

  .hb-hero--split .hb-hero__inner {
    --hb-nav-bottom: 76px;
    --hb-gap: 36px;
    padding: calc(var(--hb-nav-bottom) + var(--hb-gap)) 20px var(--hb-gap);
  }

  .hb-helps {
    padding: 20px;
  }

  .hb-after,
  .hb-footer {
    padding-left: 20px;
    padding-right: 20px;
  }
}
