/* Line model story: sticky stage + scrolling steps. Shared by the Next sites and static ArcDelta. */
.line-story { position: relative; isolation: isolate; }
.line-story-stage {
  position: sticky;
  top: 0;
  z-index: 0;
  height: 100svh;
  overflow: hidden;
  pointer-events: none;
}
.line-story-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* The model is the centre of the page: a soft vignette pulls the eye in and lets edges fall into the ink. */
.line-story-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 72% 70% at 50% 50%, transparent 52%, rgb(8 9 12 / 55%) 82%, var(--video-ink, #08090c) 100%);
  pointer-events: none;
}
.line-story-labels { position: absolute; inset: 0; z-index: 1; }
.line-model-label {
  position: absolute;
  left: 0;
  top: 0;
  margin: -0.75rem 0 0 0.6rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 999px;
  color: rgb(230 235 245 / 92%);
  background: rgb(10 12 18 / 70%);
  backdrop-filter: blur(6px);
  font-size: 0.75rem;
  font-weight: 550;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: opacity 160ms linear, border-color 160ms ease, color 160ms ease;
  will-change: transform, opacity;
}
.line-model-label.is-link { pointer-events: auto; cursor: pointer; text-decoration: none; }
.line-model-label.is-link::after { content: " ↗"; color: var(--video-accent-text, #a1b6f2); }
.line-model-label.is-link:hover, .line-model-label.is-link:focus-visible { border-color: var(--video-accent-text, #a1b6f2); color: #fff; }
.line-story-steps { position: relative; z-index: 1; margin-top: -100svh; pointer-events: none; }
.line-story-step {
  display: flex;
  align-items: center;
  scroll-margin-top: 5rem;
  min-height: 92svh;
  width: 100%;
  max-width: 1600px;
  margin-inline: auto;
  padding-inline: var(--video-gutter, clamp(1.25rem, 6.5vw, 7.5rem));
}
.line-story-step > * { pointer-events: auto; }
.line-story-step.is-right { justify-content: flex-end; }
/* Hero copy sits low on the left, under the model rather than beside it. */
.line-story-hero { min-height: 100svh; align-items: flex-end; padding-top: 4rem; padding-bottom: clamp(3rem, 9svh, 6.5rem); }
/* A local, edgeless shade behind each text block keeps it readable over the lines. */
.line-story-card, .line-story-hero > * { position: relative; isolation: isolate; }
.line-story-card::before, .line-story-hero > *::before {
  content: "";
  position: absolute;
  inset: -3.5rem -4.5rem;
  z-index: -1;
  background: radial-gradient(closest-side, rgb(8 9 12 / 82%), rgb(8 9 12 / 55%) 55%, transparent);
  pointer-events: none;
}
.line-story-card { max-width: 25rem; opacity: 0.28; transform: translateY(14px); transition: opacity 420ms ease, transform 520ms cubic-bezier(.2,.7,.2,1); }
.line-story-step.is-active .line-story-card { opacity: 1; transform: none; }
.line-story-kicker { color: var(--video-accent-text, #a1b6f2); font-size: 0.75rem; font-weight: 550; letter-spacing: 0.09em; text-transform: uppercase; }
.line-story-card h2 { margin-top: 0.7rem; font-size: clamp(1.8rem, 2.9vw, 2.6rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.04; text-wrap: balance; }
.line-story-body { margin-top: 1rem; color: var(--video-muted, #a7adb8); font-size: 1rem; line-height: 1.6; max-width: 40ch; }
.line-story-static .line-story-stage { display: none; }
.line-story-static .line-story-steps { margin-top: 0; min-height: 0; }
.line-story-static .line-story-step { min-height: 0; padding-block: 4rem; }
.line-story-static .line-story-card { opacity: 1; transform: none; }
@media (max-width: 759px) {
  .line-story-stage::after { background: linear-gradient(180deg, var(--video-ink, #08090c) 0%, rgb(8 9 12 / 80%) 34%, transparent 56%); }
  .line-story-step, .line-story-step.is-right { align-items: flex-start; justify-content: flex-start; padding-top: 6.5rem; min-height: 100svh; }
  .line-story-hero { padding-top: 7rem; padding-bottom: 0; }
  .line-story-card::before, .line-story-hero > *::before { inset: -2rem -1.5rem; }
  .line-model-label { font-size: 0.6875rem; }
}
@media (prefers-reduced-motion: reduce) {
  .line-story-card { transition: none; opacity: 1; transform: none; }
}
.line-story-hero-copy { overflow: visible; padding-block: 0; max-width: 40rem; }
.line-story-hero-copy .product-lead { max-width: 44ch; }
.home-fields { margin-top: 1.75rem; display: grid; gap: 0; border-top: 1px solid rgb(255 255 255 / 10%); }
.home-fields li { display: grid; grid-template-columns: 2.25rem 8.5rem 1fr; align-items: baseline; gap: 0.5rem; padding: 0.8rem 0; border-bottom: 1px solid rgb(255 255 255 / 10%); }
.home-fields span { font-family: ui-monospace, monospace; font-size: 11px; letter-spacing: 0.16em; color: rgb(255 255 255 / 55%); }
.home-fields b { font-weight: 500; font-size: 1.05rem; }
.home-fields em { font-style: normal; color: var(--video-muted, #a7adb8); font-size: 0.9rem; }
@media (max-width: 759px) { .home-fields li { grid-template-columns: 2rem 1fr; } .home-fields em { grid-column: 2; } }
/* Longer story: about 1.15 screens per model state; the text steps spread evenly across it. */
.line-story-steps { display: flex; flex-direction: column; justify-content: space-between; min-height: calc(var(--line-states, 2) * 115svh); }
.home-products { margin-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / 10%); }
.home-products a { display: grid; grid-template-columns: 2.25rem 1fr auto; align-items: baseline; gap: 0.15rem 0.5rem; padding: 0.75rem 0; border-bottom: 1px solid rgb(255 255 255 / 10%); color: inherit; text-decoration: none; }
.home-products span { font-family: ui-monospace, monospace; font-size: 11px; letter-spacing: 0.16em; color: rgb(255 255 255 / 55%); }
.home-products b { font-weight: 500; font-size: 1.05rem; transition: color 0.2s ease; }
.home-products em { grid-column: 2; font-style: normal; font-size: 0.875rem; color: var(--video-muted, #a7adb8); }
.home-products a > :last-child { grid-row: 1; grid-column: 3; opacity: 0.6; }
.home-products a:hover b, .home-products a:focus-visible b { color: var(--video-accent-text, #a1b6f2); }
.home-stats { margin-top: 1.5rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid rgb(255 255 255 / 10%); }
.home-stats div { display: flex; flex-direction: column-reverse; gap: 0.35rem; padding: 1rem 0; border-bottom: 1px solid rgb(255 255 255 / 10%); }
.home-stats dd { margin: 0; font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.home-stats dt { font-family: ui-monospace, monospace; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: rgb(255 255 255 / 60%); }
.home-principles li { grid-template-columns: 2.25rem 1fr; }
