@font-face{font-family:Barlow;src:url("media/barlow-condensed.ttf") format("truetype");font-weight:800;font-display:swap}
@font-face{font-family:Plex;src:url("media/plex-mono.ttf") format("truetype");font-weight:500;font-display:swap}
:root{color-scheme:dark;--ink:#0a0d0f;--pale:#f5efe2;--amber:#ffc078;--muted:#b3ada1;--rule:#3e3e37;--pad:clamp(1.25rem,5.25vw,6rem);font-family:system-ui,sans-serif;background:var(--ink);color:var(--pale)}
*{box-sizing:border-box}
body{margin:0;min-height:100svh}
.mast,.caption,.ident,.audio-state{display:flex;align-items:center}
.mast{padding:0 var(--pad);height:4.4rem;justify-content:space-between;border-bottom:1px solid #373932}
.ident,.audio-state,.caption,.time,#decoded{font:500 .79rem/1.4 Plex,ui-monospace,monospace}
.ident{gap:.85rem;letter-spacing:.13em}
.mark{display:flex;gap:3px;align-items:center;height:24px;transform:skew(-15deg)}
.mark b{width:3px;background:var(--amber);height:42%}.mark b:nth-child(2){height:73%}.mark b:nth-child(3){height:100%}.mark b:nth-child(4){height:65%}.mark b:last-child{height:29%}
.audio-state{gap:.6rem;color:var(--muted)}.audio-state i{width:7px;height:7px;border:1px solid #c9a478;border-radius:50%}
body.playing .audio-state i{background:var(--amber);box-shadow:0 0 9px #fda944}
.scene{isolation:isolate;position:relative;display:flex;align-items:center;min-height:27rem;height:clamp(27rem,calc(100svh - 17rem),58rem);overflow:hidden}
.landscape,.shade{position:absolute;inset:0;width:100%;height:100%;z-index:-2}
.landscape{object-fit:cover;object-position:65% 55%}
.shade{z-index:-1;background:linear-gradient(90deg,rgba(6,10,12,.52),rgba(6,10,12,.14) 48%,transparent 68%),linear-gradient(0deg,var(--ink),transparent 13%)}
.intro{width:100%;padding:2rem var(--pad);margin-top:3%}
h1{font:800 clamp(5rem,10.65vw,12.5rem)/.86 Barlow,Impact,sans-serif;letter-spacing:-.035em;margin:0;width:max-content;position:relative}
h1 .skull{width:.56em;height:.80em;object-fit:contain;vertical-align:-.05em;margin-inline:.012em .02em}
@media (prefers-reduced-motion:no-preference) and (forced-colors:none){
 @supports (background-clip:text){
  h1{background:linear-gradient(105deg,var(--pale) 43%,#ffc078 49%,#ffdeac 51%,var(--pale) 57%) 100% 0 / 300% 100%;background-clip:text;color:transparent;animation:sweep 1.8s .22s ease-in-out 1}
  @keyframes sweep{to{background-position:0 0}}
 }
}
.intro p{font-size:clamp(1.07rem,1.8vw,1.65rem);line-height:1.45;color:#e4dbcc;margin:1.35rem 0 0;letter-spacing:-.025em}
.receiver{padding:1.7rem var(--pad) 2rem;max-width:120rem;margin:auto}
.caption{justify-content:space-between;text-transform:uppercase;letter-spacing:.14em;color:var(--muted);margin:0 0 .85rem}
h2{font:inherit;margin:0}.frequency{letter-spacing:.065em}.frequency span,.divider{color:#89796a}
button[hidden],audio[hidden]{display:none}
#listen{width:100%;color:var(--pale);background:linear-gradient(102deg,#1d201f,#141718 67%,#1c1d1b);border:1px solid #4d4b41;border-radius:3px;padding:1.1rem 1.5rem;display:grid;grid-template-columns:2.85rem auto minmax(0,1fr) auto;gap:clamp(.75rem,1.6vw,2rem);align-items:center;cursor:pointer;text-align:left}
#listen:hover{border-color:#ad895d;background:linear-gradient(102deg,#262821,#171b1c 67%,#23241f)}
#listen:focus-visible{outline:2px solid var(--amber);outline-offset:5px}
.transport{height:2.85rem;width:2.85rem;display:grid;place-items:center;border-radius:50%;background:var(--amber)}
.transport i{width:0;height:0;border-style:solid;border-width:6px 0 6px 10px;border-color:transparent transparent transparent #211709;margin-left:2px}
body.playing .transport i{height:10px;width:10px;margin:0;background:#211709;border:0}
.verb{font:600 1rem/1.35 system-ui,sans-serif;min-width:8.8rem}
#wave{width:100%;height:3rem;display:block}.time{white-space:nowrap;letter-spacing:.035em}.time span:last-child{color:var(--muted)}
#decoded{min-height:1.4em;color:var(--amber);margin:.7rem 0 0;letter-spacing:.035em}audio{max-width:100%}
@media(min-width:1800px){.scene{height:clamp(35rem,calc(100svh - 17rem),65rem)}}
@media(max-width:680px){
 .mast{height:3.75rem}.scene{align-items:flex-end;min-height:25rem;height:clamp(25rem,calc(100svh - 16rem),43rem)}
 .landscape{height:87%;object-position:80% 50%}.shade{background:linear-gradient(0deg,var(--ink) 8%,rgba(10,13,15,.96) 13%,rgba(10,13,15,.5) 29%,transparent 60%)}
 .intro{margin:0;padding-bottom:1.6rem}h1{font-size:clamp(3.25rem,18vw,7.3rem)}.intro p{font-size:1.08rem;max-width:24rem;margin-top:.8rem}
 .receiver{padding-top:.8rem;padding-bottom:.65rem}.caption{font-size:.75rem}
 #listen{padding:.9rem 1rem;grid-template-columns:2.45rem 1fr auto;gap:.1rem .8rem}.transport{width:2.45rem;height:2.45rem}
 .verb{min-width:0}.time{font-size:.75rem}#wave{grid-column:1 / -1;grid-row:2;height:2.3rem;margin-top:.45rem}
}
@media(max-width:350px){.verb{font-size:.88rem}.time{font-size:.69rem}.ident,.audio-state{font-size:.72rem}}

.terminal-launch,.terminal button,.terminal input{font:500 .9rem/1.4 Plex,ui-monospace,monospace}
.terminal-launch,.terminal button{cursor:pointer}
.terminal-launch{
 display:inline-flex;align-items:center;gap:.65rem;min-height:44px;margin-top:1.2rem;padding:.55rem 1rem;
 color:var(--pale);background:#101312e6;border:1px solid #8a755b;border-left:3px solid var(--amber);
}
.terminal-launch span{color:var(--amber)}
.terminal-launch:hover{background:#222520;border-color:var(--amber)}
.terminal-launch:focus-visible,.terminal button:focus-visible,.terminal input:focus-visible{
 outline:2px solid var(--amber);outline-offset:3px;
}
.terminal{
 width:min(28rem,calc(100% - 2rem));max-height:calc(100dvh - 2rem);overflow:auto;padding:0;
 color:var(--pale);background:#111616;border:1px solid #867355;box-shadow:0 1rem 5rem #000a;
}
.terminal:not([open]){display:none}
.terminal::backdrop{background:rgb(5 9 10 / 82%)}
.terminal-bar{
 display:flex;align-items:center;justify-content:space-between;padding-left:1.5rem;
 border-bottom:1px solid var(--rule);background:#191e1c;color:var(--amber);
 font:500 .75rem/1.4 Plex,ui-monospace,monospace;letter-spacing:.14em;
}
#terminal-close{width:44px;height:44px;font:400 1.55rem/1 system-ui;color:var(--pale);background:transparent;border:0}
#terminal-close:hover{background:#363a32}
.terminal-panel{padding:1.5rem}
.terminal-heading{display:flex;align-items:center;gap:.85rem}
.terminal-heading img{width:3.15rem;height:3.7rem;object-fit:contain}
#terminal-title{font:800 clamp(2.25rem,7vw,3rem)/1 Barlow,Impact,sans-serif;text-transform:uppercase}
#terminal-help{margin:.85rem 0 1.25rem;color:#c9c2b5;font-size:1rem;line-height:1.45}
.terminal label{display:block;margin:.8rem 0 .4rem;font:500 .85rem/1.4 Plex,ui-monospace,monospace}
.terminal input{width:100%;min-height:44px;padding:.65rem .75rem;color:var(--pale);background:#080d0d;border:1px solid #636357;border-radius:0;font-size:1rem;caret-color:var(--amber)}
#terminal-attempt{width:100%;min-height:44px;margin-top:1.25rem;padding:.65rem;background:var(--amber);color:#211709;border:0}
#terminal-attempt:hover{background:#ffd5a4}
.terminal-response{min-height:1.4em;margin:.8rem 0 0;color:#ff9d86;font:500 .88rem/1.4 Plex,ui-monospace,monospace}
@media(max-width:680px){.terminal-launch{margin-top:.8rem}.terminal-panel{padding:1.15rem}}
