/*
 * Vanisher website. Black metal, glass, ice. One stylesheet, vw- prefixed
 * classes, tokens only, external by design (strict CSP: no inline styles).
 */

/* ---------------------------------------------------------------- base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(1100px 600px at 82% -6%, rgba(143, 209, 245, 0.09), transparent 62%),
    radial-gradient(900px 640px at -12% 22%, rgba(94, 169, 214, 0.055), transparent 58%),
    radial-gradient(1400px 900px at 50% 118%, rgba(30, 42, 54, 0.5), transparent 60%),
    var(--vw-void);
  color: var(--vw-text-2);
  font-family: var(--vw-font-mono);
  font-size: var(--vw-text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* The technical grid, barely there. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(155, 220, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 220, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(1200px 800px at 50% 20%, rgba(0, 0, 0, 0.9), transparent 75%);
}

#vw-stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.vw-grain {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: url('../assets/grain.svg');
  opacity: 0.55;
}

main,
.vw-nav,
.vw-footer {
  position: relative;
  z-index: 1;
}

::selection {
  background: rgba(155, 220, 255, 0.3);
  color: var(--vw-text);
}

:focus-visible {
  outline: 2px solid var(--vw-ice-300);
  outline-offset: 3px;
  border-radius: 2px;
}

::-webkit-scrollbar {
  width: 10px;
}

@media (max-width: 768px) {
  ::-webkit-scrollbar {
    width: 0;
  }
}

::-webkit-scrollbar-track {
  background: var(--vw-void);
}

::-webkit-scrollbar-thumb {
  background: var(--vw-surface-high);
  border-radius: 5px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--vw-ice-400);
  text-decoration: none;
}

a:hover {
  color: var(--vw-ice-300);
}

.vw-skip {
  position: absolute;
  left: var(--vw-gutter);
  top: -60px;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--vw-surface-raised);
  color: var(--vw-ice-300);
  font-family: var(--vw-font-display);
  font-size: var(--vw-text-sm);
  text-transform: uppercase;
  letter-spacing: var(--vw-tracking-caps);
  transition: top var(--vw-dur-base) var(--vw-ease);
}

.vw-skip:focus {
  top: 12px;
}

.vw-wrap {
  max-width: var(--vw-wrap);
  margin-inline: auto;
  padding-inline: var(--vw-gutter);
}

section {
  scroll-margin-top: 84px;
}

/* ---------------------------------------------------------- type */

h1,
h2,
h3 {
  font-family: var(--vw-font-display);
  font-weight: 600;
  color: var(--vw-text);
  letter-spacing: 0.01em;
  line-height: 1.12;
  margin: 0;
}

.vw-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 var(--vw-space-5);
  font-family: var(--vw-font-display);
  font-size: var(--vw-text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--vw-tracking-caps);
  color: var(--vw-ice-400);
}

.vw-eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--vw-ice-400), transparent);
}

.vw-h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.75rem);
  max-width: 22ch;
}

.vw-lede {
  font-size: var(--vw-text-lg);
  color: var(--vw-text-2);
  max-width: 58ch;
}

