/* ============================================================
   Mental Club — base.css
   Design tokens, reset, typography, atmospheric layers, helpers.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Color */
  --bone:     #EFE7D6;
  --bone-2:   #E6DCC7;
  --ink:      #0E0D0B;
  --ink-soft: #1A1815;
  --mute:     #6B6558;
  --accent:   #FFF200;  /* highlighter yellow — single brand spark */
  --flare:    #FF4A1C;  /* vivid orange — rare emphasis */
  --clay:     #C9A892;
  --line:     rgba(14, 13, 11, .14);

  /* Type */
  --font-display: "Fraunces", ui-serif, Georgia, serif;
  --font-body:    "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  /* Geometry */
  --radius: 14px;
  --maxw:   1320px;
}

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

img, svg { display: block; max-width: 100%; }
button   { font: inherit; }

html { scroll-behavior: smooth; }
html, body { background: var(--bone); color: var(--ink); }
body {
  font-family: var(--font-body);
  font-optical-sizing: auto;
  font-feature-settings: "ss01", "ss02";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.skip-link {
  position: absolute;
  left: 16px; top: 16px;
  padding: 10px 14px;
  background: var(--ink); color: var(--bone);
  border-radius: 8px;
  font-family: var(--font-mono); font-size: 12px;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform .25s ease;
  z-index: 300;
}
.skip-link:focus { transform: translateY(0); }

.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;
}

/* ---------- Atmospheric layers ---------- */
.grain {
  pointer-events: none;
  position: fixed; inset: 0;
  z-index: 80; opacity: .07;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .7 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.vignette {
  pointer-events: none;
  position: fixed; inset: 0; z-index: 70;
  background: radial-gradient(120% 80% at 50% 0%, transparent 50%, rgba(14, 13, 11, .18) 100%);
}
.orb {
  position: fixed; z-index: 0; pointer-events: none;
  width: 54vmin; height: 54vmin; border-radius: 50%;
  left: 50%; top: 40%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 242, 0, .55),
    rgba(255, 74, 28, .25) 45%,
    transparent 70%
  );
  filter: blur(60px);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Custom cursor ---------- */
.cursor-dot,
.cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 200;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--bone);
}
.cursor-ring {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--bone);
  transition:
    width .25s ease,
    height .25s ease,
    background-color .25s ease,
    border-color .2s ease;
}
.cursor-ring.is-hot {
  width: 74px; height: 74px;
  background: rgba(255, 242, 0, .18);
  border-color: var(--accent);
}
@media (hover: none) {
  .cursor-dot,
  .cursor-ring { display: none; }
}
@media (hover: hover) {
  body { cursor: none; }
  a, button, input, textarea,
  .card, .founder, .tag, .step { cursor: none; }
}

/* ---------- Layout shell ---------- */
.shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px clamp(20px, 4vw, 56px);
  position: relative;
  z-index: 2;
}

/* ---------- Section header ---------- */
section { position: relative; }

.section-header {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  padding: 120px 0 40px;
  align-items: end;
}
.section-header .label {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--mute);
}
.section-header .label::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--ink);
}
.section-header h2 {
  font-family: var(--font-display); font-weight: 350;
  font-size: clamp(34px, 5.2vw, 78px);
  line-height: .96; letter-spacing: -0.025em;
}
.section-header h2 em {
  font-style: italic; font-weight: 300;
  color: var(--mute);
}

/* ---------- Scroll reveal (progressive enhancement) ---------- */
.reveal { transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal       { opacity: 0; transform: translateY(28px); }
.js .reveal.is-in { opacity: 1; transform: none; }
