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

:root {
  --bg: #2a2d1a;
  --fg: #e4ead8;
  --green-bright: #8a9e6a;
  --green-dim: #2d5a1e;
  --green-glow: rgba(126,200,80,0.16);
  --serif: 'Cormorant Garamond', Georgia, serif;
}

html, body {
  width: 100%; height: 100%;
  background: var(--bg);
  color: var(--fg);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  touch-action: none;
}

/* Grain */
body::after {
  content: '';
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.035; pointer-events: none; z-index: 1000;
}

/* Cursor — hidden on touch devices */
.cursor,
.cursor-ring {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }

  .cursor {
    display: block;
    position: fixed; width: 4px; height: 4px;
    background: var(--green-bright); border-radius: 50%;
    pointer-events: none; z-index: 9999;
    transform: translate(-50%,-50%);
    transition: transform 0.15s ease;
  }
  .cursor-ring {
    display: block;
    position: fixed; width: 28px; height: 28px;
    border: 1px solid var(--green-dim); border-radius: 50%;
    pointer-events: none; z-index: 9998;
    transform: translate(-50%,-50%);
    transition: width 0.4s ease, height 0.4s ease, border-color 0.3s;
  }
}

/* Canvas */
canvas#bg {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 0; opacity: 0.55;
  pointer-events: none;
}

/* Vignette */
.vignette {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at center, transparent 20%, rgba(0,0,0,0.92) 100%);
  pointer-events: none; z-index: 1;
}

/* Stage */
.stage {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 10;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  /* Mobile Safari 100vh fix */
  min-height: 100vh;
  min-height: -webkit-fill-available;
  min-height: 100dvh;
}

.center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1.5rem;
}

.tagline {
  font-family: 'Inter', sans-serif;
  /* margin instead of flex gap: Safari < 14.1 ignores gap in flexbox */
  margin-top: 1.2rem;
  font-size: 14px; /* fallback for browsers without clamp() */
  font-size: clamp(12px, 2.2vw, 18px);
  font-weight: 300;
  letter-spacing: 0.35em;
  color: var(--green-bright);
  opacity: 0;
  -webkit-animation: appear 2.4s cubic-bezier(0.16,1,0.3,1) 1.8s forwards;
  animation: appear 2.4s cubic-bezier(0.16,1,0.3,1) 1.8s forwards;
  text-transform: uppercase;
}


.wordmark {
  font-family: var(--serif);
  font-size: 8vw; /* fallback for browsers without clamp() */
  font-size: clamp(28px, 8vw, 140px);
  font-weight: 200;
  letter-spacing: 0.12em;
  color: var(--fg);
  opacity: 0;
  white-space: nowrap;
  -webkit-animation: appear 2.4s cubic-bezier(0.16,1,0.3,1) 0.6s forwards;
  animation: appear 2.4s cubic-bezier(0.16,1,0.3,1) 0.6s forwards;
  text-shadow: 0 0 80px var(--green-glow);
  -webkit-user-select: none;
  user-select: none;
  will-change: opacity;
}

@-webkit-keyframes appear {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes appear {
  from { opacity: 0; }
  to   { opacity: 1; }
}


