/* Playhive — base: reset, typography, layout primitives, texture. */

*,*::before,*::after{ box-sizing:border-box; }
*{ margin:0; padding:0; }
html{ -webkit-text-size-adjust:100%; }
html.lenis,html.lenis body{ height:auto; }
.lenis.lenis-smooth{ scroll-behavior:auto !important; }

body{
  font-family:var(--font-body);
  font-size:var(--fs-body);
  line-height:1.6;
  color:var(--text);
  background:var(--bg-0);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}

img,svg,video{ display:block; max-width:100%; }
img{ height:auto; }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; color:inherit; background:none; border:none; cursor:pointer; }
input,textarea,select{ font:inherit; color:inherit; }
ul,ol{ list-style:none; }
:focus-visible{ outline:2px solid var(--honey); outline-offset:3px; border-radius:var(--r-xs); }

::selection{ background:var(--honey); color:var(--on-honey); }

/* Scrollbar */
::-webkit-scrollbar{ width:11px; height:11px; }
::-webkit-scrollbar-track{ background:var(--bg-0); }
::-webkit-scrollbar-thumb{ background:var(--bg-3); border-radius:99px; border:3px solid var(--bg-0); }
::-webkit-scrollbar-thumb:hover{ background:var(--honey-600); }

/* Typography */
h1,h2,h3,h4{ font-family:var(--font-display); font-weight:600; line-height:1.04; letter-spacing:-.02em; }
h1{ font-size:var(--fs-h1); }
h2{ font-size:var(--fs-h2); }
h3{ font-size:var(--fs-h3); }
p{ color:var(--text-2); }
strong{ color:var(--text); font-weight:600; }
.display{ font-family:var(--font-display); font-weight:700; font-size:var(--fs-display); line-height:.98; letter-spacing:-.03em; }

.eyebrow{
  font-family:var(--font-mono); font-size:var(--fs-label);
  text-transform:uppercase; letter-spacing:.18em; color:var(--honey);
  display:inline-flex; align-items:center; gap:.6em;
}
.eyebrow::before{ content:""; width:22px; height:1px; background:var(--honey); opacity:.6; }
.eyebrow--center::after{ content:""; width:22px; height:1px; background:var(--honey); opacity:.6; }

.mono{ font-family:var(--font-mono); }
.tabnum{ font-variant-numeric:tabular-nums; }
.muted{ color:var(--text-2); }
.dim{ color:var(--text-3); }
.amber{ color:var(--honey); }

/* Layout */
.wrap{ width:100%; max-width:var(--maxw); margin-inline:auto; padding-inline:var(--gutter); }
.wrap--wide{ max-width:1480px; }
.section{ padding-block:clamp(64px,9vw,128px); position:relative; }
.section--tight{ padding-block:clamp(48px,6vw,80px); }
.section-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:var(--sp-5); margin-bottom:var(--sp-7); flex-wrap:wrap; }
.section-head h2{ max-width:18ch; }
.section-head p{ max-width:46ch; }

.grid{ display:grid; gap:var(--sp-5); }
.cols-2{ grid-template-columns:repeat(2,1fr); }
.cols-3{ grid-template-columns:repeat(3,1fr); }
.cols-4{ grid-template-columns:repeat(4,1fr); }
@media (max-width:1024px){ .cols-4{ grid-template-columns:repeat(3,1fr);} }
@media (max-width:768px){ .cols-3,.cols-4{ grid-template-columns:repeat(2,1fr);} }
@media (max-width:520px){ .cols-2,.cols-3,.cols-4{ grid-template-columns:1fr;} }

/* Honeycomb hex helpers */
.hex{ clip-path:var(--hex); }

/* Film grain overlay (added once to body) */
.grain{
  position:fixed; inset:0; z-index:50; pointer-events:none;
  opacity:.05; mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Honeycomb faint background pattern utility */
.honeybg{ position:relative; }
.honeybg::before{
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none; opacity:.8;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(79,134,247,.08), transparent 60%),
    radial-gradient(50% 50% at 85% 20%, rgba(72,224,255,.04), transparent 60%);
}
.honeybg > *{ position:relative; z-index:1; }

/* Scroll-reveal initial states (only when JS is on, so content is safe without JS) */
.js [data-anim="reveal"]{ opacity:0; transform:translateY(26px); }
.js [data-anim="reveal-left"]{ opacity:0; transform:translateX(-30px); }
.js [data-anim="clip"]{ clip-path:inset(0 0 100% 0); }
.js [data-stagger] > *{ opacity:0; transform:translateY(22px); }

/* Reduced motion: never hide content, kill transforms */
@media (prefers-reduced-motion:reduce){
  .js [data-anim],.js [data-stagger] > *{ opacity:1 !important; transform:none !important; clip-path:none !important; }
  *,*::before,*::after{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}

/* Helpers */
.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; }
.center{ text-align:center; }
.stack{ display:flex; flex-direction:column; }
.row{ display:flex; align-items:center; }
.gap-2{ gap:var(--sp-2);} .gap-3{ gap:var(--sp-3);} .gap-4{ gap:var(--sp-4);} .gap-5{ gap:var(--sp-5);}
.divider{ height:1px; background:var(--line); border:0; }

/* Search inputs: strip native webkit decorations + brand caret */
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration{ -webkit-appearance:none; appearance:none; }
input,textarea{ caret-color:var(--honey); }
