@font-face { font-family: Orbitron; src: url('/fonts/orbitron-logo.woff2') format('woff2'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'Chakra Petch'; src: url('/fonts/chakra-logo.woff2') format('woff2'); font-weight: 700 900; font-display: swap; }
@font-face { font-family: Syncopate; src: url('/fonts/syncopate-logo.woff2') format('woff2'); font-weight: 700 900; font-display: swap; }
@font-face { font-family: Rajdhani; src: url('/fonts/rajdhani-logo.woff2') format('woff2'); font-weight: 700 900; font-display: swap; }
.spectrum-logo { display: block; width: 100%; height: auto; overflow: hidden; --logo-duration: 7s; --logo-split: .5px; }
/* Only transform and opacity animate, including on the low-memory target. */
@keyframes logo-wave { 0%,100% { transform: translateY(-2px) scaleY(1); opacity: .85; } 50% { transform: translateY(2px) scaleY(.82); opacity: 1; } }
@keyframes logo-red { 0%,100% { transform: translateX(calc(-1 * var(--logo-split))); } 50% { transform: translateX(var(--logo-split)); } }
@keyframes logo-blue { 0%,100% { transform: translateX(var(--logo-split)); } 50% { transform: translateX(calc(-1 * var(--logo-split))); } }
.spectrum-logo #fourierWavesBack, .spectrum-logo #fourierWavesFront { transform-origin: 700px 220px; animation: logo-wave var(--logo-duration) ease-in-out infinite; }
.spectrum-logo #textRedshift { animation: logo-red var(--logo-duration) ease-in-out infinite; }
.spectrum-logo #textBlueshift { animation: logo-blue var(--logo-duration) ease-in-out infinite; }
/* Splash only (h1.word): activity on top of the calm engine. Transform and opacity only, staggered so the strands never flatten together. */
@keyframes logo-stand { 0% { transform: translate(-22px,-4px) scaleY(.7) skewY(-.6deg); } 45% { transform: translate(7px,8px) scaleY(1.35) skewY(.8deg); } 100% { transform: translate(25px,-7px) scaleY(.9) skewY(-.3deg); } }
@keyframes logo-current { 0%,100% { transform:translate(var(--steer-x,0px),var(--steer-y,0px)) scaleY(.88); } 50% { transform:translate(calc(var(--steer-x,0px) + 6px),calc(var(--steer-y,0px) - 4px)) scaleY(1.12); } }
.word .spectrum-logo #fourierWavesBack,.word .spectrum-logo #fourierWavesFront { animation-name:logo-current;animation-duration:3.8s; }
.word .spectrum-logo.is-energized #fourierWavesBack path { animation-duration:.65s; }
@keyframes logo-drift { from { transform: translateX(-7px); opacity: .8; } to { transform: translateX(7px); opacity: 1; } }
/* Markers read on their own, not tied to the telemetry dial that also sets the faint HUD. */
.word .spectrum-logo #spectralLinesLayer { opacity: .85; }
@keyframes logo-sweep { 0% { transform: translateX(-250px) scaleX(.6); opacity: .5; } 50% { transform: translateX(0) scaleX(1.25); opacity: 1; } 100% { transform: translateX(250px) scaleX(.6); opacity: .5; } }
@keyframes logo-breathe { from { transform: scaleX(.95); } to { transform: scaleX(1.04); } }
@keyframes logo-glow { from { opacity: .4; } to { opacity: .95; } }
@keyframes logo-halo { from { opacity: .12; } to { opacity: .38; } }
.word .spectrum-logo #fourierWavesBack path, .word .spectrum-logo #fourierWavesFront path { transform-origin: 700px 220px; animation: logo-stand 2.6s ease-in-out infinite alternate; }
.word .spectrum-logo #fourierWavesBack path:nth-child(2n) { animation-duration: 3.3s; animation-delay: -1.1s; }
.word .spectrum-logo #fourierWavesBack path:nth-child(3n) { animation-duration: 2.1s; animation-delay: -1.7s; }
.word .spectrum-logo #fourierWavesBack path:nth-child(4n+1) { animation-delay: -.6s; }
.word .spectrum-logo #fourierWavesFront path { animation-duration: 3.8s; animation-delay: -2.2s; }
/* Band selection: the open band's strand is lit, the rest recede. */
.word .spectrum-logo #fourierWavesBack path, .word .spectrum-logo #fourierWavesFront path { transition: opacity .45s ease; }
.word .spectrum-logo #fourierWavesBack path.dim, .word .spectrum-logo #fourierWavesFront path.dim { opacity: .3; }
@keyframes logo-lit { from { transform:translateX(-8px) scaleY(.96); } to { transform:translateX(8px) scaleY(1.08); } }
.word .spectrum-logo #fourierWavesBack path.lit, .word .spectrum-logo #fourierWavesFront path.lit { stroke-width: 2.8; animation:logo-lit 2.8s ease-in-out infinite alternate; }
.word .spectrum-logo #spectralLinesLayer > g { animation: logo-drift 3.1s ease-in-out infinite alternate; }
.word .spectrum-logo #spectralLinesLayer > g:nth-child(2n) { animation-duration: 2.4s; animation-delay: -1.3s; animation-direction: alternate-reverse; }
.word .spectrum-logo #spectralLinesLayer > g:nth-child(3n) { animation-duration: 3.7s; animation-delay: -.8s; }
.word .spectrum-logo #centralInterferencePeak { transform-box: fill-box; transform-origin: center; animation: logo-sweep 4.2s ease-in-out infinite; }
.word .spectrum-logo #spectrumBarCore, .word .spectrum-logo #spectrumBarGlow { transform-box: fill-box; transform-origin: center; animation: logo-breathe 2.8s ease-in-out infinite alternate; }
.word .spectrum-logo #spectrumBarGlow { animation-name: logo-glow; }
.word .spectrum-logo #textHalo { animation: logo-halo 3.4s ease-in-out infinite alternate; }
.spectrum-logo.still *, .spectrum-logo.paused * { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) { .spectrum-logo * { animation: none !important; } }
/* "Make a mark" collapses to a pen icon tucked under the banner's right edge. */
.mark-toggle { margin-top: -4px; }
.mark-toggle > summary { list-style: none; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin-left: auto; border: 1px solid var(--rule); border-radius: 50%; color: var(--dim); cursor: pointer; transition: color .2s, border-color .2s; }
.mark-toggle > summary::-webkit-details-marker { display: none; }
.mark-toggle > summary:hover, .mark-toggle[open] > summary { color: var(--face); border-color: var(--face); }
.mark-toggle > summary:focus-visible { outline: 2px solid white; outline-offset: 2px; }
.mark-toggle .logo-bridge { margin-top: 8px; }
.logo-bridge { display: flex; align-items: end; flex-wrap: wrap; gap: 16px 24px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--rule); }
.bridge-copy { flex: 1 1 260px; }
.bridge-copy p { margin: 0; color: var(--dim); font-size: 14px; }
.bridge-copy strong { color: var(--face); font-size: 18px; font-weight: 500; }
.logo-bridge label { display: block; font-size: 12px; color: var(--dim); margin-bottom: 5px; }
.bridge-fields { display: flex; gap: 8px; flex-wrap: wrap; }
.bridge-fields input { width: 240px; min-width: 0; background: #08090b; color: var(--face); border: 1px solid #555b63; padding: 10px 12px; font: inherit; font-size: 15px; border-radius: 0; }
.bridge-fields button { background: var(--face); color: #000; border: 1px solid var(--face); padding: 10px 16px; font: inherit; font-size: 15px; cursor: pointer; }
.bridge-fields input:focus { outline: 2px solid white; outline-offset: 2px; }
.bridge-status { min-height: 1.5em; margin: 7px 0 0; font-size: 12px; color: var(--dim); }
@media (max-width: 540px) { .logo-bridge { gap: 12px; } .bridge-editor, .bridge-fields { width: 100%; } .bridge-fields input { flex: 1 1 130px; width: 130px; } .bridge-fields button { flex: 1 1 auto; } }
