html,
body {
  overflow-x: clip; /* clip keeps sticky/fixed ancestors reliable; hidden broke the header */
}
body {
  background: #f3f6fb !important;
  background-image: none !important;
}

.home-hero {
  position: relative;
  overflow: hidden;
  background: #0c2d48 !important;
  color: #fff;
  padding: 72px 0 56px;
}
.home-hero::before {
  content: "";
  display: block !important;
  position: absolute;
  inset: -8%;
  z-index: 0;
  background:
    linear-gradient(105deg, rgba(8, 32, 51, 0.88), rgba(10, 90, 120, 0.62)),
    url("assets/new/skyline-blue.jpg") center / cover no-repeat;
  animation: fam-drift 22s ease-in-out infinite alternate;
}
.home-hero::after,
.aperture-ring {
  display: none !important;
}
.home-hero .hero-aperture,
.home-hero .wrap {
  position: relative;
  z-index: 1;
}
.home-hero h1,
.home-hero h2,
.home-hero p,
.home-hero a,
.home-hero .eyebrow,
.home-hero .eyebrow-note,
.release-open,
.release-fast,
.release-rest {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: none !important;
}
.home-hero .btn-primary {
  background: #ffd25e !important;
  color: #0c2d48 !important;
  border-radius: 6px;
  box-shadow: none;
}
.home-hero .btn-primary svg {
  fill: #0c2d48;
}
.home-hero .btn-line {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.7);
  border-radius: 6px;
}
.hero-aperture .promise {
  background: transparent;
}
.hero-aperture .promise article {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
}

.band,
.build-band,
.sea-band,
.tone-schedule,
.tone-sectors,
.tone-seek,
.tone-guides,
.tone-faq,
.tone-close {
  background: #f3f6fb !important;
  color: #3e4c5e !important;
}
.band h2,
.band h3,
.kicker,
.band a {
  color: #0c2d48;
}
.band p,
.band li,
.card span,
.sea-band p,
.sea-band li {
  color: #4d5d70 !important;
}
.card,
.build-board .card,
.ai-tiles .card,
.ai-lead,
.ai-rest {
  background: #fff !important;
  color: #3e4c5e !important;
  border-radius: 14px !important;
  box-shadow: 0 12px 28px rgba(12, 45, 72, 0.08) !important;
}
.card h3,
.build-board .card h3 {
  color: #0c2d48 !important;
}
.schedule-track li,
.faq-list details,
.guide-card {
  background: #fff;
  border-radius: 12px;
}