.vw-ice-text {
  background: linear-gradient(180deg, var(--vw-ice-50) 8%, var(--vw-ice-400) 58%, var(--vw-ice-600) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------- buttons */

.vw-btn {
  --c: var(--vw-chamfer-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.6rem;
  font-family: var(--vw-font-display);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  cursor: pointer;
  border: 0;
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
  transition: transform var(--vw-dur-base) var(--vw-ease), box-shadow var(--vw-dur-base) var(--vw-ease),
    filter var(--vw-dur-base) var(--vw-ease);
}

.vw-btn-primary {
  background: linear-gradient(180deg, var(--vw-ice-300), var(--vw-ice-500) 88%);
  color: var(--vw-on-accent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, var(--vw-glow-ice);
}

.vw-btn-primary:hover {
  color: var(--vw-on-accent);
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, var(--vw-glow-ice-strong);
}

.vw-btn-ghost {
  background: linear-gradient(160deg, var(--vw-edge-strong), var(--vw-edge-hair) 45%, var(--vw-edge));
  color: var(--vw-ice-300);
  padding: 1px; /* the gradient is the 1px chamfered border */
}

.vw-btn-ghost > span {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: calc(0.9rem - 1px) calc(1.6rem - 1px);
  background: linear-gradient(180deg, var(--vw-glass-blur-top), var(--vw-glass-blur-bottom));
  clip-path: polygon(calc(var(--c) - 1px) 0, 100% 0, 100% calc(100% - var(--c) + 1px), calc(100% - var(--c) + 1px) 100%, 0 100%, 0 calc(var(--c) - 1px));
  transition: background var(--vw-dur-base) var(--vw-ease);
}

.vw-btn-ghost:hover {
  color: var(--vw-ice-50);
  transform: translateY(-1px);
}

.vw-btn-ghost:hover > span {
  background: linear-gradient(180deg, rgba(30, 42, 54, 0.8), rgba(12, 18, 25, 0.85));
}

.vw-btn:active {
  transform: translateY(0);
}

/* --------------------------------------------------------- chamfered glass card */

.vw-card {
  --c: var(--vw-chamfer);
  position: relative;
  padding: 1px;
  background: linear-gradient(165deg, var(--vw-edge-strong), var(--vw-edge-hair) 42%, var(--vw-edge) 90%);
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
}

.vw-card > .vw-card-in {
  height: 100%;
  padding: var(--vw-space-6);
  background: linear-gradient(180deg, var(--vw-glass-top), var(--vw-glass-bottom));
  clip-path: polygon(calc(var(--c) - 1px) 0, 100% 0, 100% calc(100% - var(--c) + 1px), calc(100% - var(--c) + 1px) 100%, 0 100%, 0 calc(var(--c) - 1px));
}

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

.vw-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(5, 7, 11, 0.88), rgba(5, 7, 11, 0.74));
  -webkit-backdrop-filter: blur(var(--vw-blur-md));
  backdrop-filter: blur(var(--vw-blur-md));
  border-bottom: 1px solid var(--vw-edge-hair);
}

.vw-nav-in {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--vw-space-4) var(--vw-space-8);
  padding-block: 0.85rem;
}

.vw-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.vw-brand img {
  height: 22px;
  width: auto;
}

.vw-nav-links {
  display: flex;
  gap: var(--vw-space-6);
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.vw-nav-links::-webkit-scrollbar {
  display: none;
}

.vw-nav-links a {
  font-family: var(--vw-font-display);
  font-size: var(--vw-text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--vw-text-muted);
  white-space: nowrap;
  padding-block: 0.35rem;
  transition: color var(--vw-dur-base) var(--vw-ease);
}

.vw-nav-links a:hover,
.vw-nav-links a.vw-active {
  color: var(--vw-ice-300);
}

.vw-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--vw-edge);
  background: var(--vw-tint-info);
  font-family: var(--vw-font-display);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--vw-tracking-caps);
  color: var(--vw-ice-300);
  white-space: nowrap;
}

.vw-chip::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--vw-ice-400);
  box-shadow: 0 0 8px var(--vw-ice-400);
  animation: vw-pulse 2.6s var(--vw-ease) infinite;
}

@keyframes vw-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

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

.vw-hero {
  position: relative;
  padding-block: clamp(4.5rem, 9vw, 8rem) clamp(3.5rem, 7vw, 6rem);
}

.vw-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--vw-space-10);
  align-items: center;
}

.vw-hero h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.5rem);
  line-height: 1.04;
  margin-bottom: var(--vw-space-6);
}

.vw-hero-lede {
  font-size: var(--vw-text-lg);
  max-width: 56ch;
  margin: 0 0 var(--vw-space-8);
}

.vw-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--vw-space-4);
  margin-bottom: var(--vw-space-8);
}

.vw-hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  margin: 0;
  padding-top: var(--vw-space-5);
  border-top: 1px solid var(--vw-edge-hair);
  font-size: var(--vw-text-sm);
  color: var(--vw-text-muted);
}

