/* ============================================================
   NTGRL — shared styles
   Very dark, very minimal. Edit tokens below to retheme fast.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Brand wordmark font (NTGRL only) — variable weight 200–700 */
@font-face {
  font-family: 'Oswald';
  src: url('assets/fonts/Oswald-VariableFont_wght.ttf') format('truetype-variations'),
       url('assets/fonts/Oswald-VariableFont_wght.ttf') format('truetype');
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #060606;
  --bg-soft: #0d0d0d;
  --fg: #f4f4f1;
  --muted: #8c8c87;
  --muted-dim: #55554f;
  --line: #1c1c1a;
  --glow: rgba(244, 244, 241, 0.06);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-brand: 'Oswald', 'Inter', -apple-system, sans-serif; /* NTGRL wordmark only */
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  height: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
}

/* faint vignette + grain so pure black doesn't feel flat */
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(ellipse at 50% 40%, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0) 55%),
              radial-gradient(ellipse at 50% 100%, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 60%);
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.035;
  mix-blend-mode: overlay;
  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.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }

button {
  font-family: inherit;
  cursor: pointer;
}

/* ---------- top-left wordmark (used on product page) ---------- */
.site-mark {
  position: fixed;
  top: 28px;
  left: 32px;
  z-index: 20;
  font-family: var(--font-brand);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--fg);
  opacity: 0.85;
  transition: opacity 0.3s var(--ease);
}
.site-mark:hover { opacity: 1; }

/* ---------- generic fade helpers ---------- */
.fade-in {
  opacity: 0;
  animation: fadeIn 1.2s var(--ease) forwards;
}
@keyframes fadeIn {
  to { opacity: 1; }
}

/* ---------- age gate ---------- */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 6, 6, 0.98);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s var(--ease), visibility 0s linear 0.6s;
}
.age-gate.is-visible {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s var(--ease);
}
.age-gate__panel {
  text-align: center;
  max-width: 420px;
  padding: 0 24px;
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.7s var(--ease) 0.15s, opacity 0.7s var(--ease) 0.15s;
}
.age-gate.is-visible .age-gate__panel {
  transform: translateY(0);
  opacity: 1;
}
.age-gate__mark {
  font-family: var(--font-brand);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--muted);
  margin-bottom: 28px;
}
.age-gate__question {
  font-family: var(--font-brand);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.5;
  color: var(--fg);
  margin: 0 0 40px;
}
.age-gate__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}
.age-gate__btn {
  min-width: 108px;
  padding: 13px 28px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--fg);
  font-family: var(--font-brand);
  font-size: 14px;
  letter-spacing: 0.14em;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.age-gate__btn:hover {
  border-color: var(--fg);
}
.age-gate__btn--primary {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.age-gate__btn--primary:hover {
  background: transparent;
  color: var(--fg);
}
.age-gate__decline {
  display: none;
}
.age-gate.declined .age-gate__question,
.age-gate.declined .age-gate__actions {
  display: none;
}
.age-gate.declined .age-gate__decline {
  display: block;
  font-family: var(--font-brand);
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- welcome window (studio note, shown before the age gate) ---------- */
.welcome-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 6, 6, 0.98);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s var(--ease), visibility 0s linear 0.6s;
}
.welcome-gate.is-visible {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s var(--ease);
}
.welcome-gate__panel {
  text-align: center;
  max-width: 520px;
  padding: 56px 48px;
  border: 1px solid var(--fg);
  margin: 0 24px;
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.7s var(--ease) 0.15s, opacity 0.7s var(--ease) 0.15s;
}
.welcome-gate.is-visible .welcome-gate__panel {
  transform: translateY(0);
  opacity: 1;
}
.welcome-gate__text {
  font-family: var(--font-brand);
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.65;
  color: var(--fg);
  margin: 0 0 28px;
}
.welcome-gate__sign {
  font-family: var(--font-brand);
  font-size: 15px;
  font-weight: 300;
  font-style: italic;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 40px;
}
.welcome-gate__btn {
  min-width: 108px;
  padding: 13px 28px;
  background: var(--fg);
  color: var(--bg);
  border: 1px solid var(--fg);
  font-family: var(--font-brand);
  font-size: 14px;
  letter-spacing: 0.14em;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.welcome-gate__btn:hover {
  background: transparent;
  color: var(--fg);
}
