/* ─────────────────────────────────────────────
   MARKVISE — SHARED DESIGN SYSTEM
   Editorial Intelligence Aesthetic
   ───────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,800;0,900;1,700;1,800&family=Barlow+Condensed:wght@300;400;500;600;700;800&family=Lora:ital,wght@0,400;0,500;1,400;1,500&family=IBM+Plex+Mono:wght@400;500&display=swap');

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

:root {
  /* Warm intelligence palette — not cold blue/black */
  --ink:        #13110D;
  --ink-1:      #1C1A14;
  --ink-2:      #252219;
  --ink-3:      #2E2A20;
  --ink-4:      #3A352A;
  --amber:      #C8922A;
  --amber-lt:   #E0B254;
  --amber-dim:  rgba(200,146,42,0.12);
  --amber-bdr:  rgba(200,146,42,0.28);
  --cream:      #EAE0CC;
  --cream-2:    #B0A48A;
  --cream-3:    #6E6352;
  --cream-4:    #3E3828;
  --sage:       #5BAFA4;
  --sage-dim:   rgba(91,175,164,0.12);
  --rust:       #C45845;
  --rust-dim:   rgba(196,88,69,0.12);
  --border:     rgba(234,224,204,0.08);
  --border-2:   rgba(234,224,204,0.14);

  --ff-display: 'Playfair Display', 'Georgia', serif;
  --ff-cond:    'Barlow Condensed', sans-serif;
  --ff-body:    'Lora', 'Georgia', serif;
  --ff-mono:    'IBM Plex Mono', monospace;
  --r:          4px;
  --max:        1180px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
}

::selection { background: var(--amber-dim); color: var(--amber-lt); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--amber); }

/* ── NAVIGATION ── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  height: 64px;
  background: rgba(19,17,13,0.92);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--ff-cond);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--cream);
  display: flex; align-items: center; gap: 0;
}
.nav-logo .logo-mark {
  display: inline-block;
  width: 22px; height: 22px;
  position: relative;
  margin-right: 10px;
  flex-shrink: 0;
}
.nav-logo .logo-mark svg { width: 22px; height: 22px; display: block; }
.nav-logo .logo-v { color: var(--amber); }

.nav-links {
  display: flex; align-items: center; gap: 2.25rem; list-style: none;
}
.nav-links a {
  color: var(--cream-3); text-decoration: none;
  font-family: var(--ff-cond); font-size: 0.8rem;
  font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--cream); }
.nav-cta {
  background: var(--amber) !important; color: var(--ink) !important;
  padding: 0.45rem 1.1rem !important; border-radius: var(--r);
  font-weight: 700 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--amber-lt) !important; }

/* ── FOOTER ── */
.site-footer {
  background: var(--ink); border-top: 1px solid var(--border);
  padding: 64px 5% 40px;
}
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.footer-brand-name {
  font-family: var(--ff-cond); font-size: 1.2rem; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cream); margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 10px;
}
.footer-brand-name .logo-v { color: var(--amber); }
.footer-tagline { font-size: 0.8rem; color: var(--cream-3); line-height: 1.65; max-width: 260px; margin-bottom: 1.25rem; }
.footer-col-title {
  font-family: var(--ff-mono); font-size: 0.62rem; color: var(--cream-4);
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a {
  color: var(--cream-3); text-decoration: none; font-size: 0.8rem;
  font-family: var(--ff-cond); font-weight: 500; letter-spacing: 0.05em;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--cream); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-copy { font-size: 0.72rem; color: var(--cream-4); font-family: var(--ff-mono); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 0.72rem; color: var(--cream-4); text-decoration: none; font-family: var(--ff-mono); transition: color 0.2s; }
.footer-legal a:hover { color: var(--cream-2); }

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4,h5 { font-family: var(--ff-display); line-height: 1.1; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.8rem,6vw,5.5rem); font-weight: 900; }
h2 { font-size: clamp(2rem,4vw,3.25rem); font-weight: 800; }
h3 { font-size: 1.5rem; font-weight: 700; }
p { margin-bottom: 1rem; }

.label {
  font-family: var(--ff-cond); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--amber); display: flex; align-items: center; gap: 0.5rem;
}
.label::before {
  content: ''; display: inline-block; width: 20px; height: 1px; background: var(--amber);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--ff-cond); font-size: 0.875rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.85rem 1.75rem; border-radius: var(--r);
  text-decoration: none; cursor: pointer; border: none;
  transition: all 0.2s;
}
.btn-primary {
  background: var(--amber); color: var(--ink);
}
.btn-primary:hover { background: var(--amber-lt); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(200,146,42,0.22); }
.btn-outline {
  background: transparent; color: var(--cream-2);
  border: 1px solid var(--border-2);
}
.btn-outline:hover { border-color: var(--amber-bdr); color: var(--cream); }
.btn-ghost {
  background: transparent; color: var(--cream-2); padding: 0.85rem 0;
  border-bottom: 1px solid var(--cream-4);
}
.btn-ghost:hover { color: var(--cream); border-color: var(--cream-2); }

/* ── DIVIDER ── */
.rule { width: 100%; height: 1px; background: var(--border); }
.rule-amber { background: linear-gradient(90deg, transparent, var(--amber-bdr) 30%, var(--amber-bdr) 70%, transparent); }

/* ── SECTION LAYOUT ── */
.section { padding: 96px 5%; }
.section-inner { max-width: var(--max); margin: 0 auto; }
.section-header { margin-bottom: 3.5rem; }
.section-header .label { margin-bottom: 1.25rem; }

/* ── REVEAL ANIMATIONS ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
[data-reveal].revealed { opacity: 1; transform: translateY(0); }
[data-reveal][data-delay="1"] { transition-delay: 0.1s; }
[data-reveal][data-delay="2"] { transition-delay: 0.2s; }
[data-reveal][data-delay="3"] { transition-delay: 0.3s; }
[data-reveal][data-delay="4"] { transition-delay: 0.4s; }
[data-reveal][data-delay="5"] { transition-delay: 0.5s; }

/* ── NOISE OVERLAY ── */
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.35; mix-blend-mode: overlay;
}

/* ── PAGE HERO ── */
.page-hero {
  padding: 140px 5% 80px;
  border-bottom: 1px solid var(--border);
}
.page-hero-inner { max-width: var(--max); margin: 0 auto; }
.page-hero-inner h1 { margin-bottom: 1.25rem; }
.page-hero-inner .lead { font-size: 1.1rem; color: var(--cream-2); max-width: 560px; line-height: 1.75; }

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 540px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.75rem; }
  .section { padding: 64px 5%; }
}
