/* Ascend AI NOW: homepage command hero (matches the approved Home Page.png composition) */
/* Montserrat is self-hosted (SIL Open Font License) so no visitor data goes to a font service. */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 200; font-display: swap; src: url("fonts/montserrat-latin-200-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/montserrat-latin-800-normal.woff2") format("woff2"); }
:root {
  --hq-navy: #050c24;
  --hq-navy-2: #0e2865;
  --hq-royal: #4169e1;
  --hq-electric: #2fa8ff;
  --hq-orange: #ff6600;
  --hq-white: #ffffff;
  --hq-mist: #c9d6ff;
}

.cc-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(720px, 100vh, 900px);
  background: var(--hq-navy);
  color: var(--hq-white);
  font-family: "Montserrat", "Nunito Sans", system-ui, sans-serif;
}

/* Background: approved orbital Earth image with slow drift and pointer parallax */
.cc-hero__bg {
  position: absolute;
  inset: -4%;
  z-index: -3;
  background: url("branding/orbital-earth-background.jpg") 62% 40% / cover no-repeat;
  transform: translate3d(var(--cc-px, 0px), var(--cc-py, 0px), 0) scale(1.04);
  transition: transform 0.6s ease-out;
  animation: hqDrift 38s ease-in-out infinite alternate;
}
.cc-hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 12, 36, 0.95) 0%, rgba(5, 12, 36, 0.78) 32%, rgba(5, 12, 36, 0.05) 58%, rgba(5, 12, 36, 0.45) 100%),
    linear-gradient(180deg, rgba(5, 12, 36, 0) 60%, rgba(5, 12, 36, 0.95) 100%);
}
.cc-hero__stars {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.cc-hero__stars span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px 2px rgba(120, 180, 255, 0.8);
  animation: hqTwinkle 4s ease-in-out infinite;
}
.cc-hero__stars span:nth-child(1) { left: 8%; top: 12%; animation-delay: 0s; }
.cc-hero__stars span:nth-child(2) { left: 41%; top: 9%; animation-delay: 1.2s; }
.cc-hero__stars span:nth-child(3) { left: 52%; top: 64%; animation-delay: 2.1s; box-shadow: 0 0 10px 3px rgba(255, 140, 60, 0.85); }
.cc-hero__stars span:nth-child(4) { left: 88%; top: 44%; animation-delay: 0.6s; }
.cc-hero__stars span:nth-child(5) { left: 30%; top: 82%; animation-delay: 3s; }
.cc-hero__stars span:nth-child(6) { left: 71%; top: 7%; animation-delay: 1.8s; box-shadow: 0 0 10px 3px rgba(255, 140, 60, 0.85); }

/* Orbit rings sweeping behind the portrait */
.cc-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  border: 2px solid transparent;
  pointer-events: none;
  z-index: -1;
}
.cc-orbit--one {
  width: 980px; height: 300px; margin: -150px 0 0 -560px;
  border-top-color: rgba(255, 102, 0, 0.75);
  border-left-color: rgba(255, 102, 0, 0.35);
  filter: drop-shadow(0 0 8px rgba(255, 102, 0, 0.7));
  transform: rotate(-14deg);
  animation: hqOrbit 18s linear infinite;
}
.cc-orbit--two {
  width: 760px; height: 220px; margin: -40px 0 0 -420px;
  border-bottom-color: rgba(47, 168, 255, 0.7);
  border-right-color: rgba(47, 168, 255, 0.3);
  filter: drop-shadow(0 0 8px rgba(47, 168, 255, 0.7));
  transform: rotate(-10deg);
  animation: hqOrbit 26s linear infinite reverse;
}

.cc-hero__inner {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: calc(var(--experience-nav-height, 90px) + clamp(24px, 4vh, 48px)) clamp(20px, 5vw, 80px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.95fr) minmax(0, 0.4fr);
  align-items: end;
  gap: 24px;
  min-height: inherit;
}

