/* ============================================================
   VINOVE — Core
   Tokens · Reset · Typography · Utilities · Shared Components
   VNV-VIS-001 v1.0 · VNV-VOX-001 v4.1
   ============================================================ */

/* Typeface: Inter Variable (opsz + wght axes), loaded via HTML <link>
   — no @import, to avoid a duplicate request and FOIT. */

/* ── Design Tokens ── */
:root {
  /* Identity — Terra */
  --terra:         #C8553D;
  --terra-hover:   #A8432D;
  --terra-deep:    #7E3122;
  --terra-tint:    #F7E9E4;

  /* Foundation */
  --ink:           #0E1320;
  --ink-deep:      #090C15;
  --paper:         #FAF9F5;

  /* Neutral spine — Radix Sand */
  --surface-1:     #FDFDFC;
  --surface-2:     #F1F0EF;
  --surface-3:     #E9E8E6;
  --border-subtle: #DAD9D6;
  --border-strong: #CFCECA;
  --text-muted:    #82827C;
  --text-body:     #63635E;
  --text-strong:   #21201C;

  /* Dark-surface equivalents — calibrated for WCAG AA legibility */
  --ink-text-muted:  rgba(255,255,255,.55);
  --ink-text-body:   rgba(255,255,255,.72);
  --ink-text-strong: rgba(255,255,255,.94);
  --ink-border:      rgba(255,255,255,.1);
  --ink-surface:     rgba(255,255,255,.05);

  /* Semantic */
  --success:       #46A758;
  --warning:       #FFC53D;
  --error:         #E5484D;
  --info:          #0090FF;

  /* Company identity */
  --agentra: #E11D74; /* Signal Magenta */

  /* Radius */
  --r-xs:   3px;
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-full: 9999px;

  /* Typeface — Inter Variable (primary, single family) */
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Layout */
  --max:    1320px;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --nav-h:  80px;

  /* Motion */
  --ease:       cubic-bezier(.16, 1, .3, 1);
  --ease-back:  cubic-bezier(.34, 1.4, .64, 1);
  --ease-in:    cubic-bezier(.55, 0, 1, .45);
  --dur-fast:   160ms;
  --dur-base:   260ms;
  --dur-slow:   420ms;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  tab-size: 4;
  /* Drive Inter's optical-size axis from the rendered font-size, everywhere */
  font-optical-sizing: auto;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  background: var(--paper);
  color: var(--text-strong);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* Inter reads cleaner with a hair of negative tracking at body sizes */
  letter-spacing: -0.006em;
  /* l-with-tail (cv05), round quotes/commas (ss03), contextual alternates */
  font-feature-settings: 'cv05' 1, 'ss03' 1, 'calt' 1;
  overflow-x: hidden;
  cursor: auto;
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}
ul, ol { list-style: none; }

/* ── Skip link ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: var(--terra);
  color: #fff;
  padding: .5rem 1.25rem;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 600;
  transition: top var(--dur-base);
}
.skip-link:focus { top: 1rem; }

/* ── Numeric figures (design-system rule) ──
   Every statistic and index number on the site uses Inter's tabular,
   lining, slashed-zero figures so columns of numbers align to a grid
   and 0 never reads as O. Single source of truth — page CSS just sizes
   and weights these; the figure style lives here. */
.about-record-num, .ag-serve-num, .ai-earns-num, .ai-fail-num, .award-year,
.beat-n, .bento-cell-num, .careers-fact-num, .careers-pillar-num,
.cat-post-count, .era-year-n, .hire-step-num, .hstat, .hstat-n,
.inv-audience-num, .inv-stat, .life-dec-num, .life-phase-n, .life-stab-num,
.life-val-num, .listings-count, .loc-roles-count, .loc-stat, .loc-stat-num,
.partners-model-num, .pb-stat, .pbs-n, .phb-n, .pillar-n, .press-fact-num,
.pxl-serve-num, .pxl-stat, .pxl-stat-num, .std-era-year, .std-lv-num,
.std-lv-stat, .std-principle-num, .value-n, .ws-audience-num, .ws-stat,
.ws-stat-num, .tnum {
  font-variant-numeric: tabular-nums lining-nums slashed-zero;
  font-feature-settings: 'tnum' 1, 'lnum' 1, 'zero' 1, 'cv05' 1;
}

/* ── Selection ── */
::selection { background: var(--terra); color: #fff; }

/* ── Focus ── */
:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--r-full);
}