.vw-hero-note span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.vw-hero-note span::before {
  content: '';
  width: 5px;
  height: 5px;
  transform: rotate(45deg);
  background: var(--vw-ice-500);
}

/* The void mark in its haze. The glow is a background, not a box, so it can
   never push the page wide on small screens. */
.vw-hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
  background: radial-gradient(circle at 50% 50%, rgba(143, 209, 245, 0.13), transparent 62%);
}

.vw-hero-art img {
  position: relative;
  width: min(100%, 400px);
  filter: drop-shadow(0 24px 60px rgba(5, 7, 11, 0.9));
  animation: vw-drift 9s var(--vw-ease) infinite;
}

@keyframes vw-drift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ------------------------------------------------------------ facts */

.vw-facts {
  padding-block: var(--vw-space-10);
  border-block: 1px solid var(--vw-edge-hair);
  background: linear-gradient(180deg, rgba(12, 18, 25, 0.35), rgba(5, 7, 11, 0));
}

.vw-facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--vw-space-8);
}

.vw-fact {
  padding-top: var(--vw-space-5);
  border-top: 1px solid;
  border-image: linear-gradient(90deg, var(--vw-edge-strong), transparent 80%) 1;
}

.vw-fact h3 {
  font-size: 1.02rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--vw-ice-300);
  margin-bottom: var(--vw-space-3);
}

.vw-fact p {
  margin: 0;
  font-size: var(--vw-text-md);
  color: var(--vw-text-muted);
}

/* ------------------------------------------------------------- demo */

.vw-section {
  padding-block: clamp(4.5rem, 9vw, 8.5rem);
}

.vw-demo-head {
  max-width: 64ch;
  margin-bottom: var(--vw-space-10);
}

.vw-demo-head p {
  margin: var(--vw-space-5) 0 0;
  color: var(--vw-text-muted);
}

.vw-demo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(430px, 100%), 1fr));
  gap: var(--vw-space-6);
  max-width: 980px;
}

.vw-chat > .vw-card-in {
  display: flex;
  flex-direction: column;
  gap: var(--vw-space-4);
  padding: var(--vw-space-5);
  min-height: 320px;
}

.vw-chat-head {
  display: flex;
  align-items: center;
  gap: var(--vw-space-3);
  padding-bottom: var(--vw-space-4);
  border-bottom: 1px solid var(--vw-edge-hair);
}

.vw-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  font-family: var(--vw-font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--vw-ice-50);
  background: linear-gradient(160deg, var(--vw-surface-high), var(--vw-surface-raised));
  border: 1px solid var(--vw-edge);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.vw-chat-head-name {
  font-family: var(--vw-font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--vw-text);
}

.vw-chat-head-sub {
  font-size: var(--vw-text-xs);
  color: var(--vw-text-muted);
  letter-spacing: 0.06em;
}

.vw-online {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--vw-text-xs);
  color: var(--vw-success);
  letter-spacing: 0.08em;
}

.vw-online::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--vw-success);
  box-shadow: 0 0 6px var(--vw-success);
}

.vw-bubble-row {
  margin-top: auto;
  display: flex;
  flex-direction: column;
}

.vw-sender .vw-bubble-row {
  align-items: flex-end;
}

/* The wrap positions the motes; the bubble clips its own paint layer. */
.vw-bubble-wrap {
  position: relative;
  max-width: 88%;
}

.vw-bubble {
  position: relative;
  display: block;
  width: 100%;
  padding: var(--vw-space-4) var(--vw-space-5);
  background: transparent;
  border: 0;
  font: inherit;
  color: inherit;
  cursor: default;
}

.vw-bubble::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--vw-glass-top), var(--vw-glass-bottom));
  border: 1px solid var(--vw-edge);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: opacity var(--vw-dur-dissolve) var(--vw-ease);
}

.vw-recipient .vw-bubble::before {
  background:
    url('../assets/watermark.svg'),
    linear-gradient(180deg, var(--vw-glass-top), var(--vw-glass-bottom));
}

