/* ============================================================
   PRAGMASSIVE v2 — Editorial / Kinetic
   Foundation: tokens, fonts, type, base
   ============================================================ */

@font-face {
  font-family: 'PP Editorial';
  src: url('fonts/PPEditorialNew-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PP Editorial';
  src: url('fonts/PPEditorialNew-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  /* Italic synthesized — real italic file would replace this */
}
@font-face {
  font-family: 'Helvetica Neue LT';
  src: url('fonts/HelveticaNeueLTPro-Roman.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Tone */
  --ink:           #0A0A0A;   /* near-black */
  --ink-2:         #141414;   /* surface */
  --ink-3:         #1C1C1C;
  --paper:         #F2F0E9;   /* warm off-white for light sections */
  --paper-2:       #E8E5DC;
  --bone:          #FAF7EE;

  /* Accent — lime from logo */
  --lime:          #AEFF4C;
  --lime-soft:     #C9FF85;
  --lime-dim:      #6BCC1F;

  /* Text */
  --fg:            #F4F2EB;
  --fg-2:          rgba(244,242,235,0.72);
  --fg-3:          rgba(244,242,235,0.45);
  --fg-on-paper:   #0A0A0A;
  --fg-on-paper-2: rgba(10,10,10,0.62);
  --fg-on-paper-3: rgba(10,10,10,0.35);

  /* Lines */
  --hair:          rgba(244,242,235,0.14);
  --hair-strong:   rgba(244,242,235,0.28);
  --hair-paper:    rgba(10,10,10,0.12);
  --hair-paper-strong: rgba(10,10,10,0.28);

  /* Gradient (biometric — lime through cyan-tinged green) */
  --grad: linear-gradient(135deg, #AEFF4C 0%, #5BE3B8 50%, #2BC0E4 100%);
  --grad-soft: linear-gradient(135deg, rgba(174,255,76,0.12), rgba(91,227,184,0.06) 50%, rgba(43,192,228,0.10));

  /* Type scale (editorial — display sizes are large but contained) */
  --display-1: clamp(3rem, 9vw, 8.5rem);
  --display-2: clamp(2.5rem, 7vw, 6.5rem);
  --display-3: clamp(2rem, 5vw, 4.5rem);
  --title:     clamp(1.5rem, 2.8vw, 2.4rem);
  --body:      1rem;
  --small:     0.78rem;
  --micro:     0.66rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: 'Helvetica Neue LT', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: var(--body);
  line-height: 1.55;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  cursor: none;  /* custom cursor */
  font-synthesis: none;
}
@media (max-width: 900px), (pointer: coarse) {
  body { cursor: auto; }
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: none; background: transparent; border: 0; color: inherit; padding: 0; }
@media (pointer: coarse) { button { cursor: pointer; } }

::selection { background: var(--lime); color: var(--ink); }

/* ---------- Type primitives ---------- */
.editorial {
  font-family: 'PP Editorial', 'Times New Roman', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 0.92;
  text-wrap: balance;
}
.editorial em { font-style: italic; }

.display-1 { font: 400 var(--display-1)/0.9 'PP Editorial', serif; letter-spacing: -0.03em; text-wrap: balance; }
.display-2 { font: 400 var(--display-2)/0.93 'PP Editorial', serif; letter-spacing: -0.025em; text-wrap: balance; }
.display-3 { font: 400 var(--display-3)/0.98 'PP Editorial', serif; letter-spacing: -0.02em; text-wrap: balance; }

.mono {
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: var(--small);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Helvetica Neue LT', Helvetica, Arial, sans-serif;
  font-size: var(--micro);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.label::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 2.5rem);
}
.wrap--narrow { max-width: 1200px; }

.section {
  position: relative;
  padding: clamp(5rem, 12vh, 9rem) 0;
}
.section--ink   { background: var(--ink); color: var(--fg); }
.section--paper { background: var(--paper); color: var(--fg-on-paper); }
.section--paper .label { color: var(--fg-on-paper-2); }

/* Hairlines */
.hair-top    { border-top: 1px solid var(--hair); }
.hair-bottom { border-bottom: 1px solid var(--hair); }
.section--paper .hair-top    { border-top-color: var(--hair-paper); }
.section--paper .hair-bottom { border-bottom-color: var(--hair-paper); }

/* ---------- Reveal (entry only) ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s cubic-bezier(0.22,1,0.36,1), transform 1s cubic-bezier(0.22,1,0.36,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

/* mask-reveal — clip from bottom */
.mask-reveal { display: inline-block; overflow: hidden; }
.mask-reveal > span { display: inline-block; transform: translateY(110%); transition: transform 1s cubic-bezier(0.22,1,0.36,1); }
.mask-reveal.in > span { transform: none; }
.mask-reveal[data-delay="1"] > span { transition-delay: 0.06s; }
.mask-reveal[data-delay="2"] > span { transition-delay: 0.12s; }
.mask-reveal[data-delay="3"] > span { transition-delay: 0.18s; }
.mask-reveal[data-delay="4"] > span { transition-delay: 0.24s; }
.mask-reveal[data-delay="5"] > span { transition-delay: 0.30s; }
.mask-reveal[data-delay="6"] > span { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .mask-reveal > span { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Color word — lime accent */
.lime { color: var(--lime); }
.italic { font-style: italic; }
