/* Home page. */

/* ------------------------------------------------------------------ hero stage */
.stage { position: relative; height: 620vh; }
.stage-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.stage-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.layer { position: absolute; inset: 0; pointer-events: none; }
.layer a, .layer button { pointer-events: auto; }
.core-mark { position: absolute; left: 50%; top: 48%; transform: translate(-50%, -50%); font-weight: 700; font-size: 22px; letter-spacing: -0.04em; line-height: 1; display: flex; align-items: flex-start; }
.core-mark i { font-style: normal; font-size: 10px; color: var(--blue); margin-left: 1px; margin-top: -2px; letter-spacing: 0; }
.hero-bottom { position: absolute; left: 0; right: 0; bottom: 36px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.hero-stats { display: flex; gap: clamp(28px, 6vw, 92px); margin: 0; }
.hero-stats div { min-width: 0; }
.hero-stats dt { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.hero-stats dd { margin: 0; font-size: clamp(22px, 2.3vw, 31px); font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.hero-stats .cur { color: var(--faint); font-weight: 500; margin-right: 1px; }
.scroll-cue { position: absolute; left: 50%; bottom: 120px; width: 1px; height: 44px; background: linear-gradient(var(--line), transparent); transform: translateX(-50%); }
.scroll-cue span { position: absolute; left: -2px; top: 0; width: 5px; height: 5px; background: var(--blue); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(40px); opacity: 0; } }

.layer-runs { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 34px; padding: 0 var(--gutter); visibility: hidden; }
.layer-runs .eyebrow { letter-spacing: .08em; text-transform: none; font-family: var(--sans); font-size: 15px; }
.runs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(160px, 1fr)); gap: 40px 72px; max-width: 860px; }
.runs li { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: clamp(18px, 2vw, 26px); font-weight: 600; letter-spacing: -0.03em; transform: translateY(calc((1 - var(--v, 0)) * 14px)); }
.runs svg { width: 28px; height: 28px; color: var(--blue); flex: none; }
.runs-note { font-size: 13px; color: var(--muted); margin: 6px 0 0; }

