/* ==========================================================================
   MOMENTUM WEBS — Sistema visual global
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  /* Color */
  --c-black-deep: #050505;
  --c-black: #0B0B0A;
  --c-surface: #151514;
  --c-surface-alt: #1B1B19;
  --c-white: #F2F0EB;
  --c-gray: #8A8984;
  --c-gray-dim: #5C5B57;
  --c-accent: #B6C96B;
  --c-accent-dim: rgba(182, 201, 107, 0.14);
  --c-border: rgba(242, 240, 235, 0.1);
  --c-border-strong: rgba(242, 240, 235, 0.18);

  /* Type */
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5.5rem;
  --space-2xl: 9rem;

  /* Hero top offset — clears the fixed navbar (~100px) plus a
     deliberate breathing margin. Shared by every page hero so the
     whole site moves together if this ever changes. */
  --hero-pad-top: clamp(8rem, 16vw, 11rem);

  /* Layout */
  --container-max: 1360px;
  --edge: clamp(1.5rem, 5vw, 5rem);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 0.25s;
  --dur-med: 0.6s;
  --dur-slow: 1s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
}

ul, ol { padding: 0; list-style: none; }

img, picture, video, canvas, svg { display: block; max-width: 100%; }

input, button, textarea, select { font: inherit; color: inherit; }

button { cursor: pointer; }

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

body {
  background: var(--c-black);
  color: var(--c-white);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--c-accent);
  color: var(--c-black-deep);
}

:focus-visible {
  outline: 1.5px solid var(--c-accent);
  outline-offset: 3px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.font-serif { font-family: var(--font-serif); font-weight: 400; font-style: normal; }
.font-serif-italic { font-family: var(--font-serif); font-style: italic; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-gray);
  font-weight: 600;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
  flex-shrink: 0;
}

.display-xl {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 6.6vw, 6.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 400;
}

.display-lg {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.05;
  font-weight: 400;
}

.display-md {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1.1;
  font-weight: 400;
}

.heading-lg {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 500;
}

.heading-md {
  font-size: clamp(1.2rem, 1.6vw, 1.5rem);
  font-weight: 500;
}

.body-lg {
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  line-height: 1.55;
  color: var(--c-gray);
  font-weight: 300;
}

.body-md {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--c-gray);
  font-weight: 300;
}

.body-sm {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--c-gray);
}

.text-white { color: var(--c-white); }
.text-accent { color: var(--c-accent); }
.text-gray { color: var(--c-gray); }

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

.section {
  padding-block: var(--space-2xl);
}

.section-sm {
  padding-block: var(--space-xl);
}

.divider {
  height: 1px;
  width: 100%;
  background: var(--c-border);
  border: none;
}

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

/* ---------- Reveal animation utility ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-sm);
  top: -60px;
  background: var(--c-accent);
  color: var(--c-black-deep);
  padding: 0.7rem 1.2rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.875rem;
  z-index: 1000;
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: var(--space-sm); }