/* Left: message */
.cc-hero__copy {
  align-self: start;
  padding-top: clamp(8px, 3vh, 32px);
  padding-bottom: clamp(40px, 8vh, 96px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 640px;
}
.cc-eyebrow {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hq-mist);
}
.cc-eyebrow b { color: var(--hq-orange); font-weight: 600; margin: 0 0.5em; }
.cc-title {
  margin: 0;
  font-family: "Montserrat", system-ui, sans-serif;
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.cc-title__thin {
  display: block;
  font-weight: 200;
  font-size: clamp(2.3rem, 4.4vw, 4.4rem);
  color: var(--hq-white);
}
.cc-title__bold {
  display: block;
  font-weight: 800;
  font-size: clamp(2.4rem, 4.6vw, 4.6rem);
  white-space: nowrap;
  background: linear-gradient(90deg, #39b3ff 0%, var(--hq-royal) 38%, #ff8a2a 70%, var(--hq-orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(65, 105, 225, 0.45));
}
.cc-title__bold sup { font-size: 0.32em; vertical-align: super; -webkit-text-fill-color: #ffb27a; }
.cc-promise {
  margin: 4px 0 0;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--hq-white);
}
.cc-actions-line {
  margin: 0;
  font-size: clamp(0.98rem, 1.2vw, 1.12rem);
  letter-spacing: 0.06em;
  line-height: 1.7;
  color: var(--hq-mist);
}
.cc-buttons { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px; }
.cc-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.cc-btn svg { width: 20px; height: 20px; flex: none; }
.cc-btn--primary {
  background: linear-gradient(180deg, rgba(255, 102, 0, 0.32), rgba(255, 102, 0, 0.12));
  border: 2px solid var(--hq-orange);
  color: var(--hq-white);
  box-shadow: 0 0 22px rgba(255, 102, 0, 0.45), inset 0 0 18px rgba(255, 102, 0, 0.25);
}
.cc-btn--secondary {
  background: rgba(14, 40, 101, 0.35);
  border: 2px solid var(--hq-electric);
  color: var(--hq-white);
  box-shadow: 0 0 18px rgba(47, 168, 255, 0.35);
}
.cc-btn:hover, .cc-btn:focus-visible { transform: translateY(-2px); }
.cc-btn--primary:hover { box-shadow: 0 0 34px rgba(255, 102, 0, 0.7), inset 0 0 18px rgba(255, 102, 0, 0.35); color: var(--hq-white); }
.cc-btn--secondary:hover { box-shadow: 0 0 30px rgba(47, 168, 255, 0.6); color: var(--hq-white); }
.cc-btn:focus-visible { outline: 3px solid var(--hq-white); outline-offset: 3px; }
.cc-signature {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 8px 0 0;
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #7cc4ff;
}
.cc-signature::before {
  content: "";
  width: 44px;
  height: 3px;
  border-radius: 2px;
  background: var(--hq-orange);
  box-shadow: 0 0 10px var(--hq-orange);
}

/* Center: approved portrait, unaltered */
.cc-hero__portrait {
  position: relative;
  align-self: end;
  justify-self: center;
  width: min(118%, 600px);
  margin: 0 -9%;
}
.cc-hero__portrait::before {
  content: "";
  position: absolute;
  left: 8%; right: 8%; top: 12%; bottom: 0;
  z-index: -1;
  border-radius: 50% 50% 0 0;
  background: radial-gradient(closest-side, rgba(65, 105, 225, 0.55), rgba(65, 105, 225, 0) 75%);
  filter: blur(8px);
}
.cc-hero__portrait img {
  display: block;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 76%, transparent 100%), linear-gradient(180deg, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 76%, transparent 100%), linear-gradient(180deg, #000 82%, transparent 100%);
  mask-composite: intersect;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 26px rgba(47, 168, 255, 0.35));
}
.cc-hero__portrait figcaption {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(5, 12, 36, 0.82);
  border: 1px solid rgba(124, 196, 255, 0.5);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--hq-white);
}

/* Right: official logo (never cropped) and brand verbs */
.cc-hero__brand {
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-top: 24px;
}
.cc-hero__brand img {
  width: 100%;
  max-width: 280px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(65, 105, 225, 0.55));
  animation: hqFloat 7s ease-in-out infinite;
}
.cc-verbs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--hq-mist);
}
.cc-verbs li::before { content: "·"; color: var(--hq-orange); margin-right: 10px; }

/* Solutions band */
.cc-solutions {
  position: relative;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(65, 105, 225, 0.22), rgba(5, 12, 36, 0) 60%),
    var(--hq-navy);
  border-top: 1px solid rgba(65, 105, 225, 0.45);
  box-shadow: 0 -1px 24px rgba(47, 168, 255, 0.25);
  color: var(--hq-white);
  font-family: "Montserrat", "Nunito Sans", system-ui, sans-serif;
  padding: 44px clamp(20px, 5vw, 80px) 72px;
}
.cc-solutions__head { text-align: center; margin: 0 auto 32px; max-width: 1200px; }
.cc-solutions__kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 0 10px;
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--hq-mist);
}
.cc-solutions__kicker::before, .cc-solutions__kicker::after {
  content: "";
  flex: 0 1 180px;
  height: 1px;
  background: linear-gradient(90deg, rgba(47, 168, 255, 0), rgba(47, 168, 255, 0.9));
}
.cc-solutions__kicker::after { transform: scaleX(-1); }
.cc-solutions__title {
  margin: 0;
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.cc-cards {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.cc-card {
  position: relative;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 24px 20px;
  border-radius: 16px;
  text-decoration: none;
  color: var(--hq-white);
  background: linear-gradient(160deg, rgba(14, 40, 101, 0.75), rgba(5, 12, 36, 0.9));
  border: 1px solid rgba(65, 105, 225, 0.6);
  box-shadow: 0 0 22px rgba(65, 105, 225, 0.25), inset 0 0 30px rgba(47, 168, 255, 0.08);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.cc-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--hq-royal), var(--hq-orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.cc-card:hover, .cc-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(255, 102, 0, 0.8);
  box-shadow: 0 0 34px rgba(255, 102, 0, 0.35), inset 0 0 30px rgba(47, 168, 255, 0.12);
  color: var(--hq-white);
}
.cc-card:hover::after, .cc-card:focus-visible::after { transform: scaleX(1); }
.cc-card:focus-visible { outline: 3px solid var(--hq-white); outline-offset: 3px; }
.cc-card__icon { width: 88px; height: 88px; }
.cc-card__icon svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 0 10px rgba(47, 168, 255, 0.6)); }
.cc-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--hq-white);
}
.cc-card p { margin: 0 0 14px; font-size: 0.92rem; line-height: 1.5; color: var(--hq-mist); }
.cc-card__more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7cc4ff;
}
.cc-card__more span {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--hq-orange);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--hq-white);
  transition: transform 0.25s ease, background 0.25s ease;
}
.cc-card:hover .cc-card__more span { transform: translateX(4px); background: var(--hq-orange); }

