/* gethpm.com brand page. Gala overlay on HPM base tokens (design-system/guidelines/gala-overlay.md). */
:root {
  --navy: #0a233f;
  --navy-lift: #0e2c50;
  --navy-deep: #071a30;
  --teal: #00a2ae;
  --teal-light: #6fd6e3;
  --purple: #73308a;
  --gold: #ffcd00;
  --white: #f7fbff;
  --muted: #b7c7d8;
  --line: #6fd6e333;
  --rule: linear-gradient(90deg, #00a2ae, #8fc0e6 52%, #73308a);
  --serif-grad: linear-gradient(90deg, #5fd3de, #8fc0e6 50%, #c58fd6);
  --sans: "Montserrat", system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --accent: var(--teal-light);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background-color: var(--navy);
  background-image:
    linear-gradient(#6fd6e30a 1px, transparent 1px),
    linear-gradient(90deg, #6fd6e30a 1px, transparent 1px);
  background-size: 34px 34px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.65;
  overflow-x: hidden;
}

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 32px; }

a { color: inherit; }
:focus-visible { outline: 2px solid var(--teal-light); outline-offset: 4px; border-radius: 4px; }

/* Line-break helpers: .lb is desktop-only. */
br.lb { display: none; }
@media (min-width: 1024px) { br.lb { display: inline; } }

/* Sticky story bar (shown after the cover) */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  background: #071a30e6; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-100%); transition: transform .35s ease;
}
.bar.show { transform: none; }
.bar-inner { max-width: 1180px; margin: 0 auto; padding: 0 32px; height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.bar-logo img { height: 26px; width: auto; display: block; }
.bar-nav { display: flex; gap: 6px; }
.bar-nav a {
  font-family: var(--sans); font-weight: 700; font-size: 13px; color: var(--muted);
  text-decoration: none; padding: 10px 12px; border-radius: 999px; white-space: nowrap;
}
.bar-nav a:hover { color: var(--white); }
.bar-nav a.on { color: var(--white); background: #00a2ae26; }
.bar-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--rule); }
@media (prefers-reduced-motion: reduce) { .bar { transition: none; } }

/* Shared type */
.eyebrow {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 22px;
  display: flex; align-items: center; gap: 14px;
}
.eyebrow .num {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--accent);
  letter-spacing: 0; font-size: 12px;
}
.rule { display: block; width: 120px; height: 3px; background: var(--rule); border-radius: 2px; margin: 26px 0; }

/* Cover */
.cover {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 56px 0 32px;
  background:
    radial-gradient(circle at 88% 14%, #73308a66, transparent 46%),
    radial-gradient(circle at 6% 88%, #00a2ae55, transparent 46%);
}
.cover-inner { flex: 1; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 1; }
.cover-logo { height: 32px; width: auto; display: block; margin-bottom: 40px; align-self: flex-start; }
.cover-media { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.cover-media img { position: absolute; right: 0; top: 0; height: 100%; width: 62%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.cover-media.loaded img { opacity: .9; }
.cover-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--navy) 34%, #0a233fd9 50%, #0a233f40 78%, #0a233f00), linear-gradient(0deg, var(--navy) 0%, transparent 30%);
}
.cover .eyebrow { display: block; }
.cover-us { font-family: var(--sans); font-weight: 600; font-size: 17px; color: var(--white); margin: 0 0 40px; }
.choose-label {
  font-family: var(--sans); font-weight: 800; font-size: 13px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--teal-light); margin: 0 0 16px;
}
.choose { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 40px; max-width: 1060px; }
.choose a {
  display: flex; flex-direction: column; gap: 8px; text-decoration: none;
  padding: 18px 18px 16px; min-height: 120px;
  background: #0e2c50cc; border: 1px solid #6fd6e347; border-radius: 6px;
  transition: border-color .2s, transform .2s, background .2s;
}
.choose a:hover, .choose a:focus-visible { border-color: var(--teal-light); background: #0e2c50; transform: translateY(-2px); }
.c-num { font-family: var(--sans); font-weight: 800; font-size: 11px; color: var(--teal-light); letter-spacing: .1em; }
.c-quote { font-style: italic; font-weight: 600; font-size: 18px; line-height: 1.3; color: var(--white); text-wrap: balance; }
.c-who { margin-top: auto; font-family: var(--sans); font-weight: 700; font-size: 13px; color: var(--muted); }
.cover-title {
  font-family: var(--sans);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.02em;
  line-height: 1.02;
  color: var(--white);
  font-size: clamp(30px, 4.5vw, 66px);
  margin: 0;
}
.ln { display: block; text-wrap: balance; }
br.m-br { display: none; }
@media (max-width: 1023px) {
  br.m-br { display: inline; }
  .eyebrow .dot { display: none; }
  .scene .ln { display: inline; }
}
.cover-sub {
  font-style: italic; font-weight: 600;
  font-size: clamp(21px, 2.4vw, 30px);
  line-height: 1.4;
  margin: 0 0 30px;
  background: var(--serif-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.index { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 56px; }
.index a {
  font-family: var(--sans); font-weight: 700; font-size: 15px;
  text-decoration: none; color: var(--white);
  padding: 12px 18px 12px 12px; min-height: 48px;
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid #6fd6e347; border-radius: 999px;
  background: #0e2c5099;
  transition: border-color .2s, background .2s;
}
.index a span {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: #00a2ae26; color: var(--teal-light); font-size: 11px; font-weight: 800;
}
.index a:hover { border-color: var(--teal-light); background: #0e2c50; }

.disclaimer {
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  color: #9fb3c8; margin: 0;
}

/* Bridges: the hooks between rooms */
.bridge, .bridge-start {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-decoration: none; text-align: center;
}
.bridge { padding: 96px 32px 24px; }
.bridge-start { align-items: flex-start; text-align: left; margin-bottom: 36px; }
.bridge-text {
  font-style: italic; font-weight: 600;
  font-size: clamp(22px, 2.6vw, 32px); line-height: 1.35;
  color: var(--white);
}
.bridge .bridge-text {
  background: var(--serif-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding: .1em 0;
}
.chev {
  width: 16px; height: 16px;
  border-right: 2px solid var(--teal-light); border-bottom: 2px solid var(--teal-light);
  transform: rotate(45deg);
  animation: nudge 2.4s ease-in-out infinite;
}
@keyframes nudge { 0%, 100% { translate: 0 0; } 50% { translate: 0 6px; } }
@media (prefers-reduced-motion: reduce) { .chev { animation: none; } }

/* Rooms */
.room { position: relative; padding: 120px 0 40px; border-top: 1px solid var(--line); }
.room-aca { --accent: var(--teal-light); background: radial-gradient(circle at 0% 30%, #00a2ae1f, transparent 40%); }
.room-med { --accent: #ffdc66; background: radial-gradient(circle at 100% 30%, #ffcd0012, transparent 42%); }
.room-agent { --accent: var(--teal-light); background: radial-gradient(circle at 0% 30%, #00a2ae1a, transparent 40%); }
.room-agency { --accent: #d6a8e6; background: radial-gradient(circle at 100% 30%, #73308a2e, transparent 44%); }

.room-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 64px; align-items: start;
}
.room-grid.flip { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.room-grid.flip .plate { order: 2; }

.plate {
  position: sticky; top: 48px;
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: 6px; overflow: hidden;
  border: 1px solid #6fd6e347;
  background:
    radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    linear-gradient(160deg, var(--navy-lift), var(--navy-deep));
  box-shadow: 0 20px 55px #03132259;
  display: grid; place-items: center;
}
.plate img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.plate::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, #0a233fb3);
}
.plate-icon {
  width: 34%; height: auto; fill: none;
  stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  opacity: .7;
}
.plate.loaded .plate-icon { display: none; }
.plate:not(.loaded) img { visibility: hidden; }

.room-copy { max-width: 720px; }
.room-copy .body { max-width: 64ch; }
.scene {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 2.05vw, 28px);
  line-height: 1.38;
  color: var(--white);
  margin: 0 0 44px;
  letter-spacing: -.005em;
  text-wrap: pretty;
}
.selftalk {
  margin: 0 0 44px; padding: 26px 30px 26px 30px;
  background: var(--navy-lift);
  border: 1px solid #6fd6e347; border-left: 4px solid var(--accent);
  border-radius: 4px;
  box-shadow: 0 20px 55px #03132240;
}
.selftalk p { margin: 0 0 10px; text-wrap: pretty; }
.selftalk p:last-child { margin: 0; }
.selftalk .voice {
  font-style: italic; font-weight: 600;
  font-size: 1.32em; line-height: 1.35;
  color: var(--white);
  margin-top: 14px;
}
.body { margin: 0 0 28px; text-wrap: pretty; }
.payoff {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(23px, 2.1vw, 28px);
  line-height: 1.32;
  color: var(--white);
  margin: 48px 0 0;
  padding-top: 28px;
  position: relative;
}
.payoff::before {
  content: ""; position: absolute; top: 0; left: 0; width: 72px; height: 3px;
  background: var(--rule); border-radius: 2px;
}

/* The Medicare room reads larger and slower (senior legibility). */
.room-med .body, .room-med .selftalk { font-size: 20px; line-height: 1.75; }

/* Who we are */
.who {
  padding: 120px 0 120px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 88% 10%, #73308a40, transparent 44%),
    radial-gradient(circle at 8% 92%, #00a2ae36, transparent 44%);
}
.who-inner { max-width: 980px; }
.who-title {
  font-family: var(--sans); font-weight: 900; text-transform: uppercase;
  letter-spacing: -.02em; line-height: 1.02;
  font-size: clamp(28px, 3.7vw, 50px);
  color: var(--white); margin: 0;
}
.who-story { max-width: 68ch; }
.principle {
  margin: 44px 0 56px;
  padding: 34px 36px;
  background: var(--navy-lift);
  border: 1px solid #6fd6e347; border-left: 4px solid var(--gold);
  border-radius: 4px;
  box-shadow: 0 20px 55px #03132259;
}
.principle figcaption {
  font-family: var(--sans); font-weight: 800; font-size: 13px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 18px;
}
.principle blockquote { margin: 0; }
.principle p {
  margin: 0; font-style: italic; font-weight: 600;
  font-size: clamp(22px, 2.3vw, 29px); line-height: 1.45;
  background: var(--serif-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.proof-lead {
  font-family: var(--sans); font-weight: 800; font-size: 13px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--teal-light); margin: 0 0 18px;
}
.proof {
  list-style: none; margin: 0 0 32px; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px;
}
.proof li {
  background: var(--navy-lift); border: 1px solid #6fd6e347; border-radius: 4px;
  padding: 22px 20px; display: flex; flex-direction: column; gap: 4px;
}
.proof strong {
  font-family: var(--sans); font-weight: 900; color: var(--white);
  font-size: clamp(22px, 2vw, 27px); line-height: 1.1; letter-spacing: -.01em; white-space: nowrap;
}
.proof span { font-size: 16px; color: var(--muted); }
.proof-turn { max-width: 68ch; }
.close {
  font-family: var(--sans); font-weight: 800; text-transform: uppercase;
  letter-spacing: -.01em; line-height: 1.2;
  font-size: clamp(20px, 2vw, 25px);
  color: var(--white);
  margin: 64px 0 0; padding-top: 30px; position: relative;
}
.close::before {
  content: ""; position: absolute; top: 0; left: 0; width: 120px; height: 3px;
  background: var(--rule); border-radius: 2px;
}

.who-lead { font-size: 21px; color: var(--white); max-width: 60ch; }

/* Finale: the bookend */
.finale { position: relative; min-height: 78vh; display: flex; align-items: center; padding: 120px 0; overflow: hidden; border-top: 1px solid var(--line);
  background: radial-gradient(circle at 80% 30%, #73308a40, transparent 50%), radial-gradient(circle at 10% 90%, #00a2ae33, transparent 50%); }
.finale-media { position: absolute; inset: 0; }
.finale-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.finale-media.loaded img { opacity: .75; }
.finale-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy) 22%, #0a233fb3 55%, #0a233f33); }
.finale-inner { position: relative; z-index: 1; }
.finale-title {
  font-family: var(--sans); font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; line-height: 1.04;
  font-size: clamp(25px, 4.4vw, 62px); color: var(--white); margin: 0;
}
.finale-sub {
  font-style: italic; font-weight: 600; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.35; margin: 0;
  background: var(--serif-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Footer */
.foot { border-top: 1px solid var(--line); background: var(--navy-deep); padding: 40px 0 48px; }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.foot img { height: 28px; width: auto; opacity: .9; }
.foot p { margin: 0; font-family: var(--sans); font-size: 14px; color: #9fb3c8; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 32px 64px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.foot-col h2 { margin: 0 0 8px; font-family: var(--sans); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #c7d4e2; }
.foot-col p { line-height: 1.7; }
.foot a { color: #c7d4e2; text-decoration: underline; text-underline-offset: 3px; }
.foot a:hover { color: #fff; }
.foot-note { flex-basis: 100%; font-size: 13px; }

/* Reveal on scroll (only when JS has run, and never under reduced motion) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* Tablet */
@media (max-width: 1024px) {
  .room-grid, .room-grid.flip { gap: 44px; }
  .bar-nav a { padding: 10px 8px; font-size: 12px; }
  .proof { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .wrap { padding: 0 20px; }
  .top { padding: 22px 20px; }
  .top-logo { height: 28px; }
  .room { padding: 84px 0 24px; }
  .room-grid, .room-grid.flip { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .room-grid.flip .plate { order: 0; }
  .plate { position: relative; top: 0; aspect-ratio: 16 / 10; }
  .bridge { padding: 72px 20px 16px; }
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bar-nav { display: none; }
  .bar-inner { padding: 0 20px; height: 52px; }
  .choose { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cover-media img { width: 100%; }
  .cover-media img { height: 46%; object-position: 50% 62%; }
  .cover-media.loaded img { opacity: 1; }
  .cover-media::after { background: linear-gradient(0deg, var(--navy) 52%, #0a233fd9 66%, #0a233f40 100%); }
  .finale-media::after { background: #0a233fc7; }
  .who { padding: 84px 0; }
  .selftalk { padding: 22px 20px; }
  .principle { padding: 26px 22px; }
}
@media (max-width: 480px) {
  .choose { grid-template-columns: minmax(0, 1fr); }
  .choose a { min-height: 0; }
  body { font-size: 18px; }
  .room-med .body, .room-med .selftalk { font-size: 19px; }
  .index a { font-size: 14px; }
}
