/* ============================================
   VOCAÇÃO — Editorial Warm Redesign
   Tipografia: Instrument Serif + Manrope
   ============================================ */

:root {
  /* Cor */
  --bg: oklch(0.965 0.012 75);          /* off-white quente */
  --bg-2: oklch(0.93 0.018 70);         /* areia */
  --bg-3: oklch(0.20 0.018 50);         /* near-black quente */
  --ink: oklch(0.20 0.018 50);
  --ink-2: oklch(0.36 0.018 55);        /* texto secundário */
  --ink-3: oklch(0.55 0.020 60);        /* meta */
  --line: oklch(0.85 0.015 70);         /* divisórias */
  --line-2: oklch(0.78 0.020 65);
  --accent: oklch(0.58 0.16 42);        /* terracota */
  --accent-ink: oklch(0.97 0.012 75);
  --accent-soft: oklch(0.92 0.04 50);

  /* Tipografia */
  --display: "Fraunces", "Times New Roman", serif;
  --body: "Geist", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", monospace;

  /* Espaço */
  --pad: clamp(20px, 4vw, 56px);
  --maxw: 1320px;
  --radius: 14px;

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-image:
    radial-gradient(1400px 800px at 80% -10%, color-mix(in oklab, var(--accent) 5%, transparent), transparent 70%),
    radial-gradient(1200px 700px at -10% 30%, color-mix(in oklab, oklch(0.85 0.02 80) 30%, transparent), transparent 70%);
  background-attachment: fixed;
}

/* Grain overlay */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  opacity: 0.05;
  z-index: 100;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
body.no-grain::before { display: none; }

/* Tipografia base */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 360;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  letter-spacing: -0.022em;
  line-height: 1.0;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(58px, 9vw, 148px); font-variation-settings: "opsz" 144, "SOFT" 50; }
h2 { font-size: clamp(40px, 6vw, 88px); font-variation-settings: "opsz" 144, "SOFT" 40; }
h3 { font-size: clamp(28px, 3.4vw, 44px); font-variation-settings: "opsz" 100, "SOFT" 30; }
h4 { font-size: clamp(22px, 2.4vw, 30px); font-variation-settings: "opsz" 60, "SOFT" 20; }

em, .italic { font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 100; }
.accent-ink { color: var(--accent); }

p { margin: 0; text-wrap: pretty; }
.lede { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--ink-2); max-width: 56ch; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: currentColor;
}

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

/* Containers */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
section { position: relative; }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px 0;
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: -0.02em;
}
.brand .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 20%, transparent);
}
.nav-links {
  display: flex; align-items: center; gap: 28px;
  font-size: 14px;
  color: var(--ink-2);
}
.nav-links a { transition: color .2s; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); }

@media (max-width: 980px) {
  .nav-links { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}
.btn-arrow {
  width: 16px; height: 16px;
  transition: transform .3s var(--ease);
}
.btn:hover .btn-arrow { transform: translate(3px, -3px); }

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
/* When document was hidden at reveal time, skip transitions so the end-state
   is reached instantly (browsers freeze CSS transitions in background tabs). */
.no-anim .reveal,
.no-anim .reveal.in {
  transition: none !important;
  animation: none !important;
}
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }
.reveal[data-d="6"] { transition-delay: .48s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
