/* ============================================================
   MANIFESTO LAB — Design System / Base
   Direção: Quiet Luxury / Kinetic Editorial
   ------------------------------------------------------------
   Sistema declarado:
   - Tipo fluido (clamp) com escala editorial
   - Cor: preto profundo base · branco quente · verde como acento raro
   - Ritmo vertical generoso · grid de 12 colunas
   - Tipografia: Cormorant Garamond (display/itálico) + Montserrat (texto, 300)
   ============================================================ */

/* Cormorant Garamond (display) + Hanken Grotesk (texto — stand-in grátis da Neue Montreal).
   Para usar a Neue Montreal real: adicione os @font-face e troque --font-text. */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500;1,600&family=Hanken+Grotesk:wght@300;400;500;600&display=swap");

:root {
  /* ---- Paleta ---- */
  --c-black: #0A0A0A;
  --c-white: #F8F5F0;
  --c-beige: #D8D0C6;
  --c-graphite: #707070;
  --c-green: #1F332C;
  --c-silver: #C8C8C8;

  /* triplets p/ alpha */
  --rgb-black: 10, 10, 10;
  --rgb-white: 248, 245, 240;
  --rgb-green: 31, 51, 44;

  /* contexto de cor (sobrescrito por .section-dark / .section-light) */
  --fg: var(--c-white);
  --bg: var(--c-black);
  --fg-rgb: var(--rgb-white);
  --line: rgba(var(--rgb-white), 0.14);

  /* ---- Tipografia ---- */
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  /* stand-in da Neue Montreal — troque por "Neue Montreal" se tiver os arquivos */
  --font-text: "Hanken Grotesk", "Neue Montreal", system-ui, sans-serif;

  /* escala fluida */
  --fs-display: clamp(2.75rem, 9.5vw, 9.5rem);
  --fs-h1: clamp(2.4rem, 7vw, 5.5rem);
  --fs-h2: clamp(2rem, 5vw, 4rem);
  --fs-h3: clamp(1.5rem, 3vw, 2.4rem);
  --fs-quote: clamp(1.7rem, 4.6vw, 3.6rem);
  --fs-lead: clamp(1.05rem, 1.2vw, 1.3rem);
  --fs-body: 1rem;
  --fs-small: 0.8rem;
  --fs-eyebrow: 0.72rem;

  --tracking-wide: 0.18em;
  --tracking-eyebrow: 0.32em;

  /* ---- Espaçamento ---- */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: clamp(5rem, 9vw, 9rem);
  --space-section: clamp(6rem, 13vw, 14rem);

  /* ---- Layout ---- */
  --container: 1600px;
  --container-pad: clamp(1.25rem, 5vw, 5rem);
  --gutter: clamp(1rem, 2.6vw, 2.4rem);

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-text);
  font-weight: 300;
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--fg);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; }
::selection { background: var(--c-green); color: var(--c-white); }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; }

/* ---- Tipografia: utilitários ---- */
.font-display { font-family: var(--font-display); }
.font-text { font-family: var(--font-text); }
.italic { font-style: italic; }
.fw-200 { font-weight: 200; }
.fw-300 { font-weight: 300; }
.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }

.eyebrow {
  font-family: var(--font-text);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--fg);
  opacity: 0.6;
}

.uppercase { text-transform: uppercase; letter-spacing: var(--tracking-wide); }
.display { font-size: var(--fs-display); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); }
.quote { font-size: var(--fs-quote); line-height: 1.18; }
.lead { font-size: var(--fs-lead); line-height: 1.6; max-width: 46ch; opacity: 0.82; text-wrap: pretty; }
.muted { opacity: 0.62; }

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section { padding-block: var(--space-section); position: relative; }

.section-dark {
  --fg: var(--c-white); --bg: var(--c-black); --fg-rgb: var(--rgb-white);
  --line: rgba(var(--rgb-white), 0.14);
  background-color: var(--bg); color: var(--fg);
}
.section-light {
  --fg: var(--c-black); --bg: var(--c-white); --fg-rgb: var(--rgb-black);
  --line: rgba(var(--rgb-black), 0.12);
  background-color: var(--bg); color: var(--fg);
}
.section-green {
  --fg: var(--c-white); --bg: var(--c-green); --fg-rgb: var(--rgb-white);
  --line: rgba(var(--rgb-white), 0.18);
  background-color: var(--bg); color: var(--fg);
}

/* grid de 12 colunas */
.grid { display: grid; gap: var(--gutter); }
.grid-12 { grid-template-columns: repeat(12, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* cabeçalho de seção com numeração editorial */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--space-md); padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--line); margin-bottom: var(--space-xl);
}
.section-head .index {
  font-family: var(--font-text); font-size: var(--fs-small);
  letter-spacing: var(--tracking-wide); opacity: 0.5;
}
.section-head .title { font-size: var(--fs-h2); }

.hairline { border: 0; border-top: 1px solid var(--line); }

/* ---- Grão de filme (assinatura premium) ---- */
.grain {
  position: fixed; inset: 0; z-index: 9990; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Reveal: estado inicial só quando JS ativo e sem reduced-motion ---- */
.js [data-reveal],
.js [data-hero-title],
.js [data-hero-eyebrow],
.js [data-hero-foot] { opacity: 0; }
.js [data-reveal-img] { overflow: hidden; }
.js [data-reveal-img] > img { transform: scale(1.12); }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-hero-title], .js [data-hero-eyebrow], .js [data-hero-foot],
  .js [data-reveal-img] > img { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ---- Responsivo base ---- */
@media (max-width: 860px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: var(--space-sm); }
}

/* ============================================================
   Lenis (smooth scroll) — CSS recomendado
   ============================================================ */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }
