/* Home page: a fixed three.js scene behind scroll-driven "acts", then a solid panel for the details. */
.home { background: #0e0f11; color: #F1F2F4; }
.home a { color: #FFFFFF; }
#scene { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; z-index: 0; transition: opacity .4s linear; }
.home .top { position: fixed; top: 0; left: 0; right: 0; z-index: 5; padding: 18px 24px; max-width: none;
  background: linear-gradient(#0e0f11 30%, rgba(14,15,17,0)); }
.home .brand { color: #F1F2F4; }
.home .top nav a { color: #A3A8AF; }
.home .top nav a:hover { color: #fff; }
.home .top .nav-dl { color: #0e0f11; background: #FFFFFF; padding: 8px 16px; border-radius: 999px; font-weight: 700; }
.home .top .nav-dl:hover { color: #0e0f11; background: #E6E8EB; }
@media (max-width: 640px) { .home .top nav { display: flex; } .home .top nav a:not(.nav-dl) { display: none; } }

.acts { position: relative; z-index: 2; }
.act { position: relative; }
.act:last-child { min-height: 100vh; }
.act { min-height: 112vh; display: flex; align-items: center; padding: 120px 24px 80px; max-width: 1200px; margin: 0 auto; }
.act:first-child { min-height: 100vh; }
.act-copy { max-width: 520px; }
.act h1, .act h2 { color: #FFFFFF; font-weight: 800; letter-spacing: -0.045em; margin: 0 0 22px; max-width: 11ch; }
.act h1 { font-size: clamp(46px, 6.2vw, 92px); line-height: 0.96; }
.act h2 { font-size: clamp(38px, 5vw, 72px); line-height: 0.98; }
.act p { font-size: 20px; color: #A3A8AF; max-width: 32ch; margin: 0 0 30px; }
.act .btn { background: #FFFFFF; color: #0e0f11; }
.act .btn:hover { background: #E6E8EB; }
.act .btn-quiet { background: transparent; color: #FFFFFF; box-shadow: inset 0 0 0 1px #3A3D42; }
.act .btn-quiet:hover { background: rgba(255,255,255,.08); }
.act .cta { margin-bottom: 22px; gap: 12px 14px; }
.act .fine { color: #7D838B; font-size: 15px; margin: 0; max-width: 40ch; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #FFFFFF; background: #2A2C30; padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; font-weight: 600; }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, #4ADE80); }
[data-act="1"] .kicker { --dot: #60A5FA; } [data-act="2"] .kicker { --dot: #FB923C; }
.scroll-hint { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); color: #7D838B; font-size: 14px; }
@media (prefers-reduced-motion: no-preference) { .scroll-hint { animation: bob 2.4s ease-in-out infinite; } @keyframes bob { 50% { transform: translate(-50%, 6px); } } }

/* phones: copy on top, scene below it */
@media (max-width: 820px) {
  .act { align-items: flex-start; padding-top: 96px; min-height: 140vh; }
  .act-copy { background: linear-gradient(rgba(14,15,17,.92) 70%, rgba(14,15,17,0)); padding-bottom: 28px; margin: 0 -24px; padding-left: 24px; padding-right: 24px; }
  .act p { font-size: 18px; }
}

/* no WebGL: keep a calm backdrop */
.no-webgl #scene { display: none; }
.no-webgl .acts { background: radial-gradient(1200px 600px at 80% 30%, #1F2023, #0e0f11 60%); }

/* the solid part */
.solid { position: relative; z-index: 3; background: var(--paper); color: var(--ink); border-radius: 36px 36px 0 0; }
.solid a { color: var(--ink); }
.solid section:first-child { border-top: 0; }

/* header over the grey part: same ground as the page */
.home .top { transition: background-color .2s ease; }
.home.on-solid .top { background: var(--paper); box-shadow: 0 1px 0 var(--line); }
.home.on-solid .brand { color: var(--ink); }
.home.on-solid .top nav a { color: var(--ink-soft); }
.home.on-solid .top nav a:hover { color: var(--ink); }
.home.on-solid .top .nav-dl { background: var(--ink); color: var(--paper); }
.home.on-solid .top .nav-dl:hover { background: var(--leaf-deep); color: var(--paper); }
.solid .btn-light { color: #111214; }
.solid .btn-ghost { color: #FFFFFF; }
.solid .foot-links a { color: var(--ink-soft); }
.solid .foot-links a:hover { color: var(--ink); }