.vw-recipient .vw-bubble {
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

.vw-recipient .vw-bubble:focus-visible {
  outline-offset: 2px;
}

.vw-bubble p {
  position: relative;
  margin: 0;
  font-size: var(--vw-text-md);
  color: var(--vw-text);
}

/* Hidden until held: the blurred state. */
.vw-recipient .vw-bubble p {
  filter: blur(7px);
  opacity: 0.75;
  transition: filter 480ms var(--vw-ease), opacity 480ms var(--vw-ease),
    letter-spacing var(--vw-dur-dissolve) var(--vw-ease);
}

.vw-demo[data-state='holding'] .vw-recipient .vw-bubble p {
  filter: blur(0);
  opacity: 1;
}

/* Dissolution on both sides: paint fades, text smears, motes fly. */
.vw-demo[data-state='vanished'] .vw-bubble p {
  filter: blur(9px);
  opacity: 0;
  letter-spacing: 0.28em;
}

.vw-demo[data-state='vanished'] .vw-bubble::before {
  opacity: 0;
}

/* The hold hint inside the bubble. */
.vw-hold-hint {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 0.4rem;
  font-family: var(--vw-font-display);
  font-size: var(--vw-text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--vw-tracking-caps);
  color: var(--vw-ice-300);
  text-align: center;
  background: rgba(5, 7, 11, 0.18);
  opacity: 1;
  transition: opacity var(--vw-dur-fast) var(--vw-ease);
  pointer-events: none;
}

.vw-hold-hint svg {
  width: 22px;
  height: 22px;
  stroke: var(--vw-ice-400);
  animation: vw-press 2.4s var(--vw-ease) infinite;
}

@keyframes vw-press {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.75;
  }
  50% {
    transform: translateY(3px);
    opacity: 1;
  }
}

.vw-demo[data-state='holding'] .vw-hold-hint,
.vw-demo[data-state='vanished'] .vw-hold-hint {
  opacity: 0;
}

/* Fuse bar + countdown, recipient panel only. */
.vw-fuse {
  margin-top: var(--vw-space-3);
  width: 60%;
}

.vw-fuse-track {
  height: 2px;
  background: var(--vw-edge-hair);
  overflow: hidden;
}

.vw-fuse-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--vw-ice-600), var(--vw-ice-300));
  transform-origin: left;
}

.vw-demo[data-state='holding'] .vw-fuse-fill {
  animation: vw-drain 5s linear forwards;
}

