/* Scatterbox — site-specific styles (layered on shared/site.css) */

:root {
  --beam: #EC3013;   /* the app's beam + icon red */
  --board: var(--black-2);
  --atom: var(--text);
}

/* ---------- Board illustrations ---------- */

.board { display: block; width: 100%; height: auto; }
.board__bg { fill: var(--board); }
.board__lines { stroke: var(--text); stroke-width: 2; opacity: 0.16; }
.board__frame { fill: none; stroke: var(--text); }
.board__atom { fill: var(--atom); }
.beam { fill: none; stroke: var(--beam); stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 90px);
  min-height: min(calc(100svh - 62px), 900px);
  padding-block: clamp(60px, 9vw, 110px);
}
.hero__title { font-size: clamp(44px, 5vw, 68px); font-weight: 900; }
.hero__title em { font-style: normal; color: var(--lilac); }
.hero__lede { max-width: 540px; margin: 28px 0 36px; font-size: clamp(18px, 2vw, 21px); color: var(--text-muted); }
.hero__text > * { opacity: 0; animation: fade-up 1s var(--ease-out) forwards; }
.hero__text > :nth-child(2) { animation-delay: 0.1s; }
.hero__text > :nth-child(3) { animation-delay: 0.2s; }
.hero__visual {
  opacity: 0;
  animation: fade-up 1.1s var(--ease-out) 0.25s forwards;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 120px -30px rgba(217, 184, 255, 0.35), 0 40px 80px -30px rgba(0, 0, 0, 0.9);
}

/* Beams travel along their paths, then loop */
.hero .beam { stroke-width: 16; stroke-dasharray: 120 1000; stroke-dashoffset: 120; animation: travel 3.2s linear infinite; }
.hero .beam--2 { animation-delay: 1.1s; }
.hero .beam--3 { animation-delay: 2.1s; }
@keyframes travel { to { stroke-dashoffset: -760; } }

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero__title { font-size: clamp(40px, 10vw, 68px); }
  .hero__visual { max-width: 460px; }
}

/* ---------- The four results ---------- */

.result .board { border-radius: 16px; margin-bottom: 22px; }
.result .beam { stroke-width: 8; }

/* Beams draw in when a result card scrolls into view */
.js .result .beam { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.9s var(--ease-out); }
.js .result.is-visible .beam { stroke-dashoffset: 0; transition-delay: calc(var(--i, 0) * 90ms + 350ms); }
.js .result.is-visible .beam--back { transition-delay: calc(var(--i, 0) * 90ms + 1100ms); }
