/* Homepage. */

/* Hero: a tall section whose sticky stage steps through four headlines as the page scrolls. */
.hp-hero { position: relative; height: 350vh; background: var(--charcoal-deep); color: var(--white); }
.hp-stage { position: sticky; top: 0; height: 100vh; min-height: 680px; overflow: hidden; cursor: crosshair; }
.hp-photo {
  position: absolute; left: -40px; top: -40px; width: calc(100% + 80px); height: calc(100% + 80px); max-width: none;
  object-fit: cover; object-position: center 70%;
  transition: transform 1.2s var(--ease);
}
.hp-tint { position: absolute; inset: 0; background: rgba(24, 36, 66, .58); }
.hp-canvas { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; max-width: none; }

.hp-head { position: relative; z-index: 2; padding-top: 40px; display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; cursor: auto; }
.hp-head__logo { height: clamp(120px, 23vh, 240px); width: auto; }
.hp-head__nav { display: flex; align-items: center; gap: 30px; font-size: 16px; font-weight: 500; padding-top: 12px; }
.hp-head__nav a:not(.btn) { color: var(--white); text-decoration: none; position: relative; padding: 6px 0; }
.hp-head__nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--bright-blue); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.hp-head__nav a:not(.btn):hover::after { transform: scaleX(1); }
.hp-head__nav .btn { font-size: 16px; padding: 12px 20px; }
.hp-head__nav .btn:hover { box-shadow: none; transform: translateY(-1px); }

.hp-copy { position: relative; z-index: 2; padding-top: 48px; display: flex; flex-direction: column; gap: 20px; pointer-events: none; }
.hp-copy > * { max-width: 820px; }
.hp-copy a { pointer-events: auto; }
.hp-lines { position: relative; height: 176px; }
.hp-line { position: absolute; left: 0; top: 0; right: 0; font-size: clamp(40px, 5.3vw, 76px); line-height: 1.02; font-weight: 700; letter-spacing: -.02em; }
.hp-line[hidden] { display: none; }
.hp-sub { margin: 0; font-size: 20px; line-height: 1.55; color: var(--rule); max-width: 620px; min-height: 62px; }
.hp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

.hp-dots { position: absolute; z-index: 2; right: var(--gutter); top: 360px; display: flex; flex-direction: column; gap: 14px; align-items: flex-end; }
.hp-dots span { display: block; height: 2px; width: 20px; border-radius: 999px; background: var(--soft-blue); transition: width .4s ease, background .4s ease; }
.hp-dots span.is-on { width: 48px; background: var(--bright-blue); }
.hp-hint { position: absolute; z-index: 2; right: var(--gutter); bottom: 28px; margin: 0; font-size: 13px; color: var(--rule); }

@media (max-height: 820px) and (min-width: 961px) {
  .hp-copy { padding-top: 24px; }
  .hp-lines { height: 150px; }
}
@media (max-width: 960px) {
  .hp-head, .hp-dots, .hp-hint { display: none; }
  .hp-copy { padding-top: calc(var(--header-h) + 72px); }
}
@media (max-width: 760px) {
  .hp-hero { height: auto; }
  .hp-stage { position: relative; height: 760px; height: min(760px, 100svh); min-height: 620px; cursor: auto; }
  .hp-copy { padding-top: 112px; }
  .hp-lines { height: 150px; }
  .hp-line { font-size: 38px; line-height: 1.08; }
  .hp-sub { font-size: 18px; }
}

/* Intro strip. */
.hp-intro { border-bottom: 1px solid var(--rule-light); }
.hp-intro__inner { min-height: 220px; display: flex; align-items: center; justify-content: space-between; gap: 48px; padding-block: 40px; }
.hp-intro__text { margin: 0; font-size: 26px; line-height: 1.35; font-weight: 600; color: var(--blue); max-width: 820px; }
.hp-intro__stat { display: flex; align-items: baseline; gap: 14px; flex-shrink: 0; }
.hp-intro__num { font-size: 76px; line-height: 1; font-weight: 700; color: var(--blue); font-variant-numeric: tabular-nums; min-width: 2ch; }
.hp-intro__unit { font-size: 16px; line-height: 1.4; max-width: 180px; }
@media (max-width: 960px) {
  .hp-intro__inner { flex-direction: column; align-items: flex-start; gap: 24px; }
}
@media (max-width: 760px) {
  .hp-intro__text { font-size: 21px; }
  .hp-intro__num { font-size: 56px; }
}

/* Services grid. */
.hp-services { display: flex; flex-direction: column; gap: 48px; }
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.svc {
  display: flex; flex-direction: column; gap: 14px; min-height: 214px;
  background: var(--white); border: 1px solid var(--rule); border-radius: 8px; padding: 26px;
  text-decoration: none; color: var(--charcoal);
  transition: border-color .25s ease, transform .25s ease;
}
.svc:hover { border-color: var(--teal); transform: translateY(-3px); color: var(--charcoal); }
.svc svg { width: 100%; height: 40px; }
.svc .svc__noise { transition: opacity .35s ease; }
.svc .svc__clean { stroke-dasharray: 1000; stroke-dashoffset: 1000; transition: stroke-dashoffset .6s ease-out; }
.svc:hover .svc__noise, .svc:focus-visible .svc__noise { opacity: 0; }
.svc:hover .svc__clean, .svc:focus-visible .svc__clean { stroke-dashoffset: 0; }
/* Touch screens never hover: show the clean signal. */
@media (hover: none) { .svc .svc__noise { opacity: 0; } .svc .svc__clean { stroke-dashoffset: 0; } }
.svc__title { font-size: 24px; line-height: 1.25; font-weight: 600; color: var(--blue); }
.svc__copy { font-size: 15px; line-height: 1.55; }
@media (max-width: 960px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .hp-services { gap: 32px; }
  .svc-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .svc { min-height: 0; padding: 22px; }
  .svc__title { font-size: 21px; }
}

