/* ============================================================
   SUIVO — "operations editorial"
   Core: tokens, base, nav, footer, type, sections, animations
   ============================================================ */

@font-face {
  font-family: 'Inter';
  src: url('Inter-VariableFont_opsz_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #0F1011;
  --paper-deep: #0A0B0C;
  --card: #141517;
  --card-raised: #1B1C1F;
  --ink: #F2F3F1;
  --ink-2: #A2A6AA;
  --ink-3: #63676C;
  --line: rgba(255,255,255,0.09);
  --line-soft: rgba(255,255,255,0.05);
  --line-strong: rgba(255,255,255,0.16);

  --eva: #A78BFA;
  --eva-grad: linear-gradient(135deg, #8B5CF6, #818CF8, #60A5FA);

  --st-new: #93C5FD;
  --st-active: #6EE7B7;
  --st-stale: #FCD34D;
  --st-atrisk: #FCA5A5;
  --st-onhold: #C4B5FD;
  --st-closed: #9CA3AF;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'SF Mono', ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace;

  --maxw: 1240px;
  --pad: clamp(20px, 4.5vw, 48px);
  --nav-h: 62px;
}

[data-theme="light"] {
  --paper: #F6F7F9;
  --paper-deep: #ECEEF2;
  --card: #FFFFFF;
  --card-raised: #F1F3F6;
  --ink: #101216;
  --ink-2: #4E545C;
  --ink-3: #9BA1A9;
  --line: rgba(16,18,22,0.11);
  --line-soft: rgba(16,18,22,0.06);
  --line-strong: rgba(16,18,22,0.22);

  --eva: #6D5BC4;

  --st-new: #2563EB;
  --st-active: #15803D;
  --st-stale: #B7791F;
  --st-atrisk: #C2410C;
  --st-onhold: #7C3AED;
  --st-closed: #6B7280;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; overflow-y: scroll; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.theme-anim { transition: background 0.4s ease, color 0.4s ease; }
body.theme-snap, body.theme-snap * { transition: none !important; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ink); }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
::selection { background: rgba(139,92,246,0.28); }

/* faint structural columns — retired in the prestige pass */
.gridlines { display: none; }

/* scroll progress */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0;
  background: var(--ink);
  z-index: 120;
  transition: width 0.08s linear;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); position: relative; z-index: 1; }

/* ---------- typography ---------- */
.mono {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.mono b, .mono strong { color: var(--ink-2); font-weight: 600; }

.display {
  font-size: clamp(46px, 8.2vw, 118px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin: 0;
}
.h-giant {
  font-size: clamp(38px, 5.8vw, 76px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin: 0;
}
.h-sec {
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.06;
  margin: 0;
}
.h-sub {
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}
.lead {
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink-2);
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: pretty;
}
.balance { text-wrap: balance; }
.eva-text {
  background: var(--eva-grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
[data-theme="light"] .eva-text {
  background: linear-gradient(135deg, #7C5CE0, #5B6AD8, #3B82F6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* default links inside prose */
.prose a { color: var(--ink); border-bottom: 1px solid var(--line-strong); transition: border-color 0.2s ease; }
.prose a:hover { border-color: var(--ink); }

/* ---------- masked line reveal ---------- */
.ln { display: block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.ln > span {
  display: block;
  transform: translateY(110%);
  transition: transform 0.9s cubic-bezier(0.19, 1, 0.22, 1);
}
.rv-in .ln > span, .ln.rv-in > span { transform: none; }
.ln:nth-child(2) > span { transition-delay: 0.08s; }
.ln:nth-child(3) > span { transition-delay: 0.16s; }

/* generic reveal */
[data-rv] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s cubic-bezier(0.19, 1, 0.22, 1), transform 0.9s cubic-bezier(0.19, 1, 0.22, 1);
  transition-delay: var(--rvd, 0s);
}
[data-rv].rv-in { opacity: 1; transform: none; }
[data-rv="lines"] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-rv], .ln > span { opacity: 1 !important; transform: none !important; transition: none !important; }
  .scroll-progress { display: none; }
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  height: 100%;
  padding: 0 var(--pad);
  display: flex; align-items: center; gap: 28px;
}
.nav-logo { display: flex; align-items: center; flex: 0 0 auto; }
.nav-logo img { height: 20px; width: 71.1px; object-fit: contain; }
.lm-light { display: none; }
[data-theme="light"] .lm-dark { display: none; }
[data-theme="light"] .lm-light { display: block; }

.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 7px 12px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.nav-links a i { display: none; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); background: var(--line-soft); }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-lang { display: flex; gap: 2px; font-family: var(--font); font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; }
.nav-lang a { padding: 5px 8px; border-radius: 999px; color: var(--ink-3); }
.nav-lang a.active { color: var(--ink); background: var(--line-soft); }
.nav-lang a:hover { color: var(--ink); }

.nav-theme {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink-2);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.nav-theme:hover { border-color: var(--line-strong); color: var(--ink); }
.nav-theme svg { width: 14px; height: 14px; }
.nav-theme .ico-moon { display: none; }
[data-theme="light"] .nav-theme .ico-sun { display: none; }
[data-theme="light"] .nav-theme .ico-moon { display: block; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13.5px; font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: 999px;
  padding: 9px 18px;
  border: 1px solid transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.985); }
.btn-solid { background: var(--ink); color: var(--paper) !important; }
.btn-solid:hover { opacity: 0.88; }
.btn-line { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--ink); }
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { color: var(--ink); background: var(--line-soft); }
.btn-lg { padding: 13px 28px; font-size: 15px; border-radius: 999px; }
.btn .ar { display: inline-flex; transition: transform 0.3s cubic-bezier(0.19,1,0.22,1); }
.btn:hover .ar { transform: translateX(4px); }

.nav-menu-btn { display: none; }

/* mobile menu */
.mmenu {
  display: none;
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  z-index: 99;
  padding: 14px var(--pad) 20px;
  flex-direction: column; gap: 2px;
}
.mmenu.open { display: flex; }
.mmenu a {
  padding: 13px 4px;
  font-size: 17px; font-weight: 500; letter-spacing: -0.015em;
  border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: baseline; gap: 10px;
}
.mmenu a i { display: none; }
.mmenu-foot { display: flex; gap: 8px; align-items: center; margin-top: 16px; }

/* ---------- sections ---------- */
.sect { padding: clamp(72px, 10vw, 150px) 0; position: relative; }
.sect-tight { padding: clamp(48px, 6vw, 88px) 0; position: relative; }
header.sect::before, header.sect-tight::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 560px;
  background: radial-gradient(58% 72% at 50% 0%, color-mix(in srgb, var(--eva) 7%, transparent), transparent 72%);
  pointer-events: none;
}
.sect-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding-top: 18px; margin-bottom: clamp(36px, 5vw, 64px); }
.sect-head .mono { flex: 0 0 auto; }

