/* =========================================================
   Play — brand stylesheet
   An imprint of Vasant J. Chandra.
   Dark slate / warm gold / classical serif language.
   ========================================================= */

:root {
  --bg:           #0a0a0c;
  --bg-2:         #101015;
  --surface:      #15151c;
  --surface-2:    #1c1c25;
  --line:         #26262f;
  --line-soft:    #1d1d25;

  --text:         #f1ede4;
  --text-mid:     #b9b3a4;
  --text-muted:   #7a7468;

  --gold:         #c9a96e;
  --gold-bright:  #e0c184;
  --gold-deep:    #a4884f;
  --gold-glow:    #fff5d1;
  --gold-soft:    rgba(201, 169, 110, 0.12);

  --cream:        #faf6ec;
  --cream-2:      #f3eddc;
  --ink:          #0d1525;

  --leaf:         #6a8a55;
  --sky:          #8fb4c8;
  --blush:        #d9a89a;
  --berry:        #a66478;
  --sun:          #e8c275;

  --serif:        "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:         "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --radius:       4px;
  --radius-lg:    14px;

  --max-w:        1240px;
  --gutter:       clamp(20px, 4vw, 56px);

  --ease:         cubic-bezier(.22, .61, .36, 1);
}

/* ════════════════════════════════════════════════════════════════
   LIGHT THEME — same brand language, brighter surface.
   Mirrors vasantjc.com's light mode exactly.
═════════════════════════════════════════════════════════════════ */
body.theme-light {
  --bg:           #faf6ec;
  --bg-2:         #f3eddc;
  --surface:      #faf6ec;
  --surface-2:    #f3eddc;
  --line:         #d9cba8;
  --line-soft:    #e8dfc7;

  --text:         #0d1525;
  --text-mid:     #1f2a40;
  --text-muted:   #6d6a5a;

  --gold:         #b8923f;
  --gold-bright:  #c9a96e;
  --gold-deep:    #8b6d2c;
  --gold-soft:    rgba(184, 146, 63, 0.10);

  --ink:          #faf6ec;
}

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

html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease);
}
section, .m-nav, .m-foot, .pullquote, .statement, .investment,
.std, .lineage-card, .aud-card, .pillar, .method-step, .skill-domain,
.claim, .stake, .game-card-mkt, .stats-row, .formula-labels {
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease),
              border-color 0.45s var(--ease);
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: var(--gold); color: #15110a; }

/* Layout */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Typography */
.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
}
.h-display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 7.6vw, 104px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
}
.h-section {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.005em;
  margin: 0;
}
.h-card {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.18;
  margin: 0 0 12px;
  color: var(--text);
}
.accent { color: var(--gold); font-style: italic; font-weight: 400; }
.lead {
  font-size: clamp(16px, 1.25vw, 18px);
  color: var(--text-mid);
  max-width: 60ch;
  margin: 0 0 16px;
}
.lead-cta {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 1.6vw, 24px);
  color: var(--gold);
  margin-top: 24px;
}
.small {
  font-size: 13px;
  color: var(--text-muted);
}

/* Brand nav */
.nav {
  position: sticky; top: 0;
  z-index: 50;
  padding: 18px 0;
  background: rgba(10, 10, 12, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
}
.brand-mark-img {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  filter: drop-shadow(0 0 16px rgba(224, 193, 132, 0.18));
}

/* ─────────────────────────────────────────────────────────────────
   The "Play." wordmark — a self-contained SVG.
   Renders identically across every browser; the gradient + sparkles
   live inside the SVG, so no CSS background-clip:text fragility.
   ───────────────────────────────────────────────────────────────── */
.play-mark {
  display: block;
  height: 52px;            /* visual height; matches the apex mark's optical scale */
  width: auto;
  overflow: visible;       /* let sparkles + halo escape the box */
  filter: drop-shadow(0 0 12px rgba(224, 193, 132, 0.18));
}
.play-mark--sm {
  height: 26px;
}

/* sparkles — each <g class="play-spk"> already positioned via SVG transform,
   we only animate the inner <path> for scale + opacity twinkle */
.play-spk path {
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
  animation: playSpkTwinkle 3.4s ease-in-out infinite;
  will-change: opacity, transform;
}
.play-spk-1 path { animation-delay: 0s;    }
.play-spk-2 path { animation-delay: 0.55s; }
.play-spk-3 path { animation-delay: 1.10s; }
.play-spk-4 path { animation-delay: 1.65s; }
.play-spk-5 path { animation-delay: 2.20s; }
.play-spk-6 path { animation-delay: 2.75s; }

@keyframes playSpkTwinkle {
  0%, 100% { opacity: 0;    transform: scale(0.25); }
  35%      { opacity: 1;    transform: scale(1.15); }
  50%      { opacity: 0.95; transform: scale(1.0);  }
  70%      { opacity: 0.5;  transform: scale(0.8);  }
}

/* respect users who don't want motion */
@media (prefers-reduced-motion: reduce) {
  .play-spk path { animation: none; opacity: 0.85; transform: scale(0.9); }
}

/* navigation link */
.nav-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mid);
  transition: color .25s var(--ease);
}
.nav-link:hover { color: var(--gold); }
.nav-link .arrow { transition: transform .3s var(--ease); }
.nav-link:hover .arrow { transform: translateX(3px); }

/* View transitions */
.view {
  opacity: 0;
  transform: translateY(8px);
  animation: viewIn .55s var(--ease) forwards;
}
@keyframes viewIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Visually hidden but accessible */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ─────────────────────────────────────────────────────────────────
   Minimal copyright footer
   ───────────────────────────────────────────────────────────────── */
.mini-foot {
  border-top: 1px solid var(--line-soft);
  margin-top: 96px;
  padding: 32px 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-align: center;
}
