/* Robot Valley — a terrain scan between the Cyndrax and the Wraeth (Robert's sketch, 29 Nov 2026),
   in S.C.O.P.E. LIVE's visual language: #02060a field, SF Mono, cyan wireframe, amber + violet
   brackets, red lock pulse. No full-frame wash or flicker (removed from S.C.O.P.E. LIVE 29 Nov). */
:root {
  --cy: #8fe3ff; --am: #ffb238; --gh: #ff3d6e; --vi: #c9a4ff; --txt: #cfefff; --dim: #7f98a3;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: #000; }
body.rv {
  margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
  color: var(--cy); font: 500 13px/1.4 var(--mono); overflow-x: hidden; position: relative;
  background:
    radial-gradient(ellipse 75% 55% at 50% 48%, rgba(143, 227, 255, .07), transparent 70%),
    linear-gradient(rgba(143, 227, 255, .035) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(143, 227, 255, .035) 1px, transparent 1px) 0 0 / 40px 40px,
    #02060a;
}
/* a static scan-line texture: no flicker */
body.rv::after { content: ""; position: fixed; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .18) 0 1px, transparent 1px 3px); }

/* viewport corner brackets */
.frame { position: fixed; inset: 12px; pointer-events: none; z-index: 2; }
.frame i, .corners i { position: absolute; width: 26px; height: 26px; border: 0 solid rgba(143, 227, 255, .55); }
.frame .tl, .corners .tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.frame .tr, .corners .tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.frame .bl, .corners .bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.frame .br, .corners .br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }

/* HUD readouts */
.hud { display: flex; justify-content: space-between; gap: 16px; padding: 22px 34px 0;
  color: rgba(143, 227, 255, .6); font-size: 11px; letter-spacing: .18em; position: relative; z-index: 3; }
.hud b { color: var(--cy); font-weight: 700; }
.hud b.am { color: var(--am); }
.hud.bottom { padding: 0 34px 22px; justify-content: space-between; color: var(--dim); }
.hud .back { color: rgba(143, 227, 255, .75); text-decoration: none; }
.hud .back:hover, .hud .back:focus-visible { color: var(--cy); text-shadow: 0 0 10px rgba(143, 227, 255, .6); }
.sig-meter i { display: inline-block; width: 4px; height: 9px; margin-right: 2px; vertical-align: -1px;
  background: rgba(143, 227, 255, .2); animation: meter 2.4s steps(1) infinite; }
.sig-meter i:nth-child(1) { animation-delay: 0s; } .sig-meter i:nth-child(2) { animation-delay: .3s; }
.sig-meter i:nth-child(3) { animation-delay: .6s; } .sig-meter i:nth-child(4) { animation-delay: .9s; }
.sig-meter i:nth-child(5) { animation-delay: 1.2s; }
@keyframes meter { 0% { background: rgba(143, 227, 255, .2); } 50% { background: var(--cy); } }

.landing { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 18px 16px; position: relative; z-index: 3; }

/* crosshair rails above and below the logo */
.rail { width: min(1180px, 94vw); height: 9px; opacity: .5;
  background:
    linear-gradient(rgba(143, 227, 255, .5), rgba(143, 227, 255, .5)) 0 50% / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, rgba(143, 227, 255, .6) 0 1px, transparent 1px 24px) 0 0 / 100% 100%;
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }

/* the logo: sigil | valley | sigil, as sketched */
.logo { width: min(1120px, 94vw); display: grid; grid-template-columns: 1fr 3.4fr 1fr;
  align-items: center; gap: clamp(8px, 2vw, 28px); margin: clamp(10px, 2vw, 22px) 0; }

.tgt { margin: 0; position: relative; aspect-ratio: 1; transform: translateY(10%); }
.tgt img { width: 100%; height: auto; display: block; position: relative;
  animation: arrive 1.1s cubic-bezier(.2, .8, .2, 1) both; }
.tgt.cyn { --k: var(--am); --ka: rgba(255, 178, 56, .45); }
.tgt.wra { --k: var(--vi); --ka: rgba(201, 164, 255, .45); }
.tgt.wra img { animation-delay: .1s; }
.tgt .ring { position: absolute; inset: -9%; border-radius: 50%; border: 1px dashed var(--ka);
  animation: spin 22s linear infinite; }
.tgt.wra .ring { animation-direction: reverse; }
.tgt .corners { position: absolute; inset: -14%; animation: close 1.2s cubic-bezier(.2, .8, .2, 1) .5s both; }
.tgt .corners i { border-color: var(--k); width: 18%; height: 18%; }
.tgt figcaption { position: absolute; left: 0; right: 0; top: calc(100% + 16%); text-align: center;
  color: var(--k); font-size: clamp(8px, 1vw, 11px); letter-spacing: .3em; padding-left: .3em; opacity: .85; }