@keyframes vw-drain {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

.vw-count {
  margin-top: 0.4rem;
  font-size: var(--vw-text-xs);
  color: var(--vw-ice-400);
  letter-spacing: 0.1em;
  opacity: 0;
  transition: opacity var(--vw-dur-fast) var(--vw-ease);
}

.vw-demo[data-state='holding'] .vw-count {
  opacity: 1;
}

/* Receipt line under the sender bubble. */
.vw-receipt {
  margin-top: var(--vw-space-3);
  font-size: var(--vw-text-xs);
  letter-spacing: 0.08em;
  color: var(--vw-text-muted);
  display: flex;
  gap: 0.5rem;
  align-items: center;
  transition: color var(--vw-dur-base) var(--vw-ease);
}

.vw-demo[data-state='holding'] .vw-receipt,
.vw-demo[data-state='vanished'] .vw-receipt {
  color: var(--vw-success);
}

/* Ghost state after the vanish. */
.vw-ghost {
  display: none;
  font-size: var(--vw-text-md);
  color: var(--vw-text-muted);
  border: 1px dashed var(--vw-edge-hair);
  padding: var(--vw-space-4) var(--vw-space-5);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.vw-ghost strong {
  color: var(--vw-ice-300);
  font-weight: 400;
}

.vw-demo[data-state='vanished'] .vw-ghost {
  display: block;
  animation: vw-ghost-in var(--vw-dur-slow) var(--vw-ease-enter) 500ms backwards;
}

@keyframes vw-ghost-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.vw-demo-reset {
  display: none;
  margin-top: auto;
  align-self: center;
  padding: 0.7rem 1.3rem;
  font-size: var(--vw-text-xs);
}

.vw-demo[data-state='vanished'] .vw-demo-reset {
  display: inline-flex;
  animation: vw-ghost-in var(--vw-dur-slow) var(--vw-ease-enter) 800ms backwards;
}

/* Motes: tiny particles the message breaks into. Endpoints in CSS, no JS math. */
.vw-mote {
  position: absolute;
  top: 46%;
  left: 46%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--vw-ice-400);
  opacity: 0;
  pointer-events: none;
}

.vw-mote:nth-of-type(1) { --mx: 52px;  --my: -58px; width: 5px; height: 5px; background: var(--vw-ice-300); }
.vw-mote:nth-of-type(2) { --mx: -46px; --my: -44px; background: var(--vw-ice-300); }
.vw-mote:nth-of-type(3) { --mx: 64px;  --my: -12px; width: 3px; height: 3px; background: var(--vw-ice-500); }
.vw-mote:nth-of-type(4) { --mx: -30px; --my: 38px;  width: 3px; height: 3px; background: var(--vw-ice-500); }
.vw-mote:nth-of-type(5) { --mx: 30px;  --my: 52px;  background: var(--vw-ice-600); }
.vw-mote:nth-of-type(6) { --mx: -62px; --my: 10px;  background: var(--vw-ice-600); }
.vw-mote:nth-of-type(7) { --mx: 8px;   --my: -74px; width: 2.5px; height: 2.5px; background: var(--vw-ice-600); }

.vw-demo[data-state='vanished'] .vw-mote {
  animation: vw-mote-fly 950ms var(--vw-ease) forwards;
}

@keyframes vw-mote-fly {
  0% {
    opacity: 0.95;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--mx), var(--my)) scale(0.3);
  }
}

/* ------------------------------------------------------------ steps */

.vw-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--vw-space-8);
  counter-reset: vw-step;
  margin-top: var(--vw-space-12);
}

.vw-step {
  position: relative;
  padding-top: var(--vw-space-6);
  border-top: 1px solid var(--vw-edge-hair);
}

.vw-step::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  background: var(--vw-ice-500);
  box-shadow: var(--vw-glow-ice);
}

.vw-step-n {
  font-size: var(--vw-text-sm);
  color: var(--vw-ice-400);
  letter-spacing: 0.18em;
  margin-bottom: var(--vw-space-3);
}

.vw-step h3 {
  font-size: 1.1rem;
  margin-bottom: var(--vw-space-3);
}

.vw-step p {
  margin: 0;
  font-size: var(--vw-text-md);
  color: var(--vw-text-muted);
}

/* --------------------------------------------------------- features */

.vw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--vw-space-6);
  margin-top: var(--vw-space-12);
}

.vw-feature {
  transition: transform var(--vw-dur-base) var(--vw-ease), box-shadow var(--vw-dur-base) var(--vw-ease),
    background var(--vw-dur-base) var(--vw-ease);
}

.vw-feature:hover {
  transform: translateY(-4px);
  background: linear-gradient(165deg, var(--vw-edge-strong), var(--vw-edge-hair) 42%, var(--vw-edge) 90%);
  box-shadow: var(--vw-glow-ice);
}

.vw-feature .vw-card-in {
  padding: var(--vw-space-6);
}

.vw-feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: var(--vw-space-5);
  color: var(--vw-ice-400);
  background: var(--vw-tint-info);
  border: 1px solid var(--vw-edge);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.vw-feature-icon svg {
  width: 22px;
  height: 22px;
}

.vw-feature h3 {
  font-size: 1.08rem;
  margin-bottom: var(--vw-space-3);
}

.vw-feature p {
  margin: 0;
  font-size: var(--vw-text-md);
  color: var(--vw-text-muted);
}

/* ---------------------------------------------------------- honesty */

.vw-honesty-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--vw-space-6);
  margin-top: var(--vw-space-12);
  max-width: 980px;
}

.vw-panel-tint {
  --c: var(--vw-chamfer);
  padding: 1px;
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
}

.vw-panel-tint > .vw-card-in {
  padding: var(--vw-space-8);
}