.band { background: var(--paper-deep); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

/* provenance hallmark band */
.prov { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 28px 0; position: relative; z-index: 1; }
.prov-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; }
.prov .mono { font-size: 11.5px; letter-spacing: 0.22em; }
.prov-dot { width: 4px; height: 4px; border-radius: 999px; background: var(--line-strong); flex: 0 0 auto; }
@media (max-width: 700px) { .prov-inner { flex-direction: column; text-align: center; } .prov-dot { display: none; } }

/* provenance hallmark pill (hero) */
.hallmark {
  display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 30px;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.hallmark .hm-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--st-active); animation: pulse 2.4s ease-in-out infinite; flex: 0 0 auto; }
.hallmark .mono { font-size: 10px; letter-spacing: 0.18em; }
.hallmark .sep { width: 3px; height: 3px; border-radius: 999px; background: var(--line-strong); flex: 0 0 auto; }
@media (max-width: 700px) { .hallmark .sep { display: none; } }

/* ---------- ticker ---------- */
.ticker {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
  padding: 14px 0;
  position: relative; z-index: 1;
}
.ticker-track {
  display: flex; gap: 0;
  width: max-content;
  animation: tick 46s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
  font-family: var(--font);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-3);
  padding: 0 38px;
  position: relative;
  white-space: nowrap;
}
.ticker-track span::after {
  content: '';
  position: absolute; right: -2px; top: 50%;
  width: 4px; height: 4px; border-radius: 999px;
  transform: translateY(-50%);
  background: var(--line-strong);
}
.ticker-track span.tk-eva { color: var(--eva); }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
  padding: clamp(48px, 6vw, 80px) 0 34px;
  position: relative;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: clamp(56px, 8vw, 110px);
}
.footer .mono { margin-bottom: 16px; display: block; }
.footer-col a {
  display: block;
  padding: 5px 0;
  font-size: 14.5px; font-weight: 300;
  color: var(--ink-2);
  transition: color 0.2s ease, transform 0.2s ease;
}
.footer-col a:hover { color: var(--ink); transform: translateX(3px); }
.footer-tag { font-size: 15px; color: var(--ink-2); max-width: 300px; line-height: 1.6; }

.footer-word {
  font-size: clamp(90px, 20vw, 280px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.78;
  margin: 0 0 8px -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  transition: color 1.2s ease;
}
.footer:hover .footer-word { color: var(--line-soft); }
.footer-meta {
  border-top: 1px solid var(--line-soft);
  padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  align-items: center;
  font-family: var(--font);
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
}
.footer-meta a:hover { color: var(--ink); }
.footer-meta .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--st-active); display: inline-block; margin-right: 7px; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- CTA block ---------- */
.cta-end { padding: clamp(90px, 13vw, 190px) 0; text-align: center; position: relative; overflow: hidden; }
.cta-end::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(52% 60% at 50% 112%, rgba(139,92,246,0.13), transparent 70%);
  pointer-events: none;
}
[data-theme="light"] .cta-end::before { background: radial-gradient(52% 60% at 50% 112%, rgba(109,91,196,0.10), transparent 70%); }
.cta-end .mono { margin-bottom: 22px; }
.cta-end h2 { margin-bottom: 20px; }
.cta-end .lead { max-width: 430px; margin: 0 auto 36px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: inline-flex; }
  .nav-lang { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .nav-right .btn-line { display: none; }
  .sect-head { flex-direction: column; gap: 10px; }
}
