canvas {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
}

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

body {
  background: #111;
  color: #aaa;
  font-size: 1.2rem;
}

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: content-fade-in 6s ease-out forwards;
}

@keyframes content-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

p, li {
  font-family: monospace;
  line-height: 2;
  text-align: center;
}

.container p {
  margin-top: -0.75rem;
  margin-bottom: 0;
}

.inquiries {
  display: block;
  margin-top: 1.5rem;
}

.projects {
  display: block;
  margin-top: 2rem;
  max-width: 96%;
  font-family: monospace;
  font-size: clamp(0.55rem, 2.5vw, 1.2rem);
  line-height: 2;
  padding: 0 0.5em;
  background: var(--flyer-color, white);
  opacity: 0;
  animation: project-fade-in 2s ease-out 3s forwards;
}

@keyframes project-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.copyright {
  position: fixed;
  left: 1rem;
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  z-index: 2;
  color: var(--flyer-color, white);
  font-family: monospace;
  font-size: 0.75rem;
  opacity: 0;
  animation: copyright-fade-in 6s ease-out forwards;
}

@keyframes copyright-fade-in {
  from { opacity: 0; }
  to { opacity: 0.65; }
}

.project {
  display: block;
}

.project--featured {
  color: black;
  font-weight: normal;
}

.coming-soon {
  color: inherit;
}

.project-name {
  text-align: center;
  font-weight: bold;
}

ul {
  list-style: none;
  margin: 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

ul li {
  margin: 0 1rem;
}

h1 {
  text-indent: -10000px;
  background: url("zeptogon.svg?v=20261002.7") no-repeat center center;
  background-size: contain;
  width: 700px;
  max-width: 90%;
  height: 150px;
  max-height: 30%;
  margin: 2rem;
}

a, a:visited {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

a:hover, a:visited:hover {
  color: #bbb;
}

.tuning-panel {
  position: fixed;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  width: min(360px, calc(100vw - 1.5rem));
  max-height: calc(100vh - 1.5rem);
  overflow: auto;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 3px;
  background: rgba(12, 12, 12, 0.88);
  color: #bbb;
  font: 11px/1.3 monospace;
  backdrop-filter: blur(8px);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  animation: tuning-panel-fade-in 2s ease-out 60s forwards;
}

@keyframes tuning-panel-fade-in {
  from {
    visibility: visible;
    opacity: 0;
    pointer-events: auto;
  }
  to {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }
}

.tuning-panel summary {
  padding: 0.65rem 0.75rem;
  cursor: pointer;
  color: #ddd;
  user-select: none;
}

.tuning-panel__body {
  padding: 0 0.75rem 0.75rem;
}

.tuning-group {
  margin: 0 0 0.7rem;
  padding: 0.45rem 0 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.tuning-group legend {
  padding: 0 0.4rem 0 0;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tuning-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px 46px;
  gap: 0.55rem;
  align-items: center;
  min-height: 23px;
}

.tuning-control span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tuning-control input {
  width: 100%;
  margin: 0;
  accent-color: #aaa;
}

.tuning-control input[type="checkbox"] {
  width: auto;
  justify-self: start;
}

.tuning-control output {
  color: #eee;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.tuning-reset {
  width: 100%;
  padding: 0.4rem;
  border: 1px solid #555;
  border-radius: 2px;
  background: #222;
  color: #ccc;
  font: inherit;
  cursor: pointer;
}

.tuning-reset:hover {
  background: #333;
  color: white;
}

@media (prefers-reduced-motion: reduce) {
  .container,
  .projects,
  .copyright {
    opacity: 1;
    animation: none;
  }

  .copyright {
    opacity: 0.65;
  }
}