.vw-panel-good {
  background: linear-gradient(165deg, rgba(123, 224, 176, 0.5), rgba(123, 224, 176, 0.08) 45%, rgba(123, 224, 176, 0.14));
}

.vw-panel-warn {
  background: linear-gradient(165deg, rgba(245, 200, 107, 0.5), rgba(245, 200, 107, 0.08) 45%, rgba(245, 200, 107, 0.14));
}

.vw-panel-tint h3 {
  font-size: 1.15rem;
  margin-bottom: var(--vw-space-5);
}

.vw-panel-good h3 {
  color: var(--vw-success);
}

.vw-panel-warn h3 {
  color: var(--vw-warning);
}

.vw-panel-tint ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--vw-space-4);
}

.vw-panel-tint li {
  position: relative;
  padding-left: var(--vw-space-6);
  font-size: var(--vw-text-md);
  color: var(--vw-text-2);
}

.vw-panel-tint li::before {
  position: absolute;
  left: 0;
  top: 1px;
  font-size: var(--vw-text-md);
}

.vw-panel-good li::before {
  content: '✓';
  color: var(--vw-success);
}

.vw-panel-warn li::before {
  content: '!';
  color: var(--vw-warning);
  font-weight: 700;
}

.vw-quote {
  margin: var(--vw-space-12) auto 0;
  max-width: 34ch;
  text-align: center;
  font-family: var(--vw-font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.4;
  color: var(--vw-text);
}

.vw-quote em {
  font-style: normal;
}

/* ------------------------------------------------------------- live */

.vw-live {
  margin-top: var(--vw-space-12);
  max-width: 980px;
}

.vw-live .vw-card-in {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--vw-space-10);
  align-items: center;
  padding: clamp(var(--vw-space-6), 4vw, var(--vw-space-12));
}

.vw-live h3 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
}

.vw-live-copy p {
  margin: 0 0 var(--vw-space-4);
  font-size: var(--vw-text-md);
  color: var(--vw-text-2);
}

.vw-live-note {
  margin: var(--vw-space-6) 0 0;
  padding: var(--vw-space-4) var(--vw-space-5);
  border-left: 2px solid var(--vw-edge-strong);
  background: var(--vw-tint-info);
  font-size: var(--vw-text-sm);
  color: var(--vw-text-muted);
}

/* ---------------------------------------------------------- roadmap */

.vw-road {
  margin-top: var(--vw-space-12);
  max-width: 860px;
}

.vw-road-item {
  position: relative;
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: var(--vw-space-6);
  padding-block: var(--vw-space-6);
}

.vw-road-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: calc(var(--vw-space-6) + 34px);
  bottom: calc(-1 * var(--vw-space-6));
  left: 7px;
  width: 1px;
  background: linear-gradient(180deg, var(--vw-edge), var(--vw-edge-hair));
}

.vw-road-dot {
  position: relative;
  z-index: 1;
  width: 15px;
  height: 15px;
  margin-top: 4px;
  transform: rotate(45deg);
  background: var(--vw-surface-raised);
  border: 1px solid var(--vw-edge-strong);
}

.vw-road-item.vw-now .vw-road-dot {
  background: var(--vw-ice-400);
  box-shadow: var(--vw-glow-ice-strong);
  animation: vw-pulse 2.6s var(--vw-ease) infinite;
}

.vw-road-tag {
  padding-top: 2px;
  font-family: var(--vw-font-display);
  font-size: var(--vw-text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--vw-tracking-caps);
  color: var(--vw-text-muted);
}

.vw-now .vw-road-tag {
  color: var(--vw-ice-300);
}

.vw-road-body {
  grid-column: 2;
  grid-row: 1;
}

.vw-road-meta {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  grid-template-columns: 15px 1fr;
  gap: var(--vw-space-4);
}

.vw-road-body h3 {
  font-size: 1.12rem;
  margin-bottom: var(--vw-space-2);
}

.vw-road-body p {
  margin: 0;
  font-size: var(--vw-text-md);
  color: var(--vw-text-muted);
  max-width: 62ch;
}

