/* ============================================================
   Home page, "Signal + Doors" (2026-10-25)
   Loaded only by index.html, after style.css and theme.css. Everything
   here is prefixed hd- so it cannot leak into the other pages. The dark
   header and the scroll reveal live in theme.css / js/reveal.js.
   ============================================================ */

/* -------- Shared bits -------- */
.home .hd-btn-lg { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 14px 24px; font-size: 16.5px; font-weight: 700; border-radius: 10px; }
.hd-btn-white { background: #fff; color: var(--orange-deep); }
.hd-btn-white:hover { background: var(--cream); color: var(--orange-deep); }
.hd-hero, .hd-where, .hd-cta-wrap { --focus-color: #fff; }
.hd-hero .eyebrow, .hd-doors .eyebrow, .hd-where .eyebrow { color: var(--gold); }

/* -------- HERO -------- */
.hd-hero {
  position: relative;
  overflow: hidden;
  background: var(--hd-night);
  color: var(--hd-soft);
}
.hd-hero::before { /* faint blueprint grid */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
          mask-image: linear-gradient(180deg, #000 55%, transparent);
  pointer-events: none;
}
.hd-hero::after { /* warm glow behind the kiosk */
  content: "";
  position: absolute;
  right: -180px; top: -140px;
  width: 760px; height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 69, 43, .26) 0%, rgba(232, 69, 43, 0) 65%);
  pointer-events: none;
}
.hd-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding-top: 76px;
  padding-bottom: 96px;
}
.hd-live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  padding: 8px 14px;
  border: 1px solid rgba(244, 156, 139, .4);
  border-radius: 999px;
  color: var(--gold);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .7px;
  text-transform: uppercase;
}
.hd-live-dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #3DDC97;
  flex-shrink: 0;
}
.hd-live-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(61, 220, 151, .25);
}
.hd-hero h1 {
  color: #fff;
  font-weight: 800;
  font-size: clamp(42px, 5.6vw, 80px);
  line-height: .98;
  letter-spacing: -.028em;
  margin: 0;
  text-wrap: balance;
}
.hd-line { display: block; }
.hd-accent { color: var(--orange); }
.hd-lede {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
  color: var(--hd-soft);
  max-width: 560px;
  margin: 26px 0 0;
}
.hd-cta { margin-top: 34px; gap: 14px; }