/* Custom cursor removed — system cursor in use */
#cursor-dot, #cursor-ring { display: none; }

/* ── Scroll reveal system ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

[data-reveal][data-delay="1"]  { transition-delay: .08s; }
[data-reveal][data-delay="2"]  { transition-delay: .16s; }
[data-reveal][data-delay="3"]  { transition-delay: .25s; }
[data-reveal][data-delay="4"]  { transition-delay: .34s; }
[data-reveal][data-delay="5"]  { transition-delay: .44s; }
[data-reveal][data-delay="6"]  { transition-delay: .54s; }

[data-reveal="clip"] {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .9s var(--ease);
}
[data-reveal="clip"].is-visible { clip-path: inset(0 0 0% 0); }

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

/* ── Keyframes ── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200, 85, 61, .5); }
  60%       { box-shadow: 0 0 0 6px rgba(200, 85, 61, 0); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  @keyframes pulse-dot { 0%, 100% { box-shadow: none; } }
}

/* ── Eyebrow / Stamp ── */
.eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: '';
  width: 22px; height: 1px;
  background: currentColor;
  opacity: .5;
  flex-shrink: 0;
}
.eyebrow-terra { color: var(--terra); }
.eyebrow-dim   { color: rgba(255,255,255,.52); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  border: none;
  border-radius: var(--r-full);
  padding: 13px 26px;
  white-space: nowrap;
  transition:
    transform var(--dur-base) var(--ease-back),
    box-shadow var(--dur-base),
    background var(--dur-fast),
    color var(--dur-fast),
    border-color var(--dur-fast);
  cursor: pointer;
  line-height: 1;
}

.btn-primary {
  background: var(--terra);
  color: #fff;
}
.btn-primary:hover {
  background: var(--terra-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(200, 85, 61, .42);
}

.btn-outline {
  background: transparent;
  color: var(--text-strong);
  border: 1.5px solid var(--border-strong);
}
.btn-outline:hover {
  background: var(--surface-2);
  transform: translateY(-1px);
}

.btn-ghost-light {
  background: transparent;
  color: var(--ink-text-body);
  border: 1.5px solid rgba(255,255,255,.18);
}
.btn-ghost-light:hover {
  color: #fff;
  border-color: rgba(255,255,255,.48);
  transform: translateY(-1px);
}

.btn svg {
  width: 14px; height: 14px;
  stroke: currentColor; stroke-width: 2.5; fill: none;
  flex-shrink: 0;
  transition: transform var(--dur-base) var(--ease);
}
.btn:hover svg { transform: translateX(2px); }

/* ── Container ── */
.container {
  max-width: var(--max);
  margin: 0 auto;
}

/* ── Misc utilities ── */
.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;
}


/* ══════════════════════════════════════════════════════════
   SCROLL PROGRESS BAR
══════════════════════════════════════════════════════════ */
#scroll-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--terra);
  z-index: 9998;
  transition: width .08s linear;
  transform-origin: left;
}

/* ══════════════════════════════════════════════════════════
   GO TO TOP
══════════════════════════════════════════════════════════ */
#go-top {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  z-index: 890;
  width: 40px; height: 40px;
  background: var(--text-strong);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s;
  pointer-events: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(14,19,32,.2);
}
#go-top.visible {
  opacity: 1;
  transform: none;
  pointer-events: all;
}
#go-top:hover {
  background: var(--terra);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,85,61,.4);
}
#go-top svg {
  width: 16px; height: 16px;
  stroke: currentColor; stroke-width: 2.5; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ── Logo placeholders ── */
/* Light version — for use on paper/surface backgrounds */
.logo-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 44px;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--r-md);
  background: var(--surface-2);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  user-select: none;
  flex-shrink: 0;
}

/* Dark version — for use on dark/ink backgrounds */
.logo-placeholder-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 44px;
  border: 1.5px dashed rgba(255,255,255,.2);
  border-radius: var(--r-md);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.4);
  font-family: var(--font);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  user-select: none;
  flex-shrink: 0;
}

/* ── Button context overrides ── */
/* btn-outline on dark backgrounds needs white text */
[style*="background: var(--ink)"] .btn-outline,
[style*="background:#0E1320"] .btn-outline,
section[class*="dark"] .btn-outline,
.section-ink .btn-outline {
  color: rgba(255,255,255,.8);
  border-color: rgba(255,255,255,.25);
}
[style*="background: var(--ink)"] .btn-outline:hover,
.section-ink .btn-outline:hover {
  color: #fff;
  border-color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.07);
}
