@font-face { font-family: Onest; src: url('./assets/Onest.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }
:root { color-scheme: dark; background: #000; color: #e8eeef; font-family: Onest, sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; min-height: 100%; background: #000; }
body { min-width: 280px; }
.study { position: relative; height: 100svh; min-height: 420px; overflow: hidden; isolation: isolate; background: #000; }
canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; outline: none; touch-action: pan-y; opacity: 0; }
.ready canvas { opacity: 1; }
canvas:focus-visible { outline: 1px solid #a3dbe7; outline-offset: -8px; }
.material-switch { position: absolute; z-index: 3; top: clamp(20px, 3vw, 40px); right: clamp(24px, 3vw, 48px); display: flex; gap: 3px; padding: 4px; border: 1px solid #454350; border-radius: 11px; background: #101016; }
.material-switch button { min-width: 82px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 6px; background: transparent; color: #b3c6e7; font: 450 14px Onest, sans-serif; cursor: pointer; transition: background-color .2s, color .2s; }
.material-switch button[aria-pressed="true"] { background: #e8eeef; color: #101016; }
.material-switch button:hover:not([aria-pressed="true"]) { background: #24242e; color: #e8eeef; }
.material-switch button:focus-visible { outline: 2px solid #a3dbe7; outline-offset: 3px; }
.controls { position: absolute; z-index: 3; left: clamp(24px, 3vw, 48px); right: clamp(24px, 3vw, 48px); bottom: 24px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.geometry-controls { display: none; width: 330px; max-width: 100%; grid-template-columns: 88px minmax(60px, 1fr) 42px; align-items: center; column-gap: 12px; row-gap: 4px; color: #b3c6e7; font-size: 13px; }
.ready .geometry-controls { display: grid; }
.geometry-controls output { font-variant-numeric: tabular-nums; text-align: right; }
input[type="range"] { appearance: none; width: 100%; min-width: 0; height: 44px; margin: 0; padding: 0; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: #454350; }
input[type="range"]::-moz-range-track { height: 3px; border-radius: 2px; background: #454350; }
input[type="range"]::-webkit-slider-thumb { appearance: none; width: 16px; height: 16px; margin-top: -6.5px; border: 0; border-radius: 50%; background: #e8eeef; }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #e8eeef; }
input[type="range"]:hover::-webkit-slider-thumb { background: #a3dbe7; }
input[type="range"]:hover::-moz-range-thumb { background: #a3dbe7; }
input[type="range"]:focus-visible { outline: 2px solid #a3dbe7; outline-offset: 3px; border-radius: 4px; }
.color-controls { display: flex; align-items: center; gap: 8px; visibility: hidden; opacity: 0; transition: opacity .25s; }
[data-mode="neon"] .color-controls { visibility: visible; opacity: 1; }
.color-controls span { margin-right: 4px; font-size: 13px; color: #b3c6e7; }
input[type="color"] { display: block; width: 44px; height: 44px; padding: 5px; border: 1px solid #454350; border-radius: 8px; background: #101016; cursor: pointer; }
input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 3px; }
input[type="color"]::-moz-color-swatch { border: 0; border-radius: 3px; }
input[type="color"]:hover { border-color: #b3c6e7; }
input[type="color"]:focus-visible { outline: 2px solid #a3dbe7; outline-offset: 3px; }
.fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.fallback .symbol { position: absolute; height: min(68svh, 78vw / .867); width: auto; max-width: 78%; }
.fallback .wordmark { width: min(86%, 980px); opacity: .5; }
[data-mode="neon"] .fallback .wordmark { opacity: 0; }
[data-mode="neon"] .fallback .symbol { filter: drop-shadow(0 0 8px var(--neon-a, #ff4d9c)) drop-shadow(0 0 28px var(--neon-b, #5475ff)); }
.ready .fallback { visibility: hidden; }
::selection { background: #91dbe6; color: #071114; }
@media (max-width: 600px) {
  .controls { bottom: 20px; flex-direction: column; align-items: stretch; gap: 12px; }
  .geometry-controls { width: 100%; grid-template-columns: 88px minmax(40px, 1fr) 42px; }
  .color-controls { order: -1; align-self: flex-end; }
  [data-mode="glass"] .color-controls { display: none; }
}
@media (max-height: 599px) { .fallback { transform: translateY(-8svh); } .fallback .symbol { height: calc(100svh - 260px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto; transition: none !important; } }/* Download page: the optical stage stays intact; utility UI recedes. */
html { scroll-behavior: smooth; scroll-padding-top: 24px; scrollbar-color: #454350 #000; }
a { color: inherit; text-underline-offset: 5px; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 2px solid #a3dbe7; outline-offset: 5px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap, .site-header { width: min(1120px, calc(100% - 96px)); margin-inline: auto; }
.site-header { height: 88px; display: flex; align-items: center; justify-content: space-between; }
.site-header img { display: block; }
.nav-link { font-size: 14px; text-decoration: none; padding: 14px 0 14px 24px; }
.nav-link:hover, .jump-link:hover, .site-footer a:hover { color: #a3dbe7; }
.study { height: min(64svh, 600px); min-height: 390px; overflow: visible; }
canvas { border-radius: 0; }
.visual-tools { position: absolute; z-index: 4; top: 8px; right: max(24px, calc((100% - 1120px) / 2)); display: flex; align-items: flex-start; gap: 8px; }
.material-switch { position: static; padding: 3px; gap: 2px; border-color: #303039; background: #0d0d11; border-radius: 24px; }
.material-switch button { display: grid; place-items: center; min-width: 40px; min-height: 40px; padding: 0; border-radius: 50%; }
.settings { position: relative; }
.settings > summary { list-style: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; color: #b3c6e7; }
.settings > summary::-webkit-details-marker { display: none; }
.settings > summary:hover, .settings[open] > summary { background: #1b1b22; color: #e8eeef; }
.controls { position: absolute; top: 58px; right: 0; bottom: auto; left: auto; width: min(312px, calc(100vw - 40px)); padding: 20px; display: flex; flex-direction: column; align-items: stretch; gap: 10px; background: #101016; border: 1px solid #454350; border-radius: 14px; }
.settings[open] .controls { animation: reveal .22s ease-out; }
.settings-title { font-size: 14px; margin: 0 0 6px; font-weight: 550; }
.geometry-controls, .ready .geometry-controls { width: 100%; grid-template-columns: 80px minmax(40px, 1fr) 36px; column-gap: 8px; font-size: 12px; }
.color-controls { order: 0; align-self: stretch; justify-content: flex-end; }
[data-mode="glass"] .color-controls { display: none; }
.color-controls span { margin-right: auto; }
.intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding-block: 8px 80px; }
h1 { margin: 0; font-size: clamp(36px, 4.4vw, 62px); line-height: 1.05; letter-spacing: -.035em; font-weight: 520; text-wrap: balance; }
h1 span { display: block; color: #b3c6e7; }
.intro p { margin: 24px 0 0; font-size: 16px; line-height: 1.65; color: #b3c6e7; max-width: 58ch; }
.jump-link { display: flex; align-items: center; gap: 18px; padding: 14px 0; white-space: nowrap; text-decoration: none; font-size: 14px; }
.downloads { padding-block: 36px 80px; }
h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 500; letter-spacing: -.025em; margin: 0 0 36px; }
.release { border-top: 1px solid #303039; padding: 38px 0; display: grid; grid-template-columns: 1fr auto; column-gap: 48px; }
h3 { font-size: 34px; font-weight: 500; letter-spacing: -.025em; margin: 0 0 12px; }
.release-main p { margin: 0; font-size: 15px; line-height: 1.6; color: #b3c6e7; }
.release-main .release-note { margin-top: 14px; font-size: 13px; }
.release-action { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.download-button { display: flex; align-items: center; justify-content: center; gap: 24px; min-height: 52px; padding: 14px 22px; font: 500 14px Onest, sans-serif; text-decoration: none; border: 0; border-radius: 8px; background: #e8eeef; color: #101016; cursor: pointer; }
.download-button:hover { background: #bce4eb; }
.download-button:disabled { color: #b3c6e7; background: #24242e; cursor: not-allowed; }
.release-action > span { font-size: 12px; color: #b3c6e7; }
.installation { grid-column: 1 / -1; margin-top: 26px; }
.installation > summary { display: flex; align-items: center; gap: 20px; width: fit-content; min-height: 44px; cursor: pointer; list-style: none; font-size: 14px; }
.installation > summary::-webkit-details-marker { display: none; }
.installation[open] > summary svg { transform: rotate(180deg); }
.installation > div { padding: 16px 0 8px; max-width: 76ch; font-size: 15px; line-height: 1.75; color: #b3c6e7; }
.installation p { margin: 0 0 20px; }
.installation h4 { color: #e8eeef; font-size: 17px; font-weight: 500; margin: 28px 0 12px; }
.installation ol { margin: 0; padding-left: 22px; }
.installation li { padding-left: 8px; margin-bottom: 12px; }
.installation code { font-size: .9em; overflow-wrap: anywhere; color: #e8eeef; }
.installation strong { font-weight: 550; color: #e8eeef; }
.site-footer { border-top: 1px solid #303039; padding-block: 30px 40px; display: flex; align-items: center; justify-content: space-between; }
.site-footer a { font-size: 13px; text-decoration: none; padding: 12px 0; }
@keyframes reveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@media(max-width: 600px) {
 .wrap, .site-header { width: calc(100% - 40px); }
 .site-header { height: 72px; }
 .site-header img { width: 108px; }
 .study { height: 450px; min-height: 0; }
 .visual-tools { right: 16px; top: 0; }
 .intro { flex-direction: column; align-items: flex-start; gap: 18px; padding-block: 0 48px; }
 .intro p { font-size: 15px; }
 .downloads { padding-block: 24px 48px; }
 .release { grid-template-columns: 1fr; gap: 24px; padding-block: 30px; }
 .release-action { align-items: flex-start; }
 .installation { margin-top: 0; }
 h3 { font-size: 30px; }
 .controls { gap: 10px; }
 .fallback .symbol { height: 270px; }
}
@media(prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .settings[open] .controls { animation: none; } }

:root { --accent-a: #e8eeef; --accent-b: #b3c6e7; --accent-focus: #a3dbe7; }
h1 span, .jump-link, .nav-link, .installation > summary, .release-action > span,
.download-button, .material-switch button, .settings > summary { transition: color 1.6s ease, background-color 1.6s ease, border-color 1.6s ease; }
h1 span, .installation > summary, .release-action > span { color: var(--accent-b); }
.jump-link, .nav-link { color: var(--accent-a); }
.download-button, .material-switch button[aria-pressed="true"] { background-color: var(--accent-a); color: #101016; }
[data-palette="neon"] .release:nth-of-type(2) .download-button { background-color: var(--accent-b); }
.download-button:hover { background-color: color-mix(in srgb, var(--accent-a), white 20%); }
[data-palette="neon"] .release:nth-of-type(2) .download-button:hover { background-color: color-mix(in srgb, var(--accent-b), white 20%); }
.nav-link:hover, .jump-link:hover, .site-footer a:hover, .settings > summary:hover { color: var(--accent-focus); }
a:focus-visible, summary:focus-visible, button:focus-visible, input:focus-visible { outline-color: var(--accent-focus) !important; }
input[type="range"]::-webkit-slider-thumb { background: var(--accent-a); transition: background-color 1.6s ease; }
input[type="range"]::-moz-range-thumb { background: var(--accent-a); }
::selection { background: var(--accent-a); color: #101016; }
.fallback .symbol { height: min(51.52svh, 483px, 90vw); max-width: 82%; }
.fallback .wordmark { width: min(94%, 502px); }
@media(max-width:600px) { .fallback .symbol { height: min(362px, 90vw); } .fallback { transform: none; } }
@media(prefers-reduced-motion:reduce) { input[type="range"]::-webkit-slider-thumb { transition: none; } }

[hidden] { display: none !important; }
.study { height: max(440px, calc(100svh - 344px)); min-height: 0; }
.intro { min-height: 256px; padding-block: 0 40px; }
@media(max-width:600px) {
 .study { height: max(310px, calc(100svh - 360px)); }
 .intro { min-height: 288px; padding-block: 0 28px; gap: 12px; }
 .intro p { margin-top: 18px; }
}

/* Primary route to the two release downloads. */
.jump-link { min-height: 58px; padding: 17px 24px; gap: 28px; border-radius: 10px; background-color: var(--accent-a); color: #101016; font-size: 17px; font-weight: 600; justify-content: space-between; flex-shrink: 0; }
.jump-link svg { width: 22px; height: 22px; stroke-width: 1.8; }
.jump-link:hover { background-color: color-mix(in srgb, var(--accent-a), white 20%); color: #101016; }
.jump-link:active { background-color: color-mix(in srgb, var(--accent-a), black 10%); }
@media(max-width:600px) { .jump-link { width: 100%; min-height: 56px; font-size: 16px; padding: 16px 20px; } }
