/* Base styles and shared components. Parent-owned; acts use these classes, they do not redefine them. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
b, strong { font-weight: 700; }

/* Acts */
.act { position: relative; background: var(--bg); color: var(--fg); }
.act__inner { position: relative; }
.act__pin { position: relative; min-height: 100vh; }
.wrap { width: min(var(--max), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.screen { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-block: clamp(72px, 10vh, 140px); }

/* Typography */
.h-display { font-family: var(--font-display); font-weight: 800; font-size: clamp(44px, 7vw, 112px); line-height: .98; letter-spacing: -.03em; }
.h-1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 4.5vw, 64px); line-height: 1.02; letter-spacing: -.025em; }
.h-2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 3vw, 40px); line-height: 1.1; letter-spacing: -.02em; }
.h-3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.25; letter-spacing: -.01em; }
.lead { font-size: clamp(18px, 1.6vw, 24px); line-height: 1.5; color: var(--fg-2); max-width: 36em; }
.body { font-size: clamp(15px, 1.15vw, 17px); color: var(--fg-2); max-width: 40em; }
.small { font-size: 13px; color: var(--mute); }
.kicker { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 12px; }
.kicker::before { content: ''; width: 28px; height: 2px; background: var(--accent); }
.accent { color: var(--accent); }
.mark { background: linear-gradient(transparent 60%, var(--yellow) 60%); padding: 0 .08em; }
[data-theme="dark"] .mark { background: linear-gradient(transparent 60%, rgba(251, 215, 4, .35) 60%); }

/* SplitText line masks */
.split__line { display: block; }
.split .split__line { will-change: transform; }

/* Components */
.card { background: var(--surface); border-radius: var(--radius); padding: 28px; }
.card--line { background: transparent; border: 1px solid var(--rule); }
.card--accent { background: var(--accent); color: var(--ink); }
[data-theme="dark"] .card--accent { color: var(--ink); }
.card--ink { background: var(--ink); color: var(--off); }
.card .h-3 { margin-bottom: 8px; }
.card .body { max-width: none; }

.pill { display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; border-radius: 6px; padding: 4px 9px; line-height: 1.2; }
.pill--orange { background: var(--orange); color: #fff; }
.pill--yellow { background: var(--yellow); color: var(--ink); }
.pill--ink { background: var(--ink); color: var(--off); }
.pill--line { border: 1px solid currentColor; }

.stat { display: flex; flex-direction: column; gap: 6px; }
.stat b { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 5.5vw, 84px); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 14px; color: var(--fg-2); max-width: 22em; }
.stat small { font-size: 12px; color: var(--mute); }

.frame { background: var(--ink-2); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .12); }
.frame__bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: var(--ink-3); }
.frame__bar span { width: 10px; height: 10px; border-radius: 50%; background: #4a4a4a; }
.frame__bar span:nth-child(1) { background: #ff5f57; }
.frame__bar span:nth-child(2) { background: #febc2e; }
.frame__bar span:nth-child(3) { background: #28c840; }
.frame__bar i { margin-left: 10px; flex: 1; font-style: normal; font-size: 11px; color: #9a9a96; background: #1a1a1a; border-radius: 6px; padding: 4px 10px; font-family: var(--font-body); }
.frame img { width: 100%; }
.frame figcaption { padding: 10px 14px; font-size: 12px; color: #9a9a96; background: var(--ink-2); }

.grid-2, .grid-3, .grid-4 { display: grid; gap: clamp(14px, 2vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.num { font-family: var(--font-display); font-weight: 800; color: var(--accent); font-size: 13px; letter-spacing: .08em; }
.rule { height: 1px; background: var(--rule); border: 0; }
.source { font-size: 11px; color: var(--mute); }

/* Reveal defaults (the engine animates; reduced motion keeps everything visible) */
.reveal { will-change: transform, opacity; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .split { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* Utilities */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; } .mt-4 { margin-top: 64px; }
.mb-1 { margin-bottom: 12px; } .mb-2 { margin-bottom: 24px; } .mb-3 { margin-bottom: 40px; }
.center { text-align: center; }
.row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
