.hero { position: relative; overflow: hidden; }
.hero-bg { position: absolute; left: 0; top: 0; width: 100%; height: 780px; z-index: 0; pointer-events: none; mask-image: linear-gradient(#000 70%, transparent); }
.hero .wrap { position: relative; z-index: 1; }
.demo { transform-style: preserve-3d; will-change: transform; background: var(--n2); }

.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80px circle at var(--mx, -99px) var(--my, -99px), currentColor, transparent 72%); -webkit-mask: radial-gradient(circle, #000 1px, transparent 1.3px) 0 0/4px 4px; mask: radial-gradient(circle, #000 1px, transparent 1.3px) 0 0/4px 4px; opacity: 0; transition: opacity .25s; }
.btn:hover::before { opacity: .5; }
.btn:active { transform: scale(.97); }
.card, .plan, .quote, .repo, .products > div, .apps li, .templates li { position: relative; }
.card::after, .cell::after, .plan::after, .quote::after, .repo::after, .products > div::after, .apps li::after, .templates li::after { content: ""; position: absolute; inset: -1px; pointer-events: none; border: 1px solid transparent; background: radial-gradient(240px circle at var(--mx, -999px) var(--my, -999px), var(--o8), transparent 70%) border-box; -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0); opacity: 0; transition: opacity .3s; z-index: 2; }
.card:hover::after, .cell:hover::after, .plan:hover::after, .quote:hover::after, .repo:hover::after, .products > div:hover::after, .apps li:hover::after, .templates li:hover::after { opacity: 1; }
.apps li::before { content: ""; position: absolute; left: 50%; bottom: 12px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--o8); opacity: .0; transition: opacity .25s, transform .25s; transform: scale(.4); }
.apps li:hover::before { opacity: 1; transform: none; }
.apps li svg { transition: transform .3s cubic-bezier(.2,1.5,.3,1); }
.apps li:hover svg { transform: translateY(-2px) scale(1.12); color: var(--o8); }
.card .fig { transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.card:hover .fig { transform: translateY(-3px); }

.pin { height: 240vh; }
.pin-inner { position: sticky; top: 64px; height: calc(100vh - 64px); display: flex; align-items: center; overflow: hidden; }
.pin-inner .wrap { width: 100%; }
.pin-inner .h2 { margin-bottom: 8px; }
@media (max-height: 780px) and (min-width: 1081px) {
  .iso { height: 470px; }
  .iso-stage { transform: translateY(70px) scale(.7) rotateX(58deg) rotateZ(-45deg); }
}

.px { display: block; flex: none; }
.s-apps .face, .s-friday .face, .s-cloud .face { transform-style: preserve-3d; }
.s-apps .tile { position: relative; background: var(--n3); border: 1px solid var(--n5); transition: transform .3s cubic-bezier(.2,1.4,.3,1), background .25s, border-color .25s, box-shadow .25s; }
.s-apps .tile::before { content: ""; position: absolute; left: 3px; right: 3px; top: 3px; height: 2px; background: var(--n5); }
.s-apps .tile.task::after { content: ""; position: absolute; width: 4px; height: 4px; left: calc(50% - 2px); top: calc(50% - 1px); background: var(--n9); transition: background .25s, box-shadow .25s; }
.s-apps .tile.busy { border-color: var(--n7); background: var(--n4); }
.s-apps .tile.busy::after { background: var(--o8); box-shadow: 0 0 8px var(--o8); }
.s-apps .tile.task:hover { transform: translateZ(22px); background: var(--o9); border-color: var(--o8); box-shadow: 0 0 24px color-mix(in srgb, var(--o8) 45%, transparent); }
.s-apps .tile.task:hover::before { background: rgba(0,0,0,.35); }
.s-apps .tile.task:hover::after { background: #fff; box-shadow: none; }
.s-friday .face { grid-template-rows: repeat(2, 1fr); }
.field { position: relative; border: 1px solid rgba(0,0,0,.28); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(0,0,0,.78); transition: transform .3s cubic-bezier(.2,1.4,.3,1), background .25s, box-shadow .25s; }
.field .px { width: 34px; height: 34px; fill: #000; }
.field.big { grid-column: span 2; flex-direction: row; gap: 14px; font: 700 28px var(--display); letter-spacing: .06em; color: #000; }
.field.big .px { width: 44px; height: 16px; }
.field:hover { transform: translateZ(14px); background: var(--o11); box-shadow: 0 0 0 1px #000, 0 0 30px color-mix(in srgb, var(--o11) 55%, transparent); }
.s-friday .side { background: var(--o6) repeating-linear-gradient(90deg, rgba(0,0,0,.5) 0 1px, transparent 1px 7px); }
.s-friday .side.r { background: var(--o6) repeating-linear-gradient(0deg, rgba(0,0,0,.5) 0 1px, transparent 1px 7px); }
.s-cloud .face { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px; background: var(--n2); }
.zone { position: relative; border: 1px solid var(--n6); background: repeating-conic-gradient(var(--n3) 0 25%, var(--n2) 0 50%) 0 0/16px 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--n9); transition: transform .3s cubic-bezier(.2,1.4,.3,1), border-color .25s, color .25s; }
.zone.z-cloud { background-size: 8px 8px; }
.zone .px { width: 30px; height: 30px; fill: var(--n10); transition: fill .25s; }
.zone:hover { transform: translateZ(10px); border-color: var(--o8); color: var(--n12); }
.zone:hover .px { fill: var(--o8); }
.iso-wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 2; }
.iso-wires path { fill: none; stroke: var(--n7); stroke-width: 1; stroke-dasharray: 3 5; animation: wire-flow 1.4s linear infinite; transition: stroke .25s; }
.iso-wires path.in { animation-direction: reverse; }
.iso-wires path.lit { stroke: var(--o8); animation-duration: .6s; }
.iso-wires circle { fill: var(--n7); transition: fill .25s; }
.iso-wires circle.lit { fill: var(--o8); }
@keyframes wire-flow { to { stroke-dashoffset: -16; } }
.sat { position: absolute; left: var(--x); top: var(--y); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 12px; transform: translate(-50%, -50%); }
.sat-chip { width: 40px; height: 40px; display: grid; place-items: center; background: var(--n2); border: 1px solid var(--n6); box-shadow: -5px 5px 0 var(--n4); transform: scaleY(.53) rotate(-45deg); transition: transform .35s cubic-bezier(.2,1.4,.3,1), background .25s, border-color .25s, box-shadow .25s; }
.sat-chip .px { width: 22px; height: 22px; fill: var(--n11); transition: fill .25s; }
.sat-lbl { font: 10px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--n8); white-space: nowrap; transition: color .25s; }
.sat-lbl em { font-style: normal; color: var(--n7); }
.sat:hover .sat-chip, .sat.lit .sat-chip { transform: translateY(-7px) scaleY(.53) rotate(-45deg); background: var(--o9); border-color: var(--o8); box-shadow: -5px 5px 0 var(--o5); }
.sat:hover .sat-chip .px, .sat.lit .sat-chip .px { fill: #000; }
.sat:hover .sat-lbl, .sat.lit .sat-lbl { color: var(--n12); }
.iso-tip { position: absolute; left: 0; top: 0; z-index: 6; pointer-events: none; font: 11px var(--mono); color: var(--n12); background: var(--n2); border: 1px solid var(--n6); padding: 6px 10px; white-space: nowrap; opacity: 0; transform: translate(-50%, calc(-100% + 6px)); transition: opacity .12s, transform .12s; }
.iso-tip.show { opacity: 1; transform: translate(-50%, -100%); }
.iso-tip b { color: var(--o8); font-weight: 400; }
.iso-tip::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 8px; height: 8px; margin-left: -4px; background: var(--n2); border-right: 1px solid var(--n6); border-bottom: 1px solid var(--n6); transform: rotate(45deg); }
#layers > li { position: relative; cursor: default; }
#layers > li::before { content: ""; position: absolute; left: -18px; top: 18px; bottom: 18px; width: 2px; background: var(--o8); transform: scaleY(0); transform-origin: top; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
#layers > li.hot::before { transform: scaleY(1); }
#layers > li.hot > .eyebrow { color: var(--o8); }
#layers > li.hot h4 { color: var(--n12); }
#layers > li:not(.hot) h4 { color: var(--n10); transition: color .25s; }
.mountain { margin-top: -1px; height: 240px; position: relative; overflow: hidden; }
.mountain canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.follower { position: fixed; left: 0; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--o8); box-shadow: 0 0 0 1.5px #fff; pointer-events: none; z-index: 1000; opacity: 0; transition: width .2s, height .2s, margin .2s, background .2s, box-shadow .2s, opacity .2s; }
.follower.live { opacity: 1; }
.follower.on { width: 34px; height: 34px; margin: -17px 0 0 -17px; background: color-mix(in srgb, var(--o8) 14%, transparent); box-shadow: inset 0 0 0 1.5px var(--o8), 0 0 0 1.5px rgba(255,255,255,.9); }
.follower.off { opacity: 0; }
@media (hover: hover) and (pointer: fine) { html.dot-cursor, html.dot-cursor * { cursor: none !important; } }

.game { --g: #0a8f65; position: relative; height: clamp(420px, 50vw, 720px); background: #f0ede8; color: #111; border-top: 1px solid #111; font-family: var(--mono); overflow: hidden; padding: 0; user-select: none; box-shadow: inset 0 34px 30px -30px rgba(0,0,0,.55); }
.game canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; cursor: none; }
.game[data-state="menu"] canvas, .game[data-state="dead"] canvas { cursor: default; }
.game-hud { position: absolute; inset: 14px 18px auto; display: flex; justify-content: space-between; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; pointer-events: none; opacity: 0; transition: opacity .3s; }
.game[data-state="play"] .game-hud, .game[data-state="dead"] .game-hud { opacity: 1; }
.g-hearts { font-size: 14px; letter-spacing: 4px; height: 20px; }
.g-wave { border-bottom: 2px solid #111; display: inline-block; padding-bottom: 3px; }
.g-heat { width: 90px; height: 4px; background: rgba(0,0,0,.15); margin-top: 8px; }
.g-heat i { display: block; height: 100%; width: 100%; background: #111; }
.g-heat.locked i { background: var(--g); }
.g-right { text-align: right; color: #666; }
.g-killed { font: 700 30px/1 var(--display); color: #111; margin: 4px 0; }
.g-mute { position: absolute; right: 18px; bottom: 14px; font: 11px var(--mono); text-transform: uppercase; color: #555; border-bottom: 1px dashed #888; z-index: 3; }
.game-menu { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; padding: 0 24px; background: radial-gradient(closest-side, rgba(240,237,232,.9), rgba(240,237,232,0) 75%) center/min(760px, 85%) 60% no-repeat; transition: opacity .3s; }
.game[data-state="play"] .game-menu { opacity: 0; pointer-events: none; }
.game-title { font: 300 clamp(1.8rem, 4.4vw, 3.4rem)/1 var(--display); text-transform: uppercase; letter-spacing: -.01em; color: #111; }
.game-title strong { display: block; font-weight: 700; }
.game-stats { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #444; min-height: 0; }
.game-stats:empty { display: none; }
.game-start { font: 700 1.4rem/1 var(--display); text-transform: uppercase; letter-spacing: .02em; color: #111; padding: 14px 32px; transition: transform .15s; background: linear-gradient(#111,#111) 0 0/12px 2px, linear-gradient(#111,#111) 0 0/2px 12px, linear-gradient(#111,#111) 100% 0/12px 2px, linear-gradient(#111,#111) 100% 0/2px 12px, linear-gradient(#111,#111) 0 100%/12px 2px, linear-gradient(#111,#111) 0 100%/2px 12px, linear-gradient(#111,#111) 100% 100%/12px 2px, linear-gradient(#111,#111) 100% 100%/2px 12px; background-repeat: no-repeat; }
.game-start:hover { transform: scale(1.04); color: var(--g); }
.game-start:active { transform: scale(.97); }
.game-help { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #666; }

@media (max-width: 1080px) {
  .pin { height: auto; }
  .pin-inner { position: static; height: auto; overflow: visible; display: block; }
}
@media (hover: none), (pointer: coarse) { .follower { display: none; } }
@media (max-width: 720px) {
  .hero-bg { height: 1100px; opacity: .32; }
  #demo-status { display: none; }
  .sat, .iso-wires, .iso-tip { display: none; }
  .mountain { height: 150px; }
  .game-help { display: none; }
}