@keyframes hqDrift { from { background-position: 62% 40%; } to { background-position: 58% 46%; } }
@keyframes hqTwinkle { 0%, 100% { opacity: 0.15; transform: scale(0.7); } 50% { opacity: 1; transform: scale(1.2); } }
@keyframes hqOrbit { from { transform: rotate(-14deg) scaleX(1); } 50% { transform: rotate(-8deg) scaleX(1.04); } to { transform: rotate(-14deg) scaleX(1); } }
@keyframes hqFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (prefers-reduced-motion: reduce) {
  .cc-hero__bg, .cc-hero__stars span, .cc-orbit, .cc-hero__brand img { animation: none !important; }
  .cc-hero__bg { transition: none; }
  .cc-card, .cc-btn { transition: none; }
}

/* Tablet */
@media (max-width: 1180px) {
  .cc-hero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
  /* The navigation already carries the full logo at this width; the hero copy returns on phones. */
  .cc-hero__brand { display: none; }
  .cc-verbs { display: none; }
  .cc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phone */
@media (max-width: 760px) {
  .cc-hero { min-height: 0; }
  .cc-hero__shade {
    background: linear-gradient(180deg, rgba(5, 12, 36, 0.55) 0%, rgba(5, 12, 36, 0.88) 45%, rgba(5, 12, 36, 0.98) 100%);
  }
  .cc-hero__inner { grid-template-columns: minmax(0, 1fr); padding-top: calc(var(--experience-nav-height, 76px) + 24px); gap: 8px; }
  .cc-actions-line br { display: none; }
  .cc-hero__brand { display: flex; position: static; width: auto; order: -1; padding-top: 0; }
  .cc-hero__brand img { max-width: 210px; }
  .cc-hero__copy { padding-bottom: 12px; }
  .cc-title__thin { font-size: 2.1rem; }
  .cc-title__bold { font-size: 2.15rem; white-space: normal; }
  .cc-eyebrow { font-size: 0.66rem; letter-spacing: 0.2em; }
  .cc-hero__portrait { width: min(82%, 360px); }
  .cc-orbit--one { width: 620px; margin-left: -310px; }
  .cc-orbit--two { width: 480px; margin-left: -240px; }
  .cc-btn { width: 100%; justify-content: center; }
  .cc-cards { grid-template-columns: minmax(0, 1fr); }
  .cc-card { grid-template-columns: 84px minmax(0, 1fr); }
  .cc-card__icon { width: 84px; height: 84px; }
  .cc-solutions__kicker::before, .cc-solutions__kicker::after { flex-basis: 40px; }
}

/* Small-screen fixes for existing homepage sections (no content changes) */
@media (max-width: 760px) {
  body.digital-headquarters #tools { padding: 4rem 1.25rem !important; }
  body.digital-headquarters #tools > div > div[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (max-width: 1100px) {
  body.digital-headquarters footer { grid-template-columns: minmax(0, 1fr); text-align: center; padding: 2.5rem 1.5rem; }
  body.digital-headquarters .footer-links { flex-wrap: wrap; justify-content: center; gap: 1rem 1.5rem; }
  body.digital-headquarters .footer-copy { text-align: center; }
}

/* Interior pages (for example /impact/): same command hero, adjusted for the page's own nav offset and heading styles */
body.has-interior-nav .cc-hero { min-height: clamp(620px, calc(100vh - var(--experience-nav-height, 90px)), 820px); }
body.has-interior-nav .cc-hero__inner { padding-top: clamp(24px, 4vh, 48px); }
body.has-interior-nav .cc-hero h1.cc-title {
  max-width: none;
  margin: 0;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: inherit;
  font-weight: inherit;
  line-height: 0.98;
  color: var(--hq-white);
}
.cc-routes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.cc-routes a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(124, 196, 255, 0.45);
  background: rgba(14, 40, 101, 0.45);
  color: var(--hq-white);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.cc-routes a:hover, .cc-routes a:focus-visible { border-color: var(--hq-orange); background: rgba(255, 102, 0, 0.18); color: var(--hq-white); }
.cc-routes a:focus-visible { outline: 3px solid var(--hq-white); outline-offset: 2px; }
@media (max-width: 760px) {
  body.has-interior-nav .cc-hero__inner { padding-top: 20px; }
}
body.has-interior-nav .cc-hero__portrait { width: min(110%, 500px); }
