@font-face {
  font-family: 'Errorline';
  src: url('fonts/errorline.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('fonts/geist-mono.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --color-bg: light-dark(#f5f5f2, #121212);
  --color-text: light-dark(#191a19, #EAEAEA);
  --color-text-2: light-dark(#4d4e4b, #A0A0A0);
  --color-text-3: light-dark(#636460, #8A8A8A);
  --color-accent: light-dark(#08775a, #48bc97);
  --color-logo-a: #ff00c1;
  --color-logo-b: #00d4ff;
  --color-dodecahedron: light-dark(#0a5f48, #48bc97);
  --font-heading: 'Errorline', system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;
  --max-width: 1296px;
  --gutter: clamp(20px, 5vw, 72px);
  --radius-base: 3px;
  --jitter-duration: .15s;
  --press-offset: 1px;
  --d-r: min(24vh, 22vw);
  --d-mark-size: 22px;
  --d-gap: calc(var(--d-r) * .2 + 14px);
  --d-cy: calc(47dvh - (var(--d-gap) + 44px) / 2);
}
@media (max-width: 899px) {
  :root { --d-r: min(31vw, 21vh); --d-mark-size: 18px; }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
html {
  overflow: hidden;
  background: var(--color-bg);
  color: var(--color-text);
}
body {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-mono);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
}
::selection { background: light-dark(rgba(8, 119, 90, .1), rgba(72, 188, 151, .15)); color: var(--color-text); }

.d-wrap {
  width: 100%;
  max-width: calc(var(--max-width) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.d-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.d-still {
  position: fixed;
  left: 50%;
  top: var(--d-cy);
  width: calc(var(--d-r) * 2.2857);
  height: auto;
  translate: -50% -50%;
  overflow: visible;
  pointer-events: none;
}
.d-still__edges line { stroke: var(--color-dodecahedron); stroke-width: 1.5px; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.d-still__nodes circle { fill: var(--color-text); }
.d-js .d-still { display: none; }
.d-js.d-nogl .d-still { display: block; }

.d-head {
  position: fixed;
  inset-inline: 0;
  top: calc(var(--d-cy) + var(--d-r) * 1.1 + var(--d-gap));
  z-index: 1;
}
.d-head__inner { display: flex; align-items: center; justify-content: center; }

.d-mark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: var(--d-mark-size);
  line-height: 1;
  letter-spacing: 0;
  color: var(--color-text);
  white-space: nowrap;
}
.d-mark__text { position: relative; display: inline-block; translate: 0 -.038em; }
.d-mark__dot { color: var(--color-accent); }
.d-mark__text::before,
.d-mark__text::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  clip-path: inset(50% 0 50% 0);
}
.d-mark__text::before { left: 2px; color: var(--color-logo-a); animation: wm-slice-a 7s steps(1) infinite; }
.d-mark__text::after { left: -2px; color: var(--color-logo-b); animation: wm-slice-b 7s steps(1) infinite; }

.d-foot {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-bottom: max(20px, env(safe-area-inset-bottom));
}
html[lang='en'] .d-foot { display: none; }

.d-addr { position: relative; display: inline-block; }
.d-addr__sum,
.d-addr__text {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-text-3);
}
.d-addr__sum {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  list-style: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.d-addr__sum::-webkit-details-marker { display: none; }
.d-addr__sum::marker { content: ''; }
.d-addr__sum::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 1px;
  margin-inline-end: 2px;
  background: var(--color-accent);
}
.d-addr__label { display: inline-block; }
.d-addr__icon { width: 9px; height: 9px; overflow: visible; }
.d-addr__icon path { stroke: currentColor; stroke-width: 1px; vector-effect: non-scaling-stroke; fill: none; }
.d-addr[open] .d-addr__v { visibility: hidden; }
.d-addr[open] .d-addr__sum { color: var(--color-text-2); }

.d-addr__sum:focus { outline: none; }
.d-addr__sum:focus-visible .d-addr__label {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: var(--radius-base);
}
.d-addr__sum:focus-visible,
.d-addr__sum:hover { color: var(--color-accent); }
@media (prefers-reduced-motion: no-preference) {
  .d-addr__sum:focus-visible .d-addr__label { animation: glitch-jitter var(--jitter-duration) steps(1) both; }
  @media (hover: hover) {
    .d-addr__sum:hover .d-addr__label { animation: glitch-jitter var(--jitter-duration) steps(1) both; }
  }
}
@media (hover: none) {
  .d-addr__sum:hover { color: var(--color-text-3); }
  .d-addr[open] .d-addr__sum:hover { color: var(--color-text-2); }
}
.d-addr__sum:active .d-addr__label { animation: none; transform: translate(var(--press-offset), var(--press-offset)); }

.d-addr__text {
  position: absolute;
  left: 100%;
  top: 0;
  display: flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding-inline-start: 6px;
  white-space: nowrap;
  color: var(--color-text);
}
.d-addr__sep { color: var(--color-text-3); white-space: pre; }
@media (max-width: 599px) {
  .d-addr__text {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-inline-start: 8px;
  }
  .d-addr__sep { display: none; }
}

@keyframes glitch-jitter {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-1px, 1px); }
  50% { transform: translate(1px, -1px); }
  75% { transform: translate(-1px, 0); }
  100% { transform: translate(0, 0); }
}
@keyframes d-tear {
  0% { transform: translateX(-6px); clip-path: inset(0 0 52% 0); }
  34% { transform: translateX(6px); clip-path: inset(38% 0 0 0); }
  67% { transform: translateX(-2px); clip-path: none; }
  100% { transform: none; clip-path: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .d-addr[open] .d-addr__text { animation: d-tear 120ms steps(3) both; }
}

@keyframes d-appear { from { visibility: hidden; } to { visibility: visible; } }
@keyframes d-open-top { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 100% 0); } }
@keyframes d-open-bottom { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(100% 0 0 0); } }
.d-boot body::before,
.d-boot body::after {
  content: '';
  position: fixed;
  left: 0;
  right: 0;
  z-index: 200;
  background: color-mix(in srgb, var(--color-bg) 25%, black);
  pointer-events: none;
}
.d-boot body::before {
  top: 0;
  height: var(--d-cy);
  box-shadow: inset 0 -1px 0 var(--color-accent);
  animation: d-open-top 320ms steps(8) 120ms both;
}
.d-boot body::after {
  top: var(--d-cy);
  bottom: 0;
  animation: d-open-bottom 320ms steps(8) 120ms both;
}
.d-boot .d-foot { animation: d-appear 1ms 900ms both; }

@keyframes wm-slice-a {
  0%, 93% { clip-path: inset(50% 0 50% 0); }
  93.5% { clip-path: inset(10% 0 70% 0); }
  94% { clip-path: inset(75% 0 5% 0); }
  94.5% { clip-path: inset(30% 0 50% 0); }
  95% { clip-path: inset(5% 0 80% 0); }
  95.5% { clip-path: inset(60% 0 20% 0); }
  96% { clip-path: inset(40% 0 40% 0); }
  96.5% { clip-path: inset(15% 0 65% 0); }
  97% { clip-path: inset(80% 0 5% 0); }
  97.5% { clip-path: inset(25% 0 55% 0); }
  98% { clip-path: inset(50% 0 30% 0); }
  98.5% { clip-path: inset(5% 0 75% 0); }
  99%, 100% { clip-path: inset(50% 0 50% 0); }
}
@keyframes wm-slice-b {
  0%, 93% { clip-path: inset(50% 0 50% 0); }
  93.5% { clip-path: inset(65% 0 15% 0); }
  94% { clip-path: inset(20% 0 60% 0); }
  94.5% { clip-path: inset(85% 0 0% 0); }
  95% { clip-path: inset(35% 0 45% 0); }
  95.5% { clip-path: inset(10% 0 70% 0); }
  96% { clip-path: inset(70% 0 10% 0); }
  96.5% { clip-path: inset(45% 0 35% 0); }
  97% { clip-path: inset(0% 0 85% 0); }
  97.5% { clip-path: inset(55% 0 25% 0); }
  98% { clip-path: inset(20% 0 60% 0); }
  98.5% { clip-path: inset(75% 0 10% 0); }
  99%, 100% { clip-path: inset(50% 0 50% 0); }
}

@media (prefers-reduced-motion: reduce) {
  .d-mark__text::before,
  .d-mark__text::after { animation: none; clip-path: inset(50% 0 50% 0); }
  .d-boot body::before,
  .d-boot body::after { display: none; }
}
