/* Víbrur Games — dromi.is */

:root {
  --bg: #b0c6d8;
  --sky-top: #a3bdd4;
  --sky-mid: #bdcfdf;
  --sky-low: #dfe9f0;
  --ink: #2f3e4d;
  --dim: #61788a;
  --faint: #8ea4b4;
  --line: rgba(47, 62, 77, 0.16);
  --hi: #f6fafc;
  --serif: Georgia, 'Times New Roman', serif;
  --mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;
}

* { box-sizing: border-box; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.75;
}

body {
  background: linear-gradient(180deg,
    var(--sky-top) 0%,
    var(--sky-mid) 55%,
    var(--sky-low) 100%);
  background-attachment: fixed;
}

html { scroll-behavior: smooth; }

::selection { background: var(--ink); color: var(--hi); }

a { color: var(--ink); text-decoration: none; }

/* ---- atmosphere layers ---- */

#grain {
  position: fixed; inset: -60px;
  pointer-events: none;
  z-index: 40;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(4) infinite;
}

@keyframes grain {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-22px, 14px); }
  50%  { transform: translate(14px, -20px); }
  75%  { transform: translate(-8px, -12px); }
  100% { transform: translate(0, 0); }
}

/* a soft patch of sunlight; drifts on its own when you go idle */
#light {
  position: fixed;
  left: 0; top: 0;
  width: 90vmax; height: 90vmax;
  margin-left: -45vmax; margin-top: -45vmax;
  pointer-events: none;
  z-index: 1;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.09) 30%,
    rgba(255, 255, 255, 0.0) 62%);
  will-change: transform;
}

#motes {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 2;
}

/* a cloud crossing the set lights, every so often */
#cloud {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 3;
  background: #3a4f63;
  opacity: 0;
  animation: cloudpass 57s ease-in-out infinite;
}

@keyframes cloudpass {
  0%, 74%, 100% { opacity: 0; }
  84%           { opacity: 0.07; }
  90%           { opacity: 0.05; }
  94%           { opacity: 0.08; }
}

@media (prefers-reduced-motion: reduce) {
  #grain { animation: none; }
  #cloud { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---- nav ---- */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 1.1rem 1.6rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: lowercase;
}

nav .wordmark {
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink);
}

nav .links { display: flex; gap: 1.6rem; }

nav .links a {
  color: var(--dim);
  transition: color 0.5s ease, letter-spacing 0.5s ease;
}

nav .links a:hover {
  color: var(--ink);
  letter-spacing: 0.26em;
}

/* ---- hero ---- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 4;
}

.hero h1 {
  font-weight: normal;
  font-size: clamp(1.5rem, 5.4vw, 3rem);
  letter-spacing: 0.42em;
  text-indent: 0.42em; /* balance the trailing letter-space */
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
  text-align: center;
}

.hero h1 span {
  display: inline-block;
  transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 1.6s ease;
}

.hero h1 span:hover {
  transform: translateY(-3px);
  opacity: 0.55;
  transition-duration: 0.18s;
}

.beacon-row {
  margin-top: 4.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.beacon {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--hi);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5); opacity: 0.5; }
  50%      { box-shadow: 0 0 18px 4px rgba(255, 255, 255, 0.3); opacity: 1; }
}

.soon {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.6em;
  text-indent: 0.6em;
  color: var(--dim);
  text-transform: lowercase;
  animation: breathe 7s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 0.35; }
  46%      { opacity: 0.9; }
  52%      { opacity: 0.5; }
  58%      { opacity: 0.85; }
}

.scrollcue {
  position: absolute;
  bottom: 2.4rem;
  left: 50%;
  width: 1px; height: 44px;
  background: linear-gradient(var(--faint), transparent);
  overflow: hidden;
}

.scrollcue::after {
  content: "";
  position: absolute;
  left: 0; top: -40%;
  width: 100%; height: 40%;
  background: var(--ink);
  animation: drip 3.2s ease-in infinite;
}

@keyframes drip {
  0%   { top: -40%; opacity: 0; }
  30%  { opacity: 0.7; }
  100% { top: 110%; opacity: 0; }
}

/* ---- sections ---- */

main {
  position: relative;
  z-index: 4;
  max-width: 38rem;
  margin: 0 auto;
  padding: 0 1.5rem 8rem;
}