/* Revenue tools band. */
.hp-rev { padding-block: 80px; }
.hp-rev__card {
  background: var(--blue); color: var(--white); border-radius: 12px; padding: 56px;
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: center;
}
.hp-rev__text { display: flex; flex-direction: column; gap: 14px; }
.hp-rev__title { font-size: clamp(26px, 2.7vw, 38px); line-height: 1.1; font-weight: 700; }
.hp-rev__copy { font-size: 17px; line-height: 1.6; color: var(--rule); }
.hp-alerts { display: flex; flex-direction: column; gap: 10px; }
.hp-alert { background: var(--white); color: var(--charcoal); border-radius: 12px; padding: 14px 18px; display: flex; align-items: center; gap: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
.hp-alert__dot { width: 8px; height: 8px; border-radius: 999px; background: var(--bright-blue); flex-shrink: 0; }
.hp-alert__text { display: flex; flex-direction: column; gap: 2px; }
.hp-alert__k { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.hp-alert__v { font-size: 16px; font-weight: 600; color: var(--blue); }
.hp-alerts__caption { font-size: 13px; color: var(--rule); }
.js .hp-rev__card.reveal .hp-alert { opacity: 0; transform: translateX(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .hp-rev__card.reveal.is-in .hp-alert { opacity: 1; transform: none; }
.js .hp-rev__card.reveal.is-in .hp-alert:nth-child(2) { transition-delay: .15s; }
.js .hp-rev__card.reveal.is-in .hp-alert:nth-child(3) { transition-delay: .3s; }
@media (max-width: 960px) { .hp-rev__card { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .hp-rev { padding-block: 56px; } .hp-rev__card { padding: 28px; gap: 28px; } }

/* Free tools. */
.hp-tools { display: flex; flex-direction: column; gap: 40px; }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.tool {
  border: 1px solid var(--rule); border-radius: 12px; padding: 36px; text-decoration: none;
  display: flex; flex-direction: column; gap: 16px;
  background: var(--white); color: var(--charcoal);
  transition: transform .25s ease, border-color .25s ease;
}
.tool:hover { transform: translateY(-4px); border-color: var(--teal); color: var(--charcoal); }
.tool--dark { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }
.tool--dark:hover { color: var(--white); }
.tool__title { font-size: 28px; line-height: 1.2; font-weight: 700; color: var(--blue); }
.tool--dark .tool__title { color: var(--white); }
.tool__bars { display: flex; flex-direction: column; gap: 8px; }
.tool__bar { height: 12px; border-radius: 999px; background: var(--rule-light); overflow: hidden; }
.tool__bar span { display: block; height: 100%; border-radius: 999px; }
.tool__more { font-size: 16px; font-weight: 600; color: var(--teal); align-self: flex-start; }
.tool--dark .tool__more { color: var(--soft-blue); }
.tool svg { width: 100%; height: 40px; }
@media (max-width: 760px) {
  .tool-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .tool { padding: 24px; }
  .tool__title { font-size: 23px; }
}

/* Why Blue Signal. */
.hp-why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 64px; }
.hp-why__head { display: flex; flex-direction: column; gap: 12px; }
.why-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
.why { display: flex; flex-direction: column; gap: 8px; border-top: 2px solid var(--teal); padding-top: 16px; }
.why__t { font-size: 20px; font-weight: 600; color: var(--blue); }
.why__c { font-size: 15px; line-height: 1.55; }
@media (max-width: 960px) { .hp-why { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
@media (max-width: 760px) { .why-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* Who we work with. */
.hp-who { display: flex; flex-direction: column; gap: 32px; border-top: 1px solid var(--rule-light); padding-top: 72px; }
.who-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.who { background: var(--neutral); border-radius: 8px; padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.who__t { font-size: 20px; font-weight: 600; color: var(--blue); }
.who__c { font-size: 15px; }
@media (max-width: 760px) { .hp-who { padding-top: 48px; } .who-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; } }

/* The view from higher ground (video). */
.hp-look { position: relative; height: 640px; overflow: hidden; color: var(--white); background: var(--charcoal-deep); }
.hp-look video, .hp-look__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.hp-look__tint { position: absolute; inset: 0; background: rgba(24, 36, 66, .45); }
.hp-look__inner { position: relative; z-index: 2; height: 100%; padding-bottom: 80px; display: flex; flex-direction: column; justify-content: flex-end; }
.hp-look__copy { display: flex; flex-direction: column; gap: 16px; max-width: 820px; }
.hp-look__copy p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--rule-light); }
.js .hp-look .h2 { opacity: 0; }
.js .hp-look.is-in .h2 { opacity: 1; animation: bs-echo 1.4s var(--ease) .2s both; }
@media (max-width: 760px) { .hp-look { height: 560px; } .hp-look__inner { padding-bottom: 48px; } }