.hd-hero-visual { position: relative; }
.hd-hero-photo {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 40px 80px rgba(0, 0, 0, .45);
  aspect-ratio: 16 / 11;
  background: var(--hd-night-2);
}
.hd-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hd-chip {
  position: absolute;
  right: 18px; top: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 26, 46, .82);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.hd-call-card {
  position: absolute;
  left: -28px; bottom: -40px;
  width: 300px;
  max-width: 82%;
  padding: 18px;
  border-radius: 16px;
  background: #fff;
  color: var(--charcoal);
  box-shadow: 0 24px 48px rgba(0, 0, 0, .35);
}
.hd-call-meta { font-size: 12px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); }
.hd-call-bubble { margin-top: 10px; padding: 10px 12px; border-radius: 12px 12px 12px 4px; background: var(--cream-alt); font-size: 14px; line-height: 1.45; }
.hd-call-done { margin-top: 9px; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #1F7A52; }

/* -------- DOORS -------- */
.hd-doors {
  background: linear-gradient(180deg, var(--hd-night) 0, var(--hd-night) 52%, var(--cream) 52%);
  padding-top: 32px;
}
.hd-doors-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 32px;
}
.hd-doors-head .eyebrow { margin-bottom: 10px; }
.hd-doors-head h2 { color: #fff; font-size: clamp(34px, 4vw, 54px); line-height: 1.04; letter-spacing: -.02em; }
.hd-doors-head p { max-width: 420px; margin: 0; color: var(--hd-dim); font-size: 17px; line-height: 1.6; }

.hd-door-row { display: flex; flex-wrap: wrap; gap: 14px; }
.hd-door {
  flex: 1 1 230px;
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 560px;
  border-radius: 24px;
  overflow: hidden;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 30px 60px rgba(15, 26, 46, .28);
  isolation: isolate;
}
.hd-door:hover { color: #fff; }
.hd-door:focus-visible { outline: 3px solid #fff; outline-offset: 0; box-shadow: 0 0 0 7px var(--orange-dark), 0 30px 60px rgba(15, 26, 46, .28); }
.hd-door-wide { flex: 1.6 1 340px; }
.hd-door-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hd-door-img-ai { object-position: 70% center; }
.hd-door::before { /* scrim so the copy always reads */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(15, 26, 46, 0) 30%, rgba(15, 26, 46, .94) 82%);
}
.hd-door-wide::before { background: linear-gradient(180deg, rgba(15, 26, 46, .08) 18%, rgba(15, 26, 46, .95) 76%); }
.hd-door-plan { background: #fff; }
.hd-door-plan::before { background: linear-gradient(180deg, rgba(15, 26, 46, .2) 0%, rgba(15, 26, 46, .95) 68%); }
.hd-door-k12 { background: var(--blue); }
.hd-door-k12::before { display: none; }
.hd-door-k12 .hd-door-tag { color: #FFD3CA; } /* 5.6:1 on --blue */
.hd-k12-mark {
  position: absolute;
  left: -8px; top: 22px;
  z-index: -1;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 170px;
  line-height: .85;
  letter-spacing: -6px;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, .2);
}
.hd-door-body { display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 26px; width: 100%; }
.hd-door-tag { font-size: 12.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); }
.hd-door-tag-solid { color: #fff; background: rgba(15, 26, 46, .72); padding: 6px 10px; border-radius: 8px; }
.hd-door-title { display: block; margin-top: 10px; font-family: var(--font-head); font-weight: 700; font-size: 28px; line-height: 1.06; letter-spacing: -.01em; }
.hd-door-title-lg { font-size: clamp(30px, 2.8vw, 38px); }
.hd-door-text { display: block; margin-top: 12px; font-size: 15px; line-height: 1.5; color: #D5DDEA; }
.hd-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hd-pills span { padding: 7px 13px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: 14px; font-weight: 600; }
.hd-door-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 700; font-size: 15.5px; }
.hd-door-go svg { transition: transform .2s ease; }

/* -------- PROOF -------- */
.hd-proof { background: var(--cream); padding: 56px 0 8px; }
.hd-proof-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hd-stat { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 26px; }
.hd-num { font-family: var(--font-head); font-weight: 700; font-size: 44px; line-height: 1; color: var(--charcoal); }
.hd-num span { color: var(--orange-dark); }
.hd-label { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.45; }

/* -------- WHO -------- */
.hd-who { background: var(--cream); padding: 80px 0 110px; }
.hd-who-grid { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.hd-portrait { flex: 0 1 360px; margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; }
.hd-portrait img { width: 100%; height: 100%; object-fit: cover; }
.hd-who-copy { flex: 1 1 520px; min-width: 0; max-width: 880px; }
.hd-who-copy h2 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.04; letter-spacing: -.022em; }
.hd-who-lede { font-size: 19px; line-height: 1.6; color: #3A4660; margin: 22px 0 0; max-width: 680px; }
.hd-creds { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.hd-creds li { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; }
.hd-creds strong { display: block; color: var(--charcoal); font-size: 15.5px; }
.hd-creds span { display: block; color: var(--muted); font-size: 14.5px; }
.hd-partners { margin: 22px 0 26px; color: var(--muted); font-size: 14.5px; font-weight: 600; }
.hd-partners span { margin-right: 6px; }

/* -------- WHERE -------- */
.hd-where { background: var(--hd-night); color: var(--hd-dim); padding: 96px 0; }
.hd-where-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.hd-where h2 { color: #fff; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -.015em; }
.hd-where p { margin: 18px 0 0; font-size: 17px; line-height: 1.6; max-width: 520px; }
.hd-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; color: var(--gold); font-weight: 700; }
.hd-link:hover { color: #fff; }
.hd-bases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hd-bases li { border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px; padding: 22px; }
.hd-bases strong { display: block; margin-top: 18px; font-family: var(--font-head); font-size: 22px; color: #fff; }
.hd-bases span:last-child { display: block; margin-top: 4px; font-size: 14px; }
.hd-pin { display: block; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 6px rgba(232, 69, 43, .2); }

/* -------- CTA -------- */
.hd-cta-wrap { background: var(--hd-night); padding: 0 0 96px; }
.hd-cta-band {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
  padding: 64px 56px;
  border-radius: 28px;
  background: var(--orange-dark);
  color: #fff;
}
.hd-cta-mark { position: absolute; right: -40px; bottom: -110px; width: 360px; height: 370px; opacity: .12; pointer-events: none; }
.hd-cta-copy { position: relative; max-width: 680px; }
.hd-cta-copy h2 { color: #fff; font-weight: 800; font-size: clamp(30px, 3.8vw, 52px); line-height: 1.04; }
.hd-cta-copy p { margin: 14px 0 0; font-size: 19px; color: #fff; }
.hd-cta-actions { position: relative; display: flex; flex-wrap: wrap; gap: 12px; }
.hd-cta-band .btn-outline-light { border-color: rgba(255, 255, 255, .7); }
.hd-cta-band .btn-outline-light:hover { color: var(--orange-deep); }

/* -------- RESPONSIVE -------- */
@media (max-width: 1080px) {
  .hd-creds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hd-proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .hd-hero-grid { grid-template-columns: 1fr; gap: 64px; padding-top: 52px; padding-bottom: 88px; }
  .hd-call-card { left: 12px; }
  .hd-where-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hd-doors { background: linear-gradient(180deg, var(--hd-night) 0, var(--hd-night) calc(100% - 120px), var(--cream) calc(100% - 120px)); }
  .hd-door { min-height: 400px; }
  .hd-door-wide { min-height: 460px; }
  .hd-bases { grid-template-columns: 1fr; }
  .hd-cta-band { padding: 44px 28px; }
}
@media (max-width: 640px) {
  .hd-hero-grid { padding-top: 40px; }
  .hd-live { font-size: 11.5px; letter-spacing: .4px; }
  .hd-cta .btn { flex: 1 1 auto; justify-content: center; }
  .hd-call-card { position: relative; left: auto; bottom: auto; width: auto; max-width: none; margin: -48px 14px 0; }
  .hd-chip { font-size: 12px; right: 12px; top: 12px; }
  .hd-proof-grid { gap: 10px; }
  .hd-stat { padding: 18px; border-radius: 14px; }
  .hd-num { font-size: 32px; }
  .hd-label { font-size: 13.5px; }
  .hd-creds { gap: 10px; }
  .hd-creds li { padding: 13px 14px; }
  .hd-creds strong { font-size: 14.5px; }
  .hd-creds span { font-size: 13.5px; }
  .hd-bases { gap: 10px; }
  .hd-bases li { display: grid; grid-template-columns: 12px 1fr; column-gap: 16px; align-items: center; padding: 16px 18px; }
  .hd-bases .hd-pin { grid-row: span 2; }
  .hd-bases strong { margin-top: 0; font-size: 19px; }
  .hd-bases span:last-child { margin-top: 0; }
  .hd-k12-mark { font-size: 120px; letter-spacing: -4px; -webkit-text-stroke-color: rgba(255, 255, 255, .14); }
  .hd-door::before { background: linear-gradient(180deg, rgba(15, 26, 46, .05) 10%, rgba(15, 26, 46, .95) 62%); }
  .hd-door-k12::before { display: none; }
  .hd-cta-actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* -------- MOTION (only for visitors who have not asked for less) -------- */
@media (prefers-reduced-motion: no-preference) {
  .hd-hero .hd-line, .hd-hero .hd-lede, .hd-hero .hd-cta, .hd-live { animation: hd-rise .7s cubic-bezier(.16, 1, .3, 1) both; }
  .hd-hero .hd-line + .hd-line { animation-delay: .08s; }
  .hd-hero .hd-lede { animation-delay: .16s; }
  .hd-hero .hd-cta { animation-delay: .24s; }
  .hd-hero-photo { animation: hd-zoom .9s .1s cubic-bezier(.16, 1, .3, 1) both; }
  .hd-call-card { animation: hd-rise .7s .55s cubic-bezier(.16, 1, .3, 1) both; }
  .hd-live-dot::after { animation: hd-pulse 1.8s ease-out 5; }

  .hd-door { transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s ease; }
  .hd-door-img { transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
  .hd-door:hover { transform: translateY(-6px); box-shadow: 0 40px 70px rgba(15, 26, 46, .34); }
  .hd-door:hover .hd-door-img { transform: scale(1.05); }
  .hd-door:hover .hd-door-go svg { transform: translateX(4px); }
  .hd-btn-white:hover { transform: translateY(-1px); }

}
@keyframes hd-rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes hd-zoom { from { opacity: 0; transform: scale(.96); } }
@keyframes hd-pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
