/* Public-site background. Replaces the octagon composition (removed
   27 Oct 2026, owner's call). Motion lives in SiteBackdrop.tsx. The fine
   grid that briefly sat here was removed the same day (owner's call: it
   read as graph paper). */

/* Wave lines from the logo glyph, shown only at the screen edges */
.site-waves {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, #000 0%, transparent 30%, transparent 70%, #000 100%);
  mask-image: linear-gradient(to right, #000 0%, transparent 30%, transparent 70%, #000 100%);
}
@media (max-width: 760px) {
  .site-waves {
    -webkit-mask-image: linear-gradient(to right, #000 0%, transparent 18%, transparent 82%, #000 100%);
    mask-image: linear-gradient(to right, #000 0%, transparent 18%, transparent 82%, #000 100%);
  }
}

/* Ghost words behind homepage sections, with a soft light pool at the top
   of each section. Both fade out so they never compete with the copy. */
.ghost-host { position: relative; overflow-x: clip; isolation: isolate; }
.ghost-host > *:not(.ghost-word):not(.blueprint) { position: relative; z-index: 1; }
.ghost-host::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 55% at 50% 0%, rgba(255,255,255,0.025), transparent 70%);
}
.ghost-word {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 0;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(96px, 16vw, 260px);
  line-height: 0.85;
  letter-spacing: -0.045em;
  color: var(--text);
  opacity: 0.07;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  pointer-events: none;
  user-select: none;
  will-change: transform;
}

/* Blueprints: machine-part line drawings half off the page edge, drawn in
   on scroll by SiteBackdrop.tsx. Hidden on narrow screens, where there is
   no side margin for them to sit in. */
.blueprint {
  position: absolute;
  top: 14%;
  z-index: 0;
  width: clamp(200px, 19vw, 280px);
  color: var(--text);
  pointer-events: none;
}
.blueprint--left { left: 0; transform: translateX(-46%); }
.blueprint--right { right: 0; transform: translateX(46%); }
.blueprint svg { display: block; width: 100%; height: auto; overflow: visible; }
.blueprint [pathLength] {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0.26;
}
.blueprint .dash { stroke-dasharray: 0.012 0.012; opacity: 0.18; }
.blueprint .lead, .blueprint .tick { opacity: 0.4; }
.blueprint text {
  fill: var(--text-muted);
  font-family: var(--font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  opacity: 0;
}
@media (max-width: 900px) { .blueprint { display: none; } }