@keyframes arrive { from { opacity: 0; transform: scale(.9); filter: brightness(2.2); } to { opacity: 1; transform: none; filter: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes close { from { transform: scale(1.45) rotate(8deg); opacity: 0; } 60% { opacity: 1; } to { transform: none; opacity: 1; } }

/* the terrain */
.valley { width: 100%; height: auto; overflow: visible; }
.valley .grid line { stroke: var(--cy); stroke-width: 1; }
.valley .grid .h { animation: pulse 3.2s ease-in-out infinite; animation-delay: calc(var(--j) * .35s); }
.valley .ticks line { stroke: rgba(143, 227, 255, .45); stroke-width: 1; }
.valley .horizon { stroke: var(--cy); stroke-width: 1.2; opacity: .7; }
.valley .body { fill: url(#rock); opacity: 0; animation: show .9s ease var(--d) forwards; }
.valley .contour line { stroke: var(--cy); stroke-width: 1; }
.valley .contour { opacity: 0; animation: show 1.2s ease calc(var(--d) + .5s) forwards; }
.valley .cap { fill: rgba(207, 239, 255, .16); opacity: 0; animation: show .8s ease calc(var(--d) + 1.1s) forwards; }
.valley .edge { fill: none; stroke: var(--cy); stroke-width: 1.8; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s ease-out var(--d) forwards; }
.valley .snow { fill: none; stroke: var(--txt); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round;
  opacity: 0; animation: show .6s ease calc(var(--d) + 1.1s) forwards; }
.valley .elev { animation: elev 6s cubic-bezier(.45, 0, .55, 1) 2.6s infinite; transform: translateY(0); opacity: 0; }
.valley .sweep { stroke: var(--cy); stroke-width: 1; opacity: 0; animation: sweep 9s linear 3.2s infinite; }
.valley .reticle { transform-box: view-box; transform-origin: 0 0; opacity: 0;
  animation: hop 8s cubic-bezier(.3, .7, .2, 1) 2.4s infinite; }
.valley .reticle path, .valley .reticle line { fill: none; stroke: var(--gh); stroke-width: 1.6; }
.valley .reticle text { fill: var(--gh); font: 700 7px var(--mono); letter-spacing: .15em; }
.valley .reticle .pulse { fill: none; stroke: var(--gh); stroke-width: 1.2; opacity: 0;
  transform-box: fill-box; transform-origin: center; animation: lockp 2s ease-out 2.88s infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes show { to { opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes elev { 0% { transform: translateY(0); opacity: 0; } 6% { opacity: 1; } 88% { opacity: 1; }
  100% { transform: translateY(330px); opacity: 0; } }
@keyframes sweep { 0% { transform: translateX(0); opacity: 0; } 5% { opacity: .35; } 95% { opacity: .35; }
  100% { transform: translateX(600px); opacity: 0; } }
@keyframes lockp { 0% { transform: scale(.3); opacity: .95; } 70%, 100% { transform: scale(2.6); opacity: 0; } }

/* the words */
h1 { position: relative; margin: clamp(28px, 5vw, 56px) 0 8px; text-align: center; font-weight: 800;
  font-size: clamp(30px, 6.6vw, 84px); letter-spacing: .22em; line-height: 1; padding-left: .22em;
  color: var(--txt); text-shadow: 0 0 18px rgba(143, 227, 255, .45), 0 0 2px rgba(143, 227, 255, .8);
  animation: arrive 1s ease 1.6s both; }
h1::before, h1::after { content: attr(data-text); position: absolute; inset: 0; padding-left: .22em;
  opacity: 0; mix-blend-mode: screen; pointer-events: none; }
h1::before { color: var(--gh); animation: glitch-a 7s steps(1) 3s infinite; }
h1::after { color: var(--cy); animation: glitch-b 7s steps(1) 3s infinite; }
@keyframes glitch-a { 0%, 90% { opacity: 0; transform: none; clip-path: none; }
  91% { opacity: .85; transform: translate(-4px, 0); clip-path: inset(12% 0 55% 0); }
  93% { opacity: .85; transform: translate(3px, 1px); clip-path: inset(58% 0 8% 0); }
  95%, 100% { opacity: 0; transform: none; clip-path: none; } }
@keyframes glitch-b { 0%, 90% { opacity: 0; transform: none; clip-path: none; }
  91% { opacity: .7; transform: translate(4px, 0); clip-path: inset(40% 0 30% 0); }
  94% { opacity: .7; transform: translate(-3px, -1px); clip-path: inset(5% 0 70% 0); }
  95%, 100% { opacity: 0; transform: none; clip-path: none; } }

.soon { margin: 12px 0 0; font-weight: 700; letter-spacing: .5em; padding-left: .5em;
  font-size: clamp(12px, 1.8vw, 19px); color: var(--am); text-shadow: 0 0 12px rgba(255, 178, 56, .35);
  animation: arrive 1s ease 2s both; }
.soon .br { color: rgba(143, 227, 255, .6); font-weight: 400; }
.cursor { display: inline-block; width: .6em; height: 1em; margin-left: .2em; vertical-align: -0.14em;
  background: var(--am); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 640px) {
  .hud { padding: 20px 22px 0; font-size: 9px; letter-spacing: .12em; }
  .hud.bottom { padding: 0 22px 20px; }
  .logo { width: 84vw; grid-template-columns: 1fr 3fr 1fr; }
  .tgt .corners { inset: -10%; } .tgt .ring { inset: -6%; }
  .tgt figcaption { display: none; }
}
@media (max-width: 420px) { .hud.top > span:first-child { display: none; } .hud.top { justify-content: center; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .valley .body, .valley .contour, .valley .cap, .valley .snow, .tgt img, h1, .soon { opacity: 1; }
  .valley .edge { stroke-dashoffset: 0; }
  .valley .sweep, .valley .elev, .valley .reticle .pulse { display: none; }
  .valley .reticle { opacity: 1; transform: translate(458px, 30px); }
}
