@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Space+Grotesk:wght@400;500;600&display=swap');

:root {
  color-scheme: dark;
  --bg: #080b0c;
  --cyan: #8de9d7;
  --cyan-dim: rgba(141, 233, 215, .22);
  --muted: #617a76;
  --mono: "Share Tech Mono", "Courier New", monospace;
}
* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; }
body {
  min-height: 100svh;
  overflow: hidden;
  background: var(--bg);
  color: #d6e6e1;
  font-family: "Space Grotesk", sans-serif;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background:
    radial-gradient(ellipse at 50% 46%, transparent 0 18%, rgba(0,0,0,.25) 68%, rgba(0,0,0,.8) 120%),
    linear-gradient(115deg, rgba(30,64,60,.08), transparent 42%, rgba(26,43,52,.1));
}
.spark-field {
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: 3;
  pointer-events: none; opacity: .9;
}
.noise {
  position: fixed; inset: -50%; z-index: 5; pointer-events: none; opacity: .075;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  animation: grain .22s steps(2) infinite;
}
.scanlines {
  position: fixed; inset: 0; z-index: 4; pointer-events: none; opacity: .16;
  background: repeating-linear-gradient(to bottom, transparent 0 3px, rgba(0,0,0,.45) 4px);
}
.scene {
  position: relative; isolation: isolate; min-height: 100svh; display: grid;
  grid-template-rows: auto 1fr auto; padding: clamp(26px, 5vw, 68px);
}
.masthead {
  z-index: 2; display: flex; align-items: center; justify-content: center;
  gap: clamp(16px, 3vw, 42px); padding-top: 1vh;
}
h1 {
  margin: 0; position: relative; color: #e1f5ef; text-align: center;
  font: 500 clamp(1.45rem, 4.2vw, 3.4rem)/1 var(--mono);
  letter-spacing: .16em; text-transform: uppercase;
  text-shadow: 0 0 7px rgba(141,233,215,.45), 0 0 28px rgba(74,188,170,.18);
}
h1::after {
  content: attr(data-text); position: absolute; inset: 0; color: #91f6e2;
  opacity: .22; clip-path: inset(55% 0 25% 0); transform: translateX(2px);
  animation: glitch 6s infinite steps(1);
}
.signal { display: flex; gap: 4px; align-items: end; height: 16px; opacity: .65; }
.signal span { width: 2px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.signal span:nth-child(1) { height: 5px; }
.signal span:nth-child(2) { height: 11px; }
.signal span:nth-child(3) { height: 8px; }
.signal.right { transform: scaleX(-1); }
.core {
  position: relative; display: grid; place-items: center; min-height: 0;
}
.ambient {
  position: absolute; z-index: -1; border-radius: 50%; filter: blur(1px);
  pointer-events: none; opacity: .42;
}
.ambient-a {
  width: min(68vw, 760px); aspect-ratio: 1; left: 50%; top: 50%;
  transform: translate(-50%,-48%);
  background: radial-gradient(circle, rgba(36,105,95,.16), rgba(11,30,31,.07) 42%, transparent 70%);
}
.ambient-b {
  width: min(40vw, 440px); aspect-ratio: 1; left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  border: 1px solid rgba(123,211,194,.08);
  box-shadow: 0 0 80px rgba(71,176,158,.06), inset 0 0 80px rgba(71,176,158,.035);
}
.core-mark {
  position: absolute; width: min(40vw, 380px); aspect-ratio: 1; top: 50%; left: 50%;
  transform: translate(-50%,-58%); opacity: .24; pointer-events: none;
}
.core-ring {
  position: absolute; inset: 8%; border: 1px solid rgba(141,233,215,.45); border-radius: 50%;
  box-shadow: 0 0 30px rgba(141,233,215,.08), inset 0 0 30px rgba(141,233,215,.06);
}
.core-ring::before, .core-ring::after {
  content: ""; position: absolute; inset: 12%; border: 1px dashed rgba(141,233,215,.35); border-radius: 50%;
}
.core-ring::after { inset: 27%; border-style: solid; opacity: .6; }
.core-cross {
  position: absolute; inset: 0; background:
    linear-gradient(90deg, transparent 49.8%, rgba(141,233,215,.25) 50%, transparent 50.2%),
    linear-gradient(0deg, transparent 49.8%, rgba(141,233,215,.25) 50%, transparent 50.2%);
}
.core-dot {
  position: absolute; width: 8px; height: 8px; border-radius: 50%; left: 50%; top: 50%;
  transform: translate(-50%,-50%); background: var(--cyan);
  box-shadow: 0 0 10px 4px rgba(141,233,215,.35), 0 0 40px 12px rgba(141,233,215,.16);
}
.orbit {
  position: absolute; width: min(70vw, 760px); height: min(22vw, 230px);
  border: 1px solid rgba(122,205,190,.1); border-radius: 50%; transform: rotate(-18deg);
  pointer-events: none;
}
.orbit-two { width: min(60vw, 650px); height: min(17vw, 180px); transform: rotate(24deg); opacity: .55; }
.poem-frame {
  position: relative; z-index: 2; padding: clamp(30px, 5vw, 62px) clamp(28px, 6vw, 76px);
  background: linear-gradient(135deg, rgba(7,14,15,.82), rgba(10,20,21,.58));
  border: 1px solid rgba(141,233,215,.18);
  box-shadow: 0 20px 90px rgba(0,0,0,.45), 0 0 50px rgba(70,171,153,.055), inset 0 0 35px rgba(141,233,215,.025);
  backdrop-filter: blur(8px); text-align: center;
  animation: appear 1.8s ease both;
}
.poem-frame::before {
  content: ""; position: absolute; inset: 7px; border: 1px solid rgba(141,233,215,.055);
}
.corner { position: absolute; width: 12px; height: 12px; border-color: var(--cyan); opacity: .65; }
.corner-tl { top: -1px; left: -1px; border-top: 1px solid; border-left: 1px solid; }
.corner-tr { top: -1px; right: -1px; border-top: 1px solid; border-right: 1px solid; }
.corner-bl { bottom: -1px; left: -1px; border-bottom: 1px solid; border-left: 1px solid; }
.corner-br { bottom: -1px; right: -1px; border-bottom: 1px solid; border-right: 1px solid; }
.poem {
  position: relative; margin: 0; display: flex; flex-direction: column; gap: .62em;
  color: #d4e5df; font: clamp(.94rem, 1.7vw, 1.28rem)/1.55 var(--mono);
  letter-spacing: .035em; text-shadow: 0 0 14px rgba(141,233,215,.12);
}
.poem span { display: block; }
.footer {
  z-index: 2; display: flex; align-items: center; justify-content: center;
  gap: 18px; padding-bottom: 1vh; opacity: .5;
}
.footer-line { width: min(18vw, 180px); height: 1px; background: linear-gradient(90deg, transparent, var(--muted)); }
.footer-line:last-child { transform: scaleX(-1); }
.footer-mark { display: flex; align-items: center; gap: 4px; height: 12px; }
.footer-mark i { display: block; width: 2px; height: 4px; background: var(--cyan); opacity: .7; }
.footer-mark i:nth-child(2), .footer-mark i:nth-child(4) { height: 8px; }
.footer-mark i:nth-child(3) { height: 12px; }
@keyframes grain { 0% { transform: translate(0,0); } 25% { transform: translate(2%,-1%); } 50% { transform: translate(-1%,2%); } 75% { transform: translate(1%,1%); } }
@keyframes glitch {
  0%, 92%, 100% { transform: translateX(0); opacity: .12; }
  93% { transform: translateX(-3px); opacity: .38; }
  94% { transform: translateX(2px); opacity: .2; }
  96% { transform: translateX(0); opacity: .3; }
}
@keyframes appear { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 600px) {
  .scene { padding: 28px 18px; }
  .masthead { gap: 12px; }
  h1 { letter-spacing: .09em; }
  .signal { transform: scale(.75); }
  .signal.right { transform: scaleX(-1) scale(.75); }
  .poem-frame { padding: 32px 18px; width: 100%; }
  .poem { font-size: clamp(.82rem, 3.4vw, 1rem); }
  .orbit { width: 105vw; height: 42vw; }
  .orbit-two { width: 90vw; height: 34vw; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
