/* StoneLink glass primitives.
   Copied from royrusse11/StoneLinkLLC `static/css/style.css` — the reusable
   subset only (background, glass card, eyebrow, buttons, chips, reveal).
   Page-specific rules deliberately left behind. */

/* ---------------- live background ---------------- */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  display: block;
}

/* readability scrims top + bottom */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 4, 14, 0.42) 0%, rgba(6, 4, 14, 0) 20%),
    linear-gradient(0deg, rgba(6, 4, 14, 0.6) 0%, rgba(6, 4, 14, 0) 26%);
}

/* ---------------- glass card ---------------- */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(125%);
  backdrop-filter: blur(var(--blur)) saturate(125%);
  border: 1px solid var(--hair);
  border-radius: 20px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 24px 60px rgba(0, 0, 0, 0.34);
}

/* Denser surfaces (list rows, tables) skip the blur — it is expensive to
   composite once there are dozens on screen, and invisible at this size. */
.glass-flat {
  background: var(--glass-strong);
  border: 1px solid var(--hair);
  border-radius: 16px;
}

/* ---------------- eyebrow ---------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
  margin: 0 0 30px;
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent);
  animation: breathe 3.5s ease-in-out infinite;
}
@keyframes breathe {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* ---------------- buttons ---------------- */
.btn {
  --bw: 1px;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 13px 22px;
  border-radius: 999px;
  border: var(--bw) solid var(--hair-strong);
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.25s var(--ease),
    background 0.25s,
    border-color 0.25s,
    box-shadow 0.25s;
}
.btn:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.btn .arrow {
  transition: transform 0.25s;
}
.btn:hover:not(:disabled) .arrow {
  transform: translateX(4px);
}
.btn-primary {
  background: rgba(247, 245, 251, 0.94);
  color: #15102a;
  border-color: transparent;
}
.btn-primary:hover:not(:disabled) {
  background: #fff;
  box-shadow:
    0 14px 44px rgba(0, 0, 0, 0.4),
    0 0 0 4px color-mix(in oklab, var(--accent) 30%, transparent);
}
.btn-block {
  width: 100%;
}

/* ---------------- chips ---------------- */
.tag-chip {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--hair);
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.04);
}

/* ---------------- display type ---------------- */
.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1;
  margin: 0;
}
.display em {
  font-style: italic;
  color: var(--accent);
}

/* ---------------- scroll reveal ---------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
[data-reveal].in {
  opacity: 1;
  transform: none;
}
[data-reveal][data-delay='1'] {
  transition-delay: 0.08s;
}
[data-reveal][data-delay='2'] {
  transition-delay: 0.16s;
}
[data-reveal][data-delay='3'] {
  transition-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
  .eyebrow .dot {
    animation: none;
  }
  [data-reveal] {
    transition-duration: 0.3s;
  }
}
