:root {
  color-scheme: dark;
  --bg: #0a1013;
  --panel: #10191e;
  --line: #283839;
  --text: #f1f5ef;
  --muted: #a8b9b6;
  --green: #b8f787;
  --blue: #81daff;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-family: system-ui, -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
a { color: inherit; text-underline-offset: .25em; }
a:hover { color: var(--blue); }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
.skip { position: fixed; z-index: 2; top: 10px; left: 10px; padding: 12px; background: var(--panel); transform: translateY(-200%); }
.skip:focus { transform: none; }
.shell { width: min(1180px, 100% - 72px); margin-inline: auto; }
.top { min-height: 82px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); }
.brand, nav, .actions, .heading, .footer, .footer div { display: flex; align-items: center; gap: 20px; }
.brand { gap: 10px; text-decoration: none; font-weight: 700; }
.brand img { object-fit: contain; }
nav a, .footer a { color: var(--muted); text-decoration: none; padding-block: 9px; }
nav .nav-contact { color: var(--green); }
.hero { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(32px, 7vw, 94px); align-items: center; padding-block: clamp(58px, 9vw, 125px); }
.mono, .terminal { font-family: var(--mono); }
.label { color: var(--green); font-size: .83rem; margin: 0 0 23px; letter-spacing: .04em; }
.label span { margin-right: .28em; }
h1, h2, h3 { margin: 0; line-height: 1.06; }
h1 { font-size: clamp(2.55rem, 5.3vw, 5.15rem); letter-spacing: -.067em; font-weight: 730; }
h1 em { color: var(--blue); font-style: normal; display: block; }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); letter-spacing: -.05em; }
h3 { font-size: 1.3rem; letter-spacing: -.025em; }
p { line-height: 1.65; color: var(--muted); }
.intro { max-width: 54ch; font-size: 1.07rem; margin-block: 24px; }
.actions { flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: 5px; background: var(--green); color: #0a1510; font-weight: 750; text-decoration: none; }
.button:hover { background: var(--blue); color: #0a1510; }
.quiet { color: var(--text); font-size: .94rem; }
.terminal { min-width: 0; border: 1px solid #40554d; border-radius: 12px; overflow: hidden; background: #0c1719; box-shadow: 0 24px 80px #030907; font-size: .82rem; }
.terminal-bar, .terminal-bottom { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: var(--panel); color: var(--muted); }
.lights { display: flex; gap: 6px; }
.lights i { width: 7px; height: 7px; border-radius: 50%; background: #5c716e; }
.lights i:first-child, .terminal-bottom span:first-child { color: var(--green); background-color: var(--green); }
.terminal-content { padding: 24px 18px 4px; line-height: 1.65; }
.terminal-content b { color: var(--green); }
.terminal-output { color: var(--blue); margin: 3px 0 18px 16px; }
.signal { height: 105px; display: flex; gap: 5px; align-items: end; padding: 14px 18px; background: repeating-linear-gradient(0deg, transparent 0 19px, #23373a 19px 20px); }
.signal span { flex: 1; min-width: 0; height: 24%; background: linear-gradient(0deg, #263d32, var(--green)); border-radius: 2px 2px 0 0; }
.signal span:nth-child(n+7) { background: linear-gradient(0deg, #233d4a, var(--blue)); }
.signal span:nth-child(3n) { height: 46%; }
.signal span:nth-child(4n) { height: 72%; }
.signal span:nth-child(11) { height: 95%; }
.terminal-bottom { font-size: .72rem; border-top: 1px solid var(--line); }
.band { background: #0e171a; border-block: 1px solid var(--line); }
.section { padding-block: clamp(46px, 7vw, 90px); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.grid article { padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.grid p:last-child, .split p:last-child { margin-bottom: 0; }
.glyph { display: block; color: var(--green); margin-bottom: 18px; }
.blue { color: var(--blue); }
.stamp { background: #142322; color: var(--green); padding: 18px; font-size: 2rem; border-radius: 4px; }
.stamp.blue { background: #14242d; color: var(--blue); }
.example-title { margin-top: 16px; }
.tag, .status { font-size: .78rem; color: var(--muted); }
.grid a, .heading a { color: var(--green); }
.grid a:hover, .heading a:hover { color: var(--blue); }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 26px; }
.split p:first-child { margin-top: 0; }
.heading, .footer { justify-content: space-between; }
.posts { padding: 0; list-style: none; margin: 24px 0 0; border-top: 1px solid var(--line); }
.posts a { display: flex; justify-content: space-between; gap: 14px; padding: 17px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.posts span { color: var(--blue); }
.address { margin-top: 9px; overflow-wrap: anywhere; }
.footer { padding-block: 22px; flex-wrap: wrap; }
@media (max-width: 820px) {
  .shell { width: calc(100% - 40px); }
  .hero { grid-template-columns: 1fr; }
  .terminal { max-width: 480px; }
  .grid { gap: 10px; }
  .grid article { padding: 16px; }
}
@media (max-width: 590px) {
  .top { align-items: flex-start; flex-direction: column; gap: 3px; padding-block: 12px; }
  nav { gap: clamp(10px, 4vw, 25px); flex-wrap: wrap; font-size: .88rem; }
  .grid, .split { grid-template-columns: 1fr; }
  .heading { align-items: flex-start; flex-direction: column; gap: 12px; }
}

.hero { position: relative; isolation: isolate; }
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 4% 0;
  background: radial-gradient(ellipse at 78% 36%, #164b5266, transparent 58%);
  pointer-events: none;
}
.hero-visual { position: relative; min-width: 0; }
.scene {
  position: relative;
  display: grid;
  place-items: center;
  height: 196px;
  isolation: isolate;
  perspective: 520px;
  overflow: hidden;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, black 18% 82%, transparent);
  background: repeating-linear-gradient(0deg, transparent 0 22px, #81daff12 22px 23px);
}
.cube {
  --size: 82px;
  position: relative;
  width: var(--size);
  height: var(--size);
  transform-style: preserve-3d;
  transform: rotateX(-22deg) rotateY(32deg);
  animation: rotate-cube 15s linear infinite;
}
.cube span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 1px solid #81daffb0;
  background: #123343e0;
  box-shadow: inset 0 0 22px #81daff36;
  color: var(--blue);
  font: 700 23px var(--mono);
}
.cube .front, .cube .left { color: var(--green); border-color: #b8f787b0; background: #1b3529e0; }
.front { transform: translateZ(calc(var(--size) / 2)); }
.back { transform: rotateY(180deg) translateZ(calc(var(--size) / 2)); }
.left { transform: rotateY(-90deg) translateZ(calc(var(--size) / 2)); }
.right { transform: rotateY(90deg) translateZ(calc(var(--size) / 2)); }
.upper { transform: rotateX(90deg) translateZ(calc(var(--size) / 2)); }
.lower { transform: rotateX(-90deg) translateZ(calc(var(--size) / 2)); }
.code-stream {
  position: absolute;
  top: 16px;
  color: #b8f78788;
  font: 13px/2.1 var(--mono);
  animation: drift-code 5s ease-in-out infinite alternate;
}
.code-stream-left { left: 16%; }
.code-stream-right { right: 16%; color: #81daff99; animation-delay: -2.5s; }
.motion-control { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--muted); font: .75rem var(--mono); cursor: pointer; }
.motion-control input { margin: 0; accent-color: var(--green); }
.motion-control input:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.hero-visual:has(input:checked) :is(.cube, .code-stream) { animation-play-state: paused; }
@keyframes rotate-cube {
  from { transform: rotateX(-22deg) rotateY(32deg); }
  to { transform: rotateX(-22deg) rotateY(392deg); }
}
@keyframes drift-code { to { transform: translateY(34px); } }
@media (max-width: 820px) {
  .hero-visual { width: min(480px, 100%); }
  .scene { height: 160px; }
}
@media (prefers-reduced-motion: reduce) {
  .cube, .code-stream { animation: none; }
  .motion-control { display: none; }
}