.desk-quote,
.desk-sheet,
.quote-layout,
.form-layout {
  color: #243044;
}
.quote-fields,
.side-panel,
.contact-card {
  background: #fff;
  border-radius: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: calc(var(--d, 0) * 70ms);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.fam-kicker,
.fam-hero h1,
.fam-lead,
.fam-actions {
  animation: fam-rise 0.8s ease both;
}
.fam-hero h1 { animation-delay: 0.08s; }
.fam-lead { animation-delay: 0.18s; }
.fam-actions { animation-delay: 0.28s; }
.fam-gold {
  position: relative;
  overflow: hidden;
}
.fam-gold::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: fam-shine 3.6s ease-in-out infinite;
  pointer-events: none;
}
.build-board .card,
.ai-tiles .card,
.ai-lead,
.ai-rest {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.build-board .card:hover,
.ai-tiles .card:hover,
.ai-lead:hover,
.ai-rest:hover {
  transform: translateY(-8px);
}
.build-art {
  transition: transform 0.7s ease;
}
.card:hover .build-art {
  transform: scale(1.06);
}

@keyframes fam-drift {
  from { transform: scale(1); }
  to { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}
@keyframes fam-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes fam-shine {
  0%, 58% { transform: translateX(0); }
  100% { transform: translateX(420%); }
}

body:has(.tpl) {
  background-color: #06101f !important;
  background-image:
    linear-gradient(180deg, rgba(4, 10, 24, 0.84), rgba(4, 10, 24, 0.92)),
    url("assets/new/ai-circuit.jpg") !important;
  background-size: auto, cover !important;
  background-position: center, center !important;
  background-attachment: fixed, fixed !important;
  color: #d6e6f8 !important;
}
.tpl {
  background: transparent;
  color: #d6e6f8;
}
.tpl h1,
.tpl h2,
.tpl h3,
.tpl .card h3,
.tpl .fam-block-title {
  color: #f4f8ff !important;
}
.tpl p,
.tpl li,
.tpl .card span,
.tpl .card p,
.tpl .fam-lead {
  color: #d6e6f8 !important;
}
.tpl a {
  color: #7dd3fc;
}
.fam-hero::before {
  background: radial-gradient(circle, rgba(37, 99, 235, 0.55), rgba(56, 189, 248, 0.12) 42%, transparent 70%) !important;
  opacity: 1;
}
.tpl .fam-hero h1 {
  background-image: linear-gradient(100deg, #ffffff 8%, #e0f2fe 46%, #38bdf8 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
}
.tpl .fam-kicker {
  color: #7dd3fc;
}
.tpl .fam-gold {
  background: #2563eb !important;
  color: #fff !important;
  box-shadow: 0 0 18px rgba(37, 99, 235, 0.45);
}
.tpl .fam-hero .fam-gold {
  background: #2563eb !important;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.45) !important;
}
.tpl .fam-hero .fam-gold:hover {
  background: #1d4ed8 !important;
}
.tpl .fam-gold:hover {
  background: #3b82f6 !important;
}
.fam-rail,
.fam-points article,
.tpl .card,
.tpl .faq-item {
  background: rgba(6, 16, 38, 0.82) !important;
  color: #d6e6f8 !important;
  border: 1px solid rgba(56, 189, 248, 0.28) !important;
  box-shadow: 0 16px 36px rgba(2, 8, 24, 0.35) !important;
}
.fam-pair > div {
  color: #d6e6f8 !important;
  background:
    linear-gradient(#38bdf8, #38bdf8) 14px 14px / 18px 2px no-repeat,
    linear-gradient(#38bdf8, #38bdf8) 14px 14px / 2px 18px no-repeat,
    linear-gradient(160deg, rgba(10, 32, 72, 0.92), rgba(4, 14, 32, 0.88)) !important;
  border: 1px solid rgba(56, 189, 248, 0.5) !important;
  box-shadow: 0 0 22px rgba(37, 99, 235, 0.22), inset 0 0 24px rgba(37, 99, 235, 0.12) !important;
}
.fam-pair > div:hover {
  border-color: #7dd3fc !important;
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.35) !important;
}
.fam-pair .is-later {
  background: linear-gradient(160deg, rgba(6, 16, 36, 0.78), rgba(4, 10, 22, 0.7)) !important;
  border: 1px dashed rgba(125, 211, 252, 0.4) !important;
  box-shadow: none !important;
}
.fam-widget {
  background:
    linear-gradient(100deg, rgba(3, 8, 22, 0.94), rgba(6, 20, 48, 0.8) 54%, rgba(4, 14, 36, 0.5)),
    url("assets/new/ai-circuit.jpg") right center / cover no-repeat !important;
  color: #e7f4ff !important;
  border: 1px solid rgba(56, 189, 248, 0.42) !important;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.22), 0 22px 48px rgba(2, 8, 24, 0.45) !important;
}
.fam-split div {
  background: linear-gradient(180deg, rgba(8, 20, 46, 0.78), rgba(4, 12, 28, 0.4)) !important;
  color: #d6e6f8 !important;
  border: 1px solid rgba(56, 189, 248, 0.22) !important;
  box-shadow: inset 0 0 28px rgba(37, 99, 235, 0.1) !important;
}
.tpl .fam-widget .fam-gold {
  background: linear-gradient(180deg, #3b82f6, #1d4ed8) !important;
  color: #fff !important;
  box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.65), 0 0 24px rgba(37, 99, 235, 0.55) !important;
}
.fam-widget a[href^="tel"],
.fam-widget a[href^="mailto"] {
  color: #e7f4ff !important;
}
.fam-stat span,
.fam-stat strong {
  color: #7dd3fc;
}
.fam-stat strong {
  background: #12315f;
}
.fam-rail::before {
  background: linear-gradient(90deg, transparent, #38bdf8, transparent);
}
.fam-stat + .fam-stat {
  box-shadow: inset 1px 0 0 rgba(56, 189, 248, 0.25);
}
.tpl .cta-panel {
  background:
    linear-gradient(105deg, rgba(4, 12, 28, 0.88), rgba(20, 60, 140, 0.72)),
    url("assets/new/ai-circuit.jpg") center / cover no-repeat !important;
}

@media (prefers-reduced-motion: reduce) {
  .home-hero::before,
  .fam-hero::before,
  .fam-gold::after,
  .fam-kicker,
  .fam-hero h1,
  .fam-lead,
  .fam-actions {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