.layer-boot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; visibility: hidden; padding-bottom: 12vh; }
.boot { font-size: 15px; color: var(--muted); margin: 0; letter-spacing: .02em; }
.cursor { width: 9px; height: 18px; background: var(--ink); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.layer-tag { display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 var(--gutter); visibility: hidden; }
.tag { font-size: clamp(26px, 3.4vw, 46px); line-height: 1.22; letter-spacing: -0.03em; margin: 0; display: grid; }
.tag .l2 { opacity: var(--l2, 0); transform: translateY(calc((1 - var(--l2, 0)) * 10px)); }

@media (max-width: 720px) {
  .stage { height: 520vh; }
  .hero-bottom { flex-direction: column; align-items: stretch; bottom: 24px; gap: 18px; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
  .hero-stats div:last-child { display: none; }
  .hero-bottom .pill { justify-content: center; }
  .runs { grid-template-columns: repeat(2, 1fr); gap: 22px 18px; }
  .runs li { font-size: 17px; justify-content: flex-start; }
  .runs svg { width: 22px; height: 22px; }
  .scroll-cue { display: none; }
}

/* ------------------------------------------------------------------ reads live from */
.reads { position: relative; z-index: 2; background: var(--bg); padding: 20px 0 80px; }
.reads-title { text-align: center; font-weight: 600; }
.reads-sub { text-align: center; color: var(--muted); margin: 14px auto 40px; max-width: 560px; font-size: 15px; }
.marquee { display: grid; gap: 14px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-row { display: flex; gap: 14px; width: max-content; animation: slide 90s linear infinite; }
.marquee-row.reverse { animation-direction: reverse; animation-duration: 110s; }
.marquee:hover .marquee-row { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.tick { display: flex; align-items: center; gap: 12px; height: 62px; padding: 0 18px 0 12px; border: 1px dashed var(--line); border-radius: 14px; background: var(--surface); transition: border-color .25s, box-shadow .25s; }
.tick:hover { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.tick img { width: 34px; height: 34px; border-radius: 9px; filter: grayscale(1) contrast(1.1); transition: filter .3s; background: var(--panel); }
.tick:hover img { filter: none; }
.tick b { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; display: block; }
.tick small { font-family: var(--mono); font-size: 11.5px; color: var(--muted); display: block; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ flow timeline */
.flow { padding: 110px 0 140px; background: var(--bg); position: relative; z-index: 2; }
.flow-head { text-align: center; display: grid; justify-items: center; gap: 18px; margin-bottom: 80px; }
.flow-head .soft { color: var(--faint); }
.flow-track { position: relative; display: grid; gap: 70px; padding-top: 10px; padding-bottom: 10px; }
.flow-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 0; border-left: 1px dashed var(--dash); }
.flow-fill { position: absolute; left: -1px; top: 0; width: 1px; height: 0; background: var(--ink); }
.flow-node { position: absolute; left: -6px; top: 0; width: 11px; height: 11px; background: var(--blue); box-shadow: 0 0 0 5px var(--blue-soft); }
.step { width: calc(50% - 36px); padding: 0; transition: box-shadow .4s; }
.step.right { justify-self: end; }
.step.left { justify-self: start; }
.step header { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px dashed var(--line); }
.step .num { font-family: var(--mono); font-size: 11px; font-weight: 600; width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 5px; }
.step h3 { margin: 0; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); transition: color .4s; }
.step .step-art { height: 0; overflow: hidden; transition: height .7s var(--ease); border-bottom: 1px dashed transparent; }
.step .step-art canvas { width: 100%; height: 280px; }
.step p { display: flex; align-items: center; gap: 12px; margin: 0; padding: 14px 16px; font-size: 14px; color: var(--ink-2); }
.step p svg { width: 26px; height: 26px; padding: 5px; border: 1px solid var(--line); border-radius: 5px; flex: none; color: var(--ink); }
.step.on .step-art { height: 280px; border-bottom-color: var(--line); }
.step.on h3 { color: var(--ink); }
.step.on .num { background: var(--blue); color: #fff; border-color: var(--blue); }
.step.on { box-shadow: 0 30px 80px var(--shadow); }
.flow-count { position: absolute; right: var(--gutter); bottom: -40px; font-size: 12px; color: var(--muted); }
@media (max-width: 820px) {
  .flow-line { left: 18px; }
  .step { width: calc(100% - 44px); justify-self: end !important; }
  .step .step-art canvas, .step.on .step-art { height: 220px; }
}

/* ------------------------------------------------------------------ compound */
.compound { position: relative; background: var(--bg); padding-top: 100px; z-index: 2; }
.compound-head { position: relative; z-index: 1; padding-bottom: 72px; }
.compound-panel { position: relative; z-index: 2; margin-left: 35.5%; background: var(--black); color: #fff; min-height: 120vh; padding: 120px 0 140px; }
.compound-inner { max-width: 640px; padding: 0 60px; display: grid; gap: 64px; }
.cp-item h3 { margin: 0 0 14px; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.cp-item b { display: block; font-weight: 600; color: #d9dbe2; margin-bottom: 8px; }
.cp-item p { margin: 0; color: #8d909b; font-size: 14.5px; line-height: 1.6; }
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
.cp-live { display: grid; grid-template-columns: auto 1fr 1fr 1fr; align-items: center; gap: 20px; padding: 18px 20px; border: 1px dashed var(--black-line); border-radius: 14px; }
.cp-live small { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #6c6f7a; }
.cp-live b { font-size: 15px; font-weight: 500; }
.cp-live .chip { background: rgba(31, 79, 255, .12); border-color: rgba(61, 107, 255, .4); color: #b9c9ff; }
@media (max-width: 900px) {
  .compound-panel { margin-left: 0; min-height: 0; padding: 72px 0 90px; }
  .compound-inner { padding: 0 var(--gutter); gap: 44px; }
  .compound-head { position: relative; top: 0; padding-bottom: 40px; }
  .cp-live { grid-template-columns: 1fr 1fr; }
}

/* ------------------------------------------------------------------ worlds */
.worlds { background: var(--black); color: #fff; padding: 120px 0 130px; position: relative; z-index: 2; }
.worlds-grid { display: grid; grid-template-columns: 1.15fr 1fr 0.72fr; grid-auto-rows: 64px; gap: 14px; }
.worlds-title { grid-column: 1 / 3; grid-row: 1 / 4; align-self: center; }
.world { position: relative; overflow: hidden; border: 1px solid var(--black-line); background: radial-gradient(120% 90% at 50% 30%, #11131a 0%, #07080b 70%); display: block; transition: border-color .3s; }
.world:hover { border-color: #3b4366; }
.world canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.world .w-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px 18px; background: linear-gradient(transparent, rgba(5, 5, 7, .88) 40%); }
.world h3 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.world .w-line { margin: 6px 0 0; font-size: 13px; color: #8d909b; max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); }
.world:hover .w-line, .world:focus-visible .w-line { max-height: 60px; }
.world .w-live { margin-top: 8px; font-family: var(--mono); font-size: 11px; color: #9fb4ff; letter-spacing: .04em; }
.world .w-syms { position: absolute; top: 14px; left: 16px; right: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.world .w-syms span { font-family: var(--mono); font-size: 10px; color: #7d808b; border: 1px solid #22252d; border-radius: 5px; padding: 2px 6px; background: rgba(5, 5, 7, .6); }
.world.a { grid-column: 1; grid-row: 4 / 9; }
.world.b { grid-column: 2; grid-row: 3 / 7; }
.world.c { grid-column: 3; grid-row: 1 / 5; }
.world.d { grid-column: 3; grid-row: 5 / 10; }
.world.e { grid-column: 2; grid-row: 7 / 11; }
.world.f { grid-column: 1; grid-row: 9 / 12; }
@media (max-width: 900px) {
  .worlds-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .worlds-title { grid-column: 1 / -1; grid-row: auto; margin-bottom: 24px; }
  .world { grid-column: auto !important; grid-row: auto !important; aspect-ratio: 4 / 5; }
  .world .w-line { max-height: 60px; }
}
@media (max-width: 520px) { .worlds-grid { grid-template-columns: 1fr; } .world { aspect-ratio: 4 / 3; } }

/* ------------------------------------------------------------------ cta */
.cta { padding: 150px 0 160px; text-align: center; background: var(--bg); position: relative; z-index: 2; }
.cta-title { font-size: clamp(32px, 4.6vw, 62px); line-height: 1.12; letter-spacing: -0.035em; font-weight: 400; margin: 0; }
.cta-title b { font-weight: 700; color: var(--blue); }
.cta-sub { font-size: clamp(17px, 1.6vw, 22px); color: var(--muted); margin: 18px 0 34px; }

/* ------------------------------------------------------------------ loop */
.loop { background: var(--black); color: #fff; padding: 90px 0 100px; position: relative; z-index: 2; }
.loop-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: stretch; }
.loop-left { display: flex; flex-direction: column; gap: 26px; }
.loop-left h2 { margin: 0; font-size: 30px; font-weight: 600; letter-spacing: -0.02em; }
.socials.dark a { color: #fff; }
.socials.dark a:hover { background: #15171e; color: #9db4ff; }
.loop-left .follow { margin-top: auto; align-self: flex-start; }
.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.note { display: grid; gap: 14px; }
.note-art { position: relative; aspect-ratio: 4 / 3.2; border: 1px solid var(--black-line); background: radial-gradient(100% 90% at 50% 40%, #12151d, #07080b); overflow: hidden; transition: border-color .3s; }
.note:hover .note-art { border-color: #3b4366; }
.note-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.note .date { position: absolute; right: 10px; top: 10px; background: #fff; color: #0a0a0b; border-radius: 999px; font-size: 11.5px; padding: 4px 10px; font-weight: 500; }
.note p { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.4; }
.note:hover p { color: #9db4ff; }
@media (max-width: 900px) {
  .loop-grid { grid-template-columns: 1fr; }
  .notes { grid-template-columns: 1fr; }
  .note-art { aspect-ratio: 16 / 9; }
}