section { padding: 9rem 0 2rem; }

.sec-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: normal;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0 0 2.6rem;
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.sec-label::before {
  content: attr(data-index);
  color: var(--faint);
}

.sec-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
  align-self: center;
}

section p { margin: 0 0 1.5rem; color: var(--ink); }

section a { text-decoration: underline; text-underline-offset: 3px; }

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1.4s ease, transform 1.4s ease;
}

.reveal.on { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- redacted placeholder copy (awaiting real text) ---- */

.redacted { margin: 0 0 1.5rem; }

.redacted i {
  display: block;
  height: 0.85em;
  margin: 0.55em 0;
  background: var(--line);
  animation: redact 9s ease-in-out infinite;
}

.redacted i:nth-child(2) { width: 92%; animation-delay: 1.2s; }
.redacted i:nth-child(3) { width: 78%; animation-delay: 2.6s; }
.redacted i:nth-child(4) { width: 44%; animation-delay: 3.8s; }

@keyframes redact {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 0.4; }
}

/* ---- team ---- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 2.2rem;
}

.member { text-align: left; }

.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
  margin-bottom: 0.9rem;
}

.portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.25) contrast(1.03);
}

.portrait.empty::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.06;
}

.portrait.empty::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 4px; height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: var(--faint);
  animation: pulse 5s ease-in-out infinite;
}

.member .name {
  font-size: 0.95rem;
  color: var(--ink);
  margin: 0 0 0.15rem;
}

.member .role {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: lowercase;
  color: var(--dim);
  margin: 0;
}

.member .name .bar,
.member .role .bar {
  display: inline-block;
  width: 5.5em;
  height: 0.7em;
  background: var(--line);
  animation: redact 9s ease-in-out infinite;
}

.member .role .bar { width: 3.5em; height: 0.6em; }

/* ---- projects ---- */

.project-empty {
  border: 1px dashed var(--line);
  padding: 4.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}

.project-empty .idx {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  color: var(--faint);
}

.project-empty .tba {
  font-size: 1.05rem;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  text-transform: uppercase;
  color: var(--ink);
}

.shimmer {
  width: 130px;
  height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: "";
  position: absolute;
  left: -40%; top: 0;
  width: 40%; height: 100%;
  background: var(--dim);
  animation: sweep 4.6s ease-in-out infinite;
}

@keyframes sweep {
  0%   { left: -40%; }
  60%, 100% { left: 110%; }
}

/* ---- support page ---- */

.page {
  min-height: 72vh;
  padding-top: 22vh;
}

.support-options {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.6rem;
}

.support-btn {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  color: var(--ink);
  border: 1px solid var(--faint);
  padding: 0.85rem 2rem;
  text-decoration: none !important;
  transition: border-color 0.5s ease, color 0.5s ease, background 0.5s ease;
}

.support-btn:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.35);
}

.support-btn.ghost {
  border-style: dashed;
  color: var(--faint);
  pointer-events: none;
}

/* ---- legal / policy pages ---- */

.legal .updated {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: lowercase;
  color: var(--dim);
  margin: 0 0 2.6rem;
}

.legal .lede { color: var(--ink); }

.legal h3 {
  font-size: 1rem;
  font-weight: normal;
  color: var(--ink);
  margin: 2.8rem 0 0.8rem;
}

.legal ul {
  margin: 0 0 1.5rem;
  padding-left: 1.2rem;
  color: var(--ink);
}

.legal li { margin: 0 0 0.6rem; }

/* ---- footer ---- */

footer {
  position: relative;
  z-index: 4;
  border-top: 1px solid var(--line);
  margin-top: 4rem;
  padding: 3rem 1.6rem 3.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 3rem;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--dim);
}

footer .col { display: flex; flex-direction: column; gap: 0.5rem; }

footer a { color: var(--dim); transition: color 0.5s ease; }
footer a:hover { color: var(--ink); }

footer a.pending {
  color: var(--faint);
  pointer-events: none;
}

#clock { color: var(--faint); font-variant-numeric: tabular-nums; }

@media (max-width: 540px) {
  nav .links { gap: 1rem; }
  section { padding: 6.5rem 0 1.5rem; }
  .hero h1 {
    font-size: 1.15rem;
    letter-spacing: 0.34em;
    text-indent: 0.34em;
  }
}
