/* Home page. Same system as the other pages (light palette, near-black ink, light header,
   shared page-title and intro-line type, ink pill buttons). The 3D logo visual and its
   orbit animation are unchanged; their own styles live in style.css and home.js. */

.home-page {
  --header-h: 65px;            /* replaced at runtime with the measured header height */
  /* Warm stone palette: change these to retint the page. */
  --bg-top: #faf9f7;           /* warm off-white */
  --bg-bottom: #e8e4de;        /* soft stone */
  --ink: #17181d;              /* near-black text */
  --soft: rgba(23, 24, 29, 0.7);
  --line: rgba(23, 24, 29, 0.12);
  --field: rgba(23, 24, 29, 0.22);
  --radius: 18px;              /* site radius (buttons, cards) */
  /* Off-white behind the header strip; stone below the page content. */
  background: linear-gradient(var(--bg-top) 0 var(--header-h), var(--bg-bottom) var(--header-h));
  color: var(--ink);
}

/* Light header, as on the other pages. */
.home-page #site-header {
  background: rgba(250, 249, 247, 0.72);
  border-bottom-color: var(--line);
}
.home-page .navbar { max-width: 1280px; }
.home-page nav.links a { color: var(--soft); }
.home-page nav.links a:hover { color: var(--ink); }

/* Off-white at the top, easing into stone toward the bottom. */
.home-page .hero-section {
  background: linear-gradient(to bottom, var(--bg-top) 0%, #f2efeb 50%, var(--bg-bottom) 100%);
}

.home-page .hero-background { display: none; }

/* ---------- Type (same scale as the page titles and intro lines on the other pages) ---------- */

/* = .svc-heading / .ct-title: the site's page-title style. */
.home-page .hero-copy h1 {
  font: 700 clamp(3rem, 8vw, 7.5rem)/0.92 'Space Grotesk', sans-serif;
  letter-spacing: -0.055em;
  color: var(--ink);
}

/* = .svc-intro / .ct-intro: the site's intro-line style. */
.home-page .hero-tagline {
  margin: clamp(16px, 2vw, 24px) 0 0;
  font: 400 clamp(1.05rem, 1.4vw, 1.3rem)/1.5 'Space Grotesk', sans-serif;
  letter-spacing: normal;
  text-transform: none;
  color: var(--soft);
}

/* ---------- Buttons: ink pill (as on About and Contact) + matching outline pill ---------- */

.home-page .btn-primary,
.home-page .btn-secondary {
  min-height: 54px;
  padding: 0 30px;
  border-radius: 999px;
  font: 600 16px/1 'Space Grotesk', sans-serif;
}

.home-page .btn-primary {
  background: var(--ink);
  color: var(--bg-top);
  box-shadow: none;
}

.home-page .btn-secondary {
  border: 1px solid var(--field);
  background: transparent;
  color: var(--ink);
}

.home-page .btn-secondary:hover { border-color: var(--ink); }

.home-page .btn-primary:focus-visible,
.home-page .btn-secondary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* Keep the visual's inherited colour as before (white), so none of its computed styles change. */
.home-page .hero-visual { color: #f5f7ff; }

/* ---------- Logo visual: backdrop only (the visual itself is unchanged) ----------
   The visual was designed on a dark background; this soft muted-violet radial sits behind
   all of its layers so the glow, glass edges and white orbit rings keep their contrast.
   .hero-visual already forms a stacking context (its drop-shadow filter), so z-index -1
   keeps this beneath every layer of the visual. */
.home-page .hero-visual::before {
  content: "";
  position: absolute;
  inset: -14%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
    rgba(52, 38, 98, 0.78) 0%,
    rgba(68, 50, 128, 0.58) 34%,
    rgba(104, 82, 176, 0.26) 56%,
    rgba(150, 120, 220, 0) 72%);
  filter: blur(8px);
  pointer-events: none;
}

/* Orbital structure is driven by home.js (rings precess, dots ride their rings):
   switch off the old free-floating dot keyframes once it takes over. */
.home-page .hero-visual.is-orbiting .orbital-dot { animation: none; }
.home-page .hero-visual.is-orbiting .orbital-ring,
.home-page .hero-visual.is-orbiting .orbital-dot { will-change: transform; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
