/* Page styles: / (home). Owned by this page's agent. Shared styles live in /assets/css/site.css. */

/* ------------------------------------------------------------- the scene
   One fixed canvas behind all seven beats. The hairline grid is CSS, so the
   page still has its background with JavaScript off; home.js lights the cells. */

.home-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: var(--home-cell, 28px) var(--home-cell, 28px);
  background-position: var(--home-ox, 0px) 0;
}

/* --------------------------------------------------------------- beats */

.home-beat {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 140vh;
  min-height: 140svh;
  padding-block: 12vh;
}
.home-beat > .wrap { display: flex; }
.home-beat__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(16px, 2.6vh, 28px);
  width: 100%;
  max-width: 35rem;
  min-width: 0;
  will-change: opacity;
}
.home-beat__inner--wide { max-width: 40rem; }
.home-beat--right > .wrap { justify-content: flex-end; }
.home-beat--center > .wrap { justify-content: center; }
.home-beat--center .home-beat__inner { align-items: center; max-width: 54rem; text-align: center; }
.home-beat--center .btns { justify-content: center; }
.home-beat .lead { color: var(--muted); }
.home-beat .btn--solid .plus { color: inherit; }

.home-h { font-size: clamp(1.875rem, 3.2vw + 0.7rem, 3.5rem); line-height: 1.04; }
.home-h--xl { font-size: clamp(2rem, 4.6vw + 0.6rem, 4.75rem); line-height: 1; max-width: 13em; }

/* Beat 1: hero */
.home-hero { min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); padding-block: clamp(40px, 7vh, 88px) clamp(72px, 12vh, 120px); }
.home-hero .home-beat__inner { gap: clamp(18px, 3vh, 30px); }
.home-hero__logo { display: block; max-width: 100%; margin-bottom: clamp(4px, 1.5vh, 16px); }
.home-hero__title { font-size: clamp(1.75rem, 3.4vw + 0.6rem, 3.75rem); line-height: 1.04; max-width: 14em; }
.home-hero .lead { max-width: 34em; }

/* sits above the scene's signal row, which is three to four cells from the bottom */
.home-cue { position: absolute; left: 50%; bottom: 128px; width: 20px; height: 32px; margin-left: -10px; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.home-cue i { position: absolute; left: 50%; top: 6px; width: 4px; height: 6px; margin-left: -2px; background: var(--accent); animation: home-cue 1.8s steps(6) infinite; }
@keyframes home-cue { 0% { transform: none; opacity: 1; } 70%, 100% { transform: translateY(12px); opacity: 0; } }
@media (max-height: 760px), (max-width: 900px) { .home-cue { display: none; } }

/* Beat 2: the windows the work sits in today */
.home-windows,
.home-jobs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.home-windows li {
  position: relative;
  padding: 7px 10px 7px 24px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--panel-line-strong);
  border-radius: var(--radius);
}
.home-windows li::before { content: ''; position: absolute; left: 10px; top: 50%; width: 6px; height: 6px; margin-top: -3px; background: var(--subtle); }

/* Beat 3: the answer line */
.home-answer { font-family: var(--font-display); font-size: clamp(1.25rem, 1.8vw + 0.6rem, 2.25rem); line-height: 1.05; color: var(--accent); }

/* Beat 4: station{+} */
.home-product { display: block; margin-bottom: 0.18em; font-size: 1.5em; line-height: 0.95; text-transform: lowercase; }
.home-jobs li {
  padding: 7px 12px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--panel-line-strong);
  border-top-color: var(--accent-dim);
  border-radius: var(--radius);
}

/* Beat 5: the shelf */
.home-shelf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); width: 100%; margin: 0; padding: 0; list-style: none; }
.home-shelf li { min-width: 0; }
.home-tool {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  transition: border-color 0.12s ease, background 0.12s ease;
}
a.home-tool:hover,
a.home-tool:focus-visible { background: var(--panel-raised); border-color: var(--accent-dim); }
.home-tool__ico { display: grid; place-items: center; flex: none; width: 36px; height: 36px; color: var(--text); background: var(--panel-black); border: 1px solid var(--panel-line-strong); border-radius: var(--radius); }
.home-tool__ico .ico,
.home-tool__ico svg { width: 24px; height: 24px; }
.home-tool__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.home-tool__name { display: block; font-family: var(--font-display); font-size: 0.9375rem; line-height: 1.15; }
.home-tool__ext { display: inline-block; width: 10px; height: 10px; margin-left: 4px; color: var(--subtle); }
.home-tool__ext svg { width: 100%; height: 100%; }
.home-tool__tag { font-size: 0.8125rem; line-height: 1.35; color: var(--muted); }
.home-tool--static .home-tool__name { color: var(--muted); }

/* Beat 6: one statistic, still to be supplied */
.home-stat {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  width: 100%;
  margin-top: clamp(14px, 2vh, 22px);
  padding: clamp(16px, 2.4vw, 24px);
  background: var(--panel);
  border-top: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.home-stat__v { color: var(--subtle); font-size: clamp(3.25rem, 7vw, 6rem); }
.home-stat__unit { font-size: 0.5em; margin-left: 0.06em; }
.home-stat__l { font-size: 0.9375rem; line-height: 1.5; color: var(--muted); }

/* Beat 7: proof row and the closing form */
.home-close { min-height: 120vh; min-height: 120svh; padding-bottom: 16vh; }
.home-proof { display: flex; flex-direction: column; align-items: center; gap: 22px; width: 100%; margin-bottom: clamp(24px, 6vh, 64px); }
.home-logos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); width: 100%; max-width: 44rem; margin: 0; padding: 0; list-style: none; }
.home-logos li {
  display: grid;
  place-items: center;
  min-height: 56px;
  padding: 8px;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--subtle);
  background: var(--panel);
  border: 1px dashed var(--panel-line-strong);
  border-radius: var(--radius);
}
.home-close .request-form { margin-top: 6px; }
.home-close .request-form__status { text-align: center; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 900px) {
  .home-beat { min-height: 120vh; min-height: 120svh; }
  .home-hero { min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); }
  .home-beat--right > .wrap { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .home-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-stat { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .home-shelf { grid-template-columns: minmax(0, 1fr); }
  .home-hero .btns { flex-direction: column; align-items: stretch; width: 100%; }
  .home-hero .btn { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .home-cue i { animation: none; }
}
