:root {
  --bg: #0a0f1e;
  --bg-deep: #060914;
  --text: #eef2ff;
  --muted: #8b95b5;
  --teal: #5eead4;
  --blue: #60a5fa;
  --violet: #a78bfa;
}

* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: radial-gradient(120% 90% at 75% 35%, #141c3a 0%, var(--bg) 45%, var(--bg-deep) 100%);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem clamp(1.25rem, 5vw, 4rem);
}

.brand {
  margin: 0 0 1.5rem;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 300;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand-mark {
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: none;
  color: var(--text);
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5.6vw, 4.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
}

.accent {
  background: linear-gradient(100deg, var(--teal), var(--blue) 55%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.art { display: block; width: 100%; height: auto; max-height: 78vh; }

footer {
  padding: 1.25rem;
  text-align: center;
  font-size: .8rem;
  letter-spacing: .08em;
  color: var(--muted);
}

/* The illustration */
.layer { fill: url(#plate); stroke: url(#edge); stroke-width: 1.5; stroke-linejoin: round; }
.layer-0 { opacity: .55; }
.layer-1 { opacity: .78; }
.grid { stroke: #9fb4ff; stroke-opacity: .13; stroke-width: 1; }

.link { stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 3 9; animation: flow 2.4s linear infinite; }
.link-0 { stroke: var(--teal); }
.link-1 { stroke: var(--blue); animation-duration: 3.1s; }
.link-2 { stroke: var(--violet); animation-duration: 3.8s; }

.node { stroke: var(--bg); stroke-width: 1.5; animation: pulse 3s ease-in-out infinite; }
.node-0 { fill: var(--teal); }
.node-1 { fill: var(--blue); animation-delay: -1s; }
.node-2 { fill: var(--violet); animation-delay: -2s; }

.cube polygon { stroke: var(--bg); stroke-width: 1; stroke-linejoin: round; }
.cube-a .face-top { fill: #99f6e4; } .cube-a .face-left { fill: #2dd4bf; } .cube-a .face-right { fill: #0f9488; }
.cube-b .face-top { fill: #bfdbfe; } .cube-b .face-left { fill: #60a5fa; } .cube-b .face-right { fill: #2563eb; }
.cube-c .face-top { fill: #ddd6fe; } .cube-c .face-left { fill: #a78bfa; } .cube-c .face-right { fill: #6d28d9; }
.cube-d .face-top { fill: #f8fafc; } .cube-d .face-left { fill: #cbd5e1; } .cube-d .face-right { fill: #94a3b8; }

.float { animation: hover 4.5s ease-in-out infinite; }

@keyframes flow { to { stroke-dashoffset: -24; } }
@keyframes pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes hover { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(14px); } }

@media (max-width: 760px) {
  main { grid-template-columns: 1fr; gap: 1rem; padding-top: 3rem; text-align: center; }
  .picture { order: -1; }
  .art { max-height: 46vh; }
}

@media (prefers-reduced-motion: reduce) {
  .link, .node, .float { animation: none; }
}
