/* Scroll Story Kit core styles: the progress engine's CSS half, the shared section frame and the house type.
   Link after sk-tokens.css and before any section CSS.

   How motion is switched on:
   - core/sk-scroll.js adds .sk-on to <html> when motion is allowed (not prefers-reduced-motion) and JS runs.
   - Every section writes its motion rules under :root.sk-on, so with JS off or reduced motion the section
     shows its static layout: every word readable, nothing pinned, nothing moving.
   - Where the browser has native scroll driven animations, .sk-native is added too and the --sk-p
     progress value is driven by CSS (animation-timeline: view()). Elsewhere .sk-js is added and the
     script writes --sk-p from IntersectionObserver plus requestAnimationFrame. Section CSS only ever reads --sk-p. */

@property --sk-p { syntax: "<number>"; inherits: true; initial-value: 0; }
@keyframes sk-p { from { --sk-p: 0; } to { --sk-p: 1; } }

@supports (animation-timeline: view()) {
  :root.sk-on.sk-native [data-sk] { animation: sk-p linear both; animation-timeline: view(); animation-range: cover; }
  :root.sk-on.sk-native [data-sk="contain"] { animation-range: contain; }
  :root.sk-on.sk-native [data-sk="entry"] { animation-range: entry; }
  :root.sk-on.sk-native [data-sk="exit"] { animation-range: exit; }
}
@media (prefers-reduced-motion: reduce) {
  :root.sk-on [data-sk] { animation: none !important; }
}

/* House frame for a section */
.sk-section {
  position: relative;
  padding: var(--sk-pad) var(--sk-gutter);
  background: var(--sk-paper);
  color: var(--sk-ink);
  font-family: var(--sk-font);
  font-size: var(--sk-size-body);
  line-height: 1.55;
  overflow-x: clip; /* clip, never hidden: hidden would make a scroll container and break view() timelines */
}
.sk-section *, .sk-section *::before, .sk-section *::after { box-sizing: border-box; }
.sk-wrap { max-width: var(--sk-max); margin: 0 auto; }
.sk-kicker { margin: 0 0 14px; font-size: var(--sk-size-kicker); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sk-accent-text); }
.sk-h1, .sk-h2, .sk-h3 { margin: 0; font-family: var(--sk-font-display); font-weight: var(--sk-weight-display); letter-spacing: var(--sk-track-display); line-height: 1.02; text-wrap: balance; }
.sk-h1 { font-size: var(--sk-size-hero); }
.sk-h2 { font-size: var(--sk-size-h2); line-height: 1.05; }
.sk-h3 { font-size: var(--sk-size-h3); letter-spacing: -0.015em; line-height: 1.2; }
.sk-lead { margin: 18px 0 0; max-width: 58ch; font-size: var(--sk-size-lead); line-height: 1.5; color: var(--sk-ink-2); text-wrap: pretty; }
.sk-text { margin: 10px 0 0; max-width: 60ch; color: var(--sk-ink-2); text-wrap: pretty; }
.sk-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Buttons and links used by several sections */
.sk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 0;
  background: var(--sk-ink); color: var(--sk-paper); font: 700 1rem/1.1 var(--sk-font); text-decoration: none; cursor: pointer;
}
.sk-btn--accent { background: var(--sk-accent); color: var(--sk-on-accent); }
.sk-btn--ghost { background: transparent; color: var(--sk-ink); box-shadow: inset 0 0 0 2px var(--sk-line-strong); }
.sk-link { color: var(--sk-accent-text); font-weight: 700; text-underline-offset: 3px; }
.sk-section :focus-visible { outline: 3px solid var(--sk-focus); outline-offset: 3px; border-radius: 6px; }
.sk-btn:focus-visible { border-radius: 999px; }

/* Neutral placeholder art shared by sections: a plain screen card and skeleton lines (no device model, no marks) */
.sk-screen {
  position: relative; aspect-ratio: 9 / 18; width: min(300px, 70vw);
  border-radius: 34px; padding: 12px; background: var(--sk-ink);
  box-shadow: var(--sk-shadow);
}
.sk-screen > .sk-screen-in { position: relative; height: 100%; border-radius: 24px; overflow: clip; background: var(--sk-surface); }
.sk-bars { display: grid; gap: 8px; }
.sk-bars > i { display: block; height: 10px; border-radius: 6px; background: var(--sk-sunk); }
.sk-bars > i:nth-child(3n + 2) { width: 78%; }
.sk-bars > i:nth-child(3n) { width: 56%; }
