@charset "UTF-8";

:root {
  color-scheme: dark;
  --bg: #080e10;
  --paper: #e4e9d9;
  --muted: #91a5a0;
  --mint: #74e5c5;
  --line: #273b37;
  --amber: #dab27b;
  --red: #dc8777;
  --sans: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; color: var(--paper); font-family: var(--sans); font-size: 16px; -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--mint); outline-offset: 6px; }
button[hidden], [hidden] { display: none !important; }
::selection { background: #74e5c5; color: #082322; }

.site-shell {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100svh;
  min-height: 650px;
  padding: 0 clamp(20px, 4vw, 68px);
  display: grid;
  grid-template-rows: 88px minmax(0, 1fr) 65px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 41%, #14272366 0, #080e1000 51%);
}
.site-shell::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .2;
  background-image: radial-gradient(#6b9781 .7px, transparent .8px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse at center, #000 12%, transparent 77%);
}
.site-shell::after {
  content: "";
  position: absolute;
  inset: 15px;
  z-index: -1;
  pointer-events: none;
  border: 1px solid #3d55451b;
  border-radius: 2px;
}
.masthead, .footer { display: flex; align-items: center; }
.masthead { gap: 32px; border-bottom: 1px solid #344a373f; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 21px; letter-spacing: .04em; font-weight: 600; white-space: nowrap; }
.brand img { width: 36px; height: 36px; }
.brand-dash { margin: 0 1px; font-weight: 400; }
.brand-period { color: var(--mint); }
.masthead-caption { font-family: var(--mono); font-size: 10px; color: #86a197; letter-spacing: .12em; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.source-link { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #c8d4c7; transition: color .2s; }
.source-link:hover { color: var(--mint); }
.source-link > span:last-child { color: #86a197; }
.motion-toggle { display: flex; align-items: center; gap: 7px; border: 0; padding: 10px 0; background: none; color: var(--muted); font-size: 12px; }
.motion-toggle:hover { color: var(--paper); }

.main-stage { min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 20px; padding-bottom: 13px; }
.stage-heading { flex-shrink: 0; display: flex; align-items: center; gap: 26px; color: #9caf9b; font-size: 11px; font-family: var(--mono); letter-spacing: .22em; margin-bottom: -7px; }
.small-cross { color: #537864; font-size: 15px; font-weight: 300; }
.instrument { position: relative; flex: 1 1 440px; min-height: 200px; max-height: 530px; width: min(100%, 1060px); display: flex; align-items: center; justify-content: center; }
.instrument-halo { position: absolute; top: 0; bottom: 0; left: 10%; right: 10%; background: radial-gradient(ellipse, #31593c20, #12322608 50%, transparent 68%); pointer-events: none; }
.mechanism { width: 100%; height: 100%; overflow: visible; }
.orbit-type { font-family: var(--mono); font-size: 9px; }
.core-caption { font-family: var(--mono); font-size: 9px; letter-spacing: 1.8px; }
.source-caption { font-family: var(--mono); font-size: 10px; letter-spacing: 1.8px; }
.outer-orbit { animation: orbit 150s linear infinite; }
.index-ring { animation: counter-orbit 180s linear infinite; }
.friendly-face { animation: float 7s ease-in-out infinite; }
.robot-eyes { transform-origin: 0 -14px; animation: blink 9s infinite; }
.instrument-meta { position: absolute; z-index: 1; top: 44%; width: 155px; font-size: 12px; pointer-events: none; }
.instrument-meta > span:first-child { font-family: var(--mono); letter-spacing: .13em; }
.instrument-meta strong { display: block; font-size: 14px; line-height: 1.65; color: #95a79a; font-weight: 400; }
.meta-line { display: block; width: 26px; height: 1px; margin: 13px 0; background: currentColor; opacity: .5; }
.left-meta { left: 3%; color: var(--amber); }
.right-meta { right: 3%; text-align: right; color: var(--red); }
.right-meta .meta-line { margin-left: auto; }
.heart-flight, .mind-flight { opacity: 0; pointer-events: none; }
.core-mark { opacity: 1; }
.core-status { opacity: 1; }
.replay { position: absolute; right: 0; bottom: 10px; display: flex; align-items: center; gap: 7px; border: 0; color: #7d9689; background: none; font-size: 11px; padding: 8px; }
.replay:hover { color: var(--mint); }

.intro-playing .heart-flight { animation: heart-arrive 5.8s cubic-bezier(.4,0,.2,1) both; }
.intro-playing .mind-flight { animation: mind-arrive 5.8s cubic-bezier(.4,0,.2,1) both; }
.intro-playing .core-mark { animation: fusion 5.8s ease both; }
.intro-playing .core-status { animation: reveal 6s ease both; }
.intro-playing .instrument-meta { animation: meta-reveal 6s ease both; }
.intro-playing .replay { opacity: 0; pointer-events: none; }
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation-play-state: paused !important; }
.still *, .still *::before, .still *::after { animation: none !important; transition: none !important; }
.still .heart-flight, .still .mind-flight { opacity: 0; }
.still .core-mark, .still .core-status, .still .instrument-meta { opacity: 1; }

.intro-copy { text-align: center; flex-shrink: 0; margin-top: -7px; }
h1 { font-size: clamp(30px, 3.3vw, 49px); line-height: 1.15; font-weight: 500; letter-spacing: -.055em; margin: 0; }
h1 span { color: var(--mint); }
.mobile-break { display: none; }
.intro-copy > p { color: #a6b7aa; font-size: 15px; line-height: 1.6; margin: 11px 0 0; }
.download-area { width: min(100%, 580px); flex-shrink: 0; text-align: center; padding-top: 25px; }
.download-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.download-button { display: flex; align-items: center; gap: 15px; padding: 17px 19px; text-align: left; border: 1px solid #446150; border-radius: 5px; transition: background .2s, border-color .2s, transform .2s, box-shadow .2s; }
.download-button.primary { background: #d3e8c0; border-color: #d3e8c0; color: #142a24; box-shadow: 0 0 28px #a2daa10b; }
.download-button.primary:hover { background: #e3f6d3; border-color: #e3f6d3; box-shadow: 0 0 35px #b1eeb21c; transform: translateY(-2px); }
.download-button.secondary { background: #18272060; color: #d1dec8; }
.download-button.secondary:hover { background: #233c2d; border-color: #839f78; transform: translateY(-2px); }
.chip-icon, .download-arrow { flex-shrink: 0; }
.download-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.download-text > strong { font-size: 16px; font-weight: 600; }
.download-text > span { font-size: 11px; opacity: .76; white-space: nowrap; }
.download-arrow { margin-left: auto; opacity: .85; }
.download-details { margin-top: 15px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; color: #a0b09e; font-size: 11px; }
.detail-divider { color: #536956; padding: 0 9px; }
.detail-dot { color: #596f5d; }
.download-details a { text-decoration: underline; text-decoration-color: #536c59; text-underline-offset: 4px; }
.download-details a:hover, .first-launch a:hover { color: var(--mint); }
.first-launch { margin: 10px 0 0; font-size: 10px; color: #819789; }
.first-launch a { color: #a8bca7; text-decoration: underline; text-underline-offset: 3px; }
.footer { border-top: 1px solid #344a373f; gap: 23px; font-size: 11px; color: #8ea58e; }
.footer-note { display: inline-flex; align-items: center; gap: 7px; }
.footer > a { padding-left: 23px; border-left: 1px solid #39513c; }
.footer > a:hover { color: var(--mint); }
.made-in { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.made-in > span { color: #bcc8aa; }
.made-in > svg { margin-left: 7px; opacity: .8; }

.install-dialog { width: min(590px, calc(100% - 32px)); max-height: calc(100svh - 40px); padding: 30px; background: #101c1b; color: var(--paper); border: 1px solid #4a6957; border-radius: 12px; box-shadow: 0 30px 120px #0009; }
.install-dialog::backdrop { background: #03090be6; backdrop-filter: blur(10px); }
.dialog-top { display: flex; align-items: center; justify-content: space-between; }
.eyebrow { font-family: var(--mono); color: var(--mint); font-size: 11px; letter-spacing: .14em; }
.dialog-close { width: 38px; height: 38px; border: 1px solid #375344; border-radius: 50%; background: transparent; color: var(--paper); font-size: 26px; line-height: 1; }
.dialog-close:hover { background: #274437; }
.install-dialog h2 { font-size: 34px; font-weight: 500; letter-spacing: -.045em; line-height: 1.12; margin: 20px 0 28px; }
.install-dialog h2 span { color: var(--mint); }
.install-steps { padding: 0; margin: 0; list-style: none; }
.install-steps li { display: flex; gap: 20px; margin: 22px 0; }
.step-number { font-family: var(--mono); color: #88a780; padding-top: 3px; font-size: 13px; }
.install-steps h3 { font-size: 16px; font-weight: 600; margin: 0 0 6px; }
.install-steps p, .trust-note p { margin: 0; line-height: 1.7; font-size: 14px; color: #b1c1b2; }
.trust-note { padding: 17px; border-left: 2px solid var(--amber); background: #d5a56808; margin-top: 24px; }
.trust-note > strong { display: block; color: #dcc295; font-size: 13px; margin-bottom: 8px; }
.trust-note a, .dialog-bottom a { text-decoration: underline; text-underline-offset: 3px; }
.dialog-fineprint { margin: 20px 0; color: #8fa594; font-size: 12px; line-height: 1.7; }
.dialog-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; font-size: 12px; color: #c4d4bc; }

@keyframes orbit { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes counter-orbit { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes blink { 0%,43%,46%,100% { transform: scaleY(1); } 44.5% { transform: scaleY(.08); } }
@keyframes heart-arrive { 0% { opacity: 0; transform: translate(-700px, 25px) rotate(-8deg); } 12% { opacity: 1; } 25%,48% { opacity: 1; transform: translate(-206px, 0) rotate(-3deg); } 66% { opacity: 1; transform: translate(-76px, 0) rotate(0deg) scale(.72); } 79%,100% { opacity: 0; transform: translate(0, 0) scale(.3); } }
@keyframes mind-arrive { 0% { opacity: 0; transform: translate(700px, 0); } 12% { opacity: 1; } 25%,48% { opacity: 1; transform: translate(206px, 0); } 66% { opacity: 1; transform: translate(76px, 0) scale(.72); } 79%,100% { opacity: 0; transform: translate(0, 0) scale(.3); } }
@keyframes fusion { 0%,61% { opacity: 0; transform: scale(.65); } 79% { opacity: 1; transform: scale(1.03); } 90%,100% { opacity: 1; transform: scale(1); } }
@keyframes reveal { 0%,80% { opacity: 0; } 100% { opacity: 1; } }
@keyframes meta-reveal { 0%,60% { opacity: 0; } 100% { opacity: 1; } }

@media (min-width: 1600px) and (min-height: 950px) { .instrument { max-height: 630px; } .download-area { padding-top: 30px; padding-bottom: 18px; } }
@media (max-height: 790px) and (min-width: 701px) {
  .site-shell { grid-template-rows: 70px minmax(0, 1fr) 50px; min-height: 580px; }
  .main-stage { padding-top: 16px; padding-bottom: 10px; }
  .stage-heading { font-size: 10px; margin-bottom: -12px; }
  .download-area { padding-top: 18px; }
  .download-button { padding: 13px 17px; }
  h1 { font-size: 36px; }
  .intro-copy > p { font-size: 14px; margin-top: 8px; }
  .download-details { margin-top: 12px; }
  .replay { bottom: 4px; }
}
@media (max-width: 1000px) {
  .masthead-caption { display: none; }
  .instrument-meta { width: 130px; font-size: 10px; }
  .instrument-meta strong { font-size: 12px; }
  .left-meta { left: 0; } .right-meta { right: 0; }
}
@media (max-width: 700px) {
  .site-shell { padding: 0 22px; min-height: 640px; grid-template-rows: 72px minmax(0, 1fr) 52px; }
  .site-shell::after { inset: 9px; }
  .brand { font-size: 18px; gap: 8px; }
  .brand img { width: 30px; height: 30px; }
  .masthead { gap: 12px; }
  .header-actions { gap: 19px; }
  .motion-toggle { padding: 12px 2px; min-width: 28px; justify-content: center; }
  .motion-toggle span { display: none; }
  .source-link { font-size: 12px; gap: 6px; white-space: nowrap; }
  .source-link > svg { width: 16px; }
  .stage-heading { font-size: 9px; letter-spacing: .17em; gap: 17px; margin-bottom: -4px; }
  .main-stage { padding-top: 18px; padding-bottom: 15px; }
  .instrument { width: calc(100% + 40px); min-height: 210px; max-height: 370px; }
  .mechanism { width: 165%; flex-shrink: 0; }
  .instrument-meta { display: none; }
  .replay { bottom: 9px; right: 13px; font-size: 10px; padding: 6px; }
  .replay span { display: none; }
  .intro-copy { margin-top: 1px; }
  h1 { font-size: clamp(30px, 7.8vw, 43px); line-height: 1.11; letter-spacing: -.055em; }
  .mobile-break { display: block; }
  .intro-copy > p { max-width: 370px; font-size: 13px; line-height: 1.65; margin: 12px auto 0; }
  .download-area { padding-top: 21px; }
  .download-options { gap: 10px; }
  .download-button { padding: 13px 12px; gap: 9px; }
  .chip-icon { width: 21px; }
  .download-text > strong { font-size: 14px; }
  .download-text > span { font-size: 9px; }
  .download-arrow { width: 15px; }
  .download-details { gap: 7px; font-size: 10px; margin-top: 14px; }
  .detail-divider { padding: 0 5px; }
  .first-launch { font-size: 9px; line-height: 1.7; margin-top: 8px; }
  .footer { font-size: 9px; gap: 10px; }
  .footer-note { gap: 5px; }
  .footer-note svg { width: 12px; }
  .footer > a { border: 0; padding-left: 0; margin-left: auto; }
  .made-in { gap: 3px; margin-left: 0; }
  .made-in svg { display: none; }
  .install-dialog { padding: 22px; }
}
@media (max-width: 390px) {
  .site-shell { padding: 0 18px; }
  .download-button { gap: 7px; padding: 13px 10px; }
  .download-arrow { display: none; }
  .made-in { font-size: 8px; }
  .footer-note { font-size: 8px; }
}
@media (max-width: 350px) {
  .header-actions { gap: 10px; }
  .source-link > span:last-child { display: none; }
  .download-button .chip-icon { display: none; }
  .footer { display: grid; grid-template-columns: 1fr auto; align-content: center; gap: 4px 10px; }
  .footer > a { margin-left: 0; }
  .made-in { grid-column: 1 / -1; justify-self: center; }
}
@media (max-height: 730px) and (max-width: 700px) {
  .site-shell { min-height: 600px; grid-template-rows: 63px minmax(0,1fr) 44px; }
  .main-stage { padding-top: 13px; padding-bottom: 12px; }
  .instrument { min-height: 183px; }
  .download-area { padding-top: 16px; }
  .intro-copy > p { margin-top: 9px; }
  h1 { font-size: 31px; }
}
@media (max-height: 650px) and (max-width: 700px) {
  .site-shell { min-height: 520px; grid-template-rows: 55px minmax(0, 1fr) 40px; }
  .main-stage { padding-top: 10px; padding-bottom: 8px; }
  .instrument { min-height: 115px; }
  h1 { font-size: 28px; }
  .intro-copy > p { font-size: 12px; line-height: 1.5; margin-top: 8px; }
  .download-area { padding-top: 14px; }
  .download-button { padding-top: 11px; padding-bottom: 11px; }
  .download-details { margin-top: 10px; row-gap: 7px; }
  .first-launch { margin-top: 7px; }
}
@media (max-height: 590px) and (min-width: 701px) {
  .site-shell { min-height: 480px; grid-template-rows: 56px minmax(0,1fr) 40px; }
  .main-stage { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 24px 1fr 145px; column-gap: 20px; width: 100%; padding: 15px 0; }
  .stage-heading { grid-column: 1 / -1; justify-content: center; }
  .instrument { grid-column: 1; grid-row: 2 / 4; width: 100%; height: 100%; max-height: none; min-height: 0; }
  .instrument-meta { display: none; }
  .intro-copy { grid-column: 2; align-self: end; padding-bottom: 10px; }
  .download-area { grid-column: 2; align-self: start; padding-top: 10px; }
  h1 { font-size: 29px; }
  .mobile-break { display: block; }
  .intro-copy > p { font-size: 12px; }
  .download-button { gap: 8px; padding: 11px; }
  .download-text > strong { font-size: 13px; }
  .download-text > span { font-size: 9px; }
  .download-arrow { display: none; }
  .download-details { font-size: 9px; gap: 6px; }
}
@media (max-height: 480px) and (min-width: 701px) {
  .site-shell { min-height: 360px; grid-template-rows: 46px minmax(0, 1fr) 32px; }
  .main-stage { grid-template-rows: 18px 1fr 136px; padding: 8px 0; }
  .intro-copy { padding-bottom: 4px; }
  h1 { font-size: 27px; }
  .download-area { padding-top: 6px; }
  .download-button .chip-icon { width: 18px; }
  .download-text > span { font-size: 8px; }
  .first-launch { margin-top: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .heart-flight, .mind-flight { opacity: 0 !important; }
  .core-mark, .core-status, .instrument-meta { opacity: 1 !important; transform: none !important; }
}