/* -------------------------------------------------------------- faq */

.vw-faq {
  margin-top: var(--vw-space-12);
  max-width: 820px;
}

.vw-faq details {
  border-bottom: 1px solid var(--vw-edge-hair);
}

.vw-faq details:first-child {
  border-top: 1px solid var(--vw-edge-hair);
}

.vw-faq summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--vw-space-6);
  padding: var(--vw-space-5) 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--vw-font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--vw-text);
  transition: color var(--vw-dur-base) var(--vw-ease);
}

.vw-faq summary::-webkit-details-marker {
  display: none;
}

.vw-faq summary:hover {
  color: var(--vw-ice-300);
}

.vw-faq summary::after {
  content: '+';
  flex-shrink: 0;
  font-family: var(--vw-font-mono);
  font-size: 1.3rem;
  line-height: 1;
  color: var(--vw-ice-400);
  transition: transform var(--vw-dur-base) var(--vw-ease);
}

.vw-faq details[open] summary::after {
  transform: rotate(45deg);
}

.vw-faq details[open] summary {
  color: var(--vw-ice-300);
}

.vw-faq-answer {
  padding: 0 0 var(--vw-space-5);
  max-width: 68ch;
  font-size: var(--vw-text-md);
  color: var(--vw-text-muted);
}

/* -------------------------------------------------------------- cta */

.vw-cta {
  text-align: center;
}

.vw-cta .vw-card {
  max-width: 760px;
  margin: var(--vw-space-12) auto 0;
}

.vw-cta .vw-card-in {
  padding: clamp(var(--vw-space-10), 6vw, var(--vw-space-16)) var(--vw-space-8);
  display: grid;
  justify-items: center;
  gap: var(--vw-space-5);
}

.vw-cta img {
  width: 64px;
  margin-bottom: var(--vw-space-2);
}

.vw-cta h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
}

.vw-cta p {
  margin: 0;
  max-width: 46ch;
  color: var(--vw-text-muted);
}

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

.vw-footer {
  border-top: 1px solid var(--vw-edge-hair);
  background: linear-gradient(180deg, rgba(4, 6, 10, 0.5), var(--vw-metal-lo));
  padding-block: var(--vw-space-12) var(--vw-space-8);
}

.vw-footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--vw-space-10);
  align-items: flex-start;
  justify-content: space-between;
}

.vw-footer-brand img {
  width: 232px;
}

.vw-footer-tag {
  margin: var(--vw-space-4) 0 0;
  font-size: var(--vw-text-sm);
  color: var(--vw-text-muted);
  max-width: 30ch;
}

.vw-footer-links {
  display: flex;
  gap: clamp(var(--vw-space-8), 6vw, var(--vw-space-16));
  margin: 0;
  padding: 0;
  list-style: none;
}

.vw-footer-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--vw-space-3);
}

.vw-footer-links h3 {
  font-size: var(--vw-text-xs);
  text-transform: uppercase;
  letter-spacing: var(--vw-tracking-caps);
  color: var(--vw-text-muted);
  margin-bottom: var(--vw-space-2);
}

.vw-footer-links a {
  font-size: var(--vw-text-sm);
  color: var(--vw-text-2);
}

.vw-footer-links a:hover {
  color: var(--vw-ice-300);
}

.vw-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--vw-space-3) var(--vw-space-8);
  justify-content: space-between;
  margin-top: var(--vw-space-12);
  padding-top: var(--vw-space-6);
  border-top: 1px solid var(--vw-edge-hair);
  font-size: var(--vw-text-sm);
  color: var(--vw-text-muted);
}

/* ----------------------------------------------------- reveal on scroll */

.vw-js .vw-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 640ms var(--vw-ease-enter), transform 640ms var(--vw-ease-enter);
}

.vw-js .vw-reveal[data-d='1'] { transition-delay: 90ms; }
.vw-js .vw-reveal[data-d='2'] { transition-delay: 180ms; }
.vw-js .vw-reveal[data-d='3'] { transition-delay: 270ms; }

