/* Hero: wordmark and actions on the left, the nine-app animation on the right. */
.hero.hero9 { display: grid; place-items: center; text-align: left; min-height: max(calc(100svh - var(--nav-h)), 680px); padding: 56px 0; }
.orb-glow { position: absolute; right: -10%; top: 50%; width: min(1000px, 100vw); height: 760px; translate: 0 -50%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(61, 169, 240, .17), rgba(255, 122, 26, .1) 58%, transparent 76%); filter: blur(40px); animation: orbbreath 9s ease-in-out infinite alternate; }
@keyframes orbbreath { to { opacity: .7; transform: scale(1.07); } }

.h9 { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.h9-copy h1 { margin: 0; }
.h9-copy .s9 { width: min(520px, 100%); animation: h9wipe 1.3s cubic-bezier(.7, 0, .2, 1) .15s both; }
@keyframes h9wipe { from { clip-path: inset(-10% 100% -10% 0); } to { clip-path: inset(-10% 0 -10% 0); } }
.hero9 .lead { margin: 28px 0 0; font-size: 18px; max-width: 44ch; }
.hero9 .hero-cta { justify-content: flex-start; }

/* stage */
.h9-stage { position: relative; width: min(560px, 100%); aspect-ratio: 1; justify-self: center; cursor: pointer; }
.h9-stage::before { content: ""; position: absolute; inset: 14%; border-radius: 50%; border: 1px solid color-mix(in srgb, #3da9f0 55%, transparent); opacity: 0; pointer-events: none; }
.h9-stage.pulse::before { animation: h9pulse 1s cubic-bezier(.2, .6, .3, 1); }
@keyframes h9pulse { from { opacity: .9; transform: scale(.35); } to { opacity: 0; transform: scale(1.35); } }
.h9-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.h9-line path { fill: none; stroke: #3da9f0; stroke-width: .022; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; filter: drop-shadow(0 0 .04px #3da9f0); opacity: 0; }
.h9-a { position: absolute; left: 0; top: 0; width: 12.5%; aspect-ratio: 1; border-radius: 26%; will-change: transform; transform: scale(0); box-shadow: 0 22px 44px -16px var(--c2); transition: filter .25s, box-shadow .25s; }
.h9-a .ic { border-radius: 22%; }
.h9-stage.held .h9-a { filter: saturate(.45) brightness(.62); }
.h9-stage.held .h9-a.on { filter: none; z-index: 2; box-shadow: 0 0 56px -4px var(--c2); }
.h9-a:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
.h9-cap { position: absolute; left: 0; right: 0; bottom: -18px; margin: 0; text-align: center; font: 500 12px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); pointer-events: none; }
.h9-cap b { color: var(--text); font-weight: 600; }

/* wordmark artwork, used everywhere the brand name is the logo */
.s9 { display: block; aspect-ratio: 600 / 168; background: url(assets/logo.svg) left center / contain no-repeat; }
[data-theme="light"] .s9 { background-image: url(assets/logo-dark.svg); }
.mega .mega-w { width: min(900px, 88%); margin-inline: auto; opacity: .1; -webkit-mask-image: linear-gradient(180deg, #000 35%, transparent 100%); mask-image: linear-gradient(180deg, #000 35%, transparent 100%); }
[data-theme="light"] .mega .mega-w { opacity: .09; }

/* page progress: flat ticks like the hairline grid, with the section name running down underneath */
.rail, .rail.lg { right: 20px; gap: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; justify-items: end; }
.rail.lg::before, .rail.lg::after { display: none; }
.rail button, .rail button:hover, .rail button.cur { position: static; width: 40px; height: 13px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; transform: none; display: flex; justify-content: flex-end; align-items: center; }
.rail button::after { content: ""; width: 12px; height: 2px; background: var(--line-strong); transition: width .35s cubic-bezier(.3, 1.6, .5, 1), background .25s; }
.rail button.on::after { background: var(--muted); }
.rail button:hover::after { width: 24px; background: var(--text); }
.rail button.cur::after { width: 36px; background: var(--accent); }
.rail button::before { content: attr(data-label); position: absolute; right: 0; top: calc(100% + 18px); translate: none; writing-mode: vertical-rl; font: 600 11px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); white-space: nowrap; opacity: 0; pointer-events: none; }
.rail button.cur::before { opacity: 1; color: var(--text); }
.rail:hover button.cur:not(:hover)::before { opacity: 0; }
.rail button:hover::before { opacity: 1; }

@media (max-width: 1100px) { .rail, .rail.lg { display: none; } }

@media (max-width: 900px) {
  .h9 { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 40px; }
  .h9-copy { display: grid; justify-items: center; }
  .h9-copy h1 { width: 100%; display: grid; justify-items: center; }
  .h9-copy .s9 { width: min(420px, 86vw); background-position: center; }
  .hero9 .lead { margin-inline: auto; }
  .hero9 .hero-cta { justify-content: center; }
  .h9-stage { width: min(440px, 100%); }
}
@media (prefers-reduced-motion: reduce) { .orb-glow, .h9-copy .s9 { animation: none; } }