.vw-js .vw-reveal.vw-in {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------- subpages */

.vw-page {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.vw-page h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--vw-space-6);
}

.vw-page .vw-prose {
  max-width: 68ch;
}

.vw-page .vw-prose h2 {
  font-size: 1.25rem;
  margin: var(--vw-space-10) 0 var(--vw-space-4);
}

.vw-page .vw-prose p {
  color: var(--vw-text-2);
}

.vw-page .vw-prose ul {
  padding-left: 1.2rem;
  color: var(--vw-text-2);
}

.vw-404 {
  text-align: center;
  display: grid;
  place-items: center;
  gap: var(--vw-space-5);
  min-height: 60vh;
}

.vw-404 img {
  width: 120px;
  margin-inline: auto;
}

.vw-404 .vw-ice-text {
  font-family: var(--vw-font-display);
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 600;
}

/* -------------------------------------------------------- responsive */

@media (max-width: 1020px) {
  /* The mark becomes a quiet backdrop behind the text instead of a stacked
     block, so the headline and actions land in the first screenful. */
  .vw-hero {
    position: relative;
    padding-block: clamp(3rem, 7vw, 5rem) clamp(2.5rem, 6vw, 4rem);
  }

  .vw-hero-grid {
    grid-template-columns: 1fr;
    gap: var(--vw-space-6);
  }

  .vw-hero-art {
    position: absolute;
    inset: 0;
    z-index: 0;
    min-height: 0;
    pointer-events: none;
  }

  .vw-hero-art img {
    width: min(72vw, 360px);
    opacity: 0.5;
    filter: drop-shadow(0 24px 60px rgba(5, 7, 11, 0.9));
    animation: none;
  }

  .vw-hero-grid > div:first-child {
    position: relative;
    z-index: 1;
  }

  .vw-hero h1 {
    font-size: clamp(2.4rem, 8.6vw, 3.3rem);
  }

  .vw-hero-lede {
    font-size: var(--vw-text-md);
  }

  .vw-hero-ctas {
    margin-bottom: var(--vw-space-6);
  }

  .vw-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .vw-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .vw-facts-grid {
    grid-template-columns: 1fr;
    gap: var(--vw-space-6);
  }

  .vw-steps {
    grid-template-columns: 1fr;
  }

  .vw-grid {
    grid-template-columns: 1fr;
  }

  .vw-honesty-grid {
    grid-template-columns: 1fr;
  }

  .vw-live .vw-card-in {
    grid-template-columns: 1fr;
    gap: var(--vw-space-6);
  }

  .vw-road-item {
    grid-template-columns: 15px 1fr;
    gap: var(--vw-space-2) var(--vw-space-4);
  }

  /* The 15px track fits the dot, not the word — hoist the tag out of it
     and set it above the body as its label line. */
  .vw-road-meta {
    display: contents;
  }

  .vw-road-dot {
    grid-column: 1;
    grid-row: 1;
  }

  .vw-road-tag {
    grid-column: 2;
    grid-row: 1;
    padding-top: 0;
  }

  .vw-road-body {
    grid-column: 2;
    grid-row: 2;
  }

  .vw-nav-wrap {
    order: 3;
    width: 100%;
    flex: none;
    min-width: 0;
  }

  .vw-nav-links {
    width: 100%;
    flex: none;
    /* --vw-more-l/r are 0/1 flags set by main.js: an edge fades only
       while more items live beyond it, so the hint never lies. */
    --vw-more-l: 0;
    --vw-more-r: 1;
    mask-image: linear-gradient(90deg,
      transparent 0,
      #000 calc(var(--vw-more-l) * 30px),
      #000 calc(100% - var(--vw-more-r) * 30px),
      transparent 100%);
    -webkit-mask-image: linear-gradient(90deg,
      transparent 0,
      #000 calc(var(--vw-more-l) * 30px),
      #000 calc(100% - var(--vw-more-r) * 30px),
      transparent 100%);
  }
}

/* ---------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .vw-js .vw-reveal {
    opacity: 1;
    transform: none;
  }
}
