/* ─────────────────────────────────────────────────────────────
   Virtus Operandi · shared page chrome
   Used by contact / about / terms / privacy / cookies / security / 404
   Mirrors the home.html design tokens but trimmed for static pages.
   ───────────────────────────────────────────────────────────── */
:root {
  --ink: #202020;
  --ink-2: #2A2A2A;
  --ink-3: #3A3A3A;
  --paper: #FFFFFF;
  --paper-2: #F7F7F7;
  --page-bg: #F5F5FC;
  --border: #ECECEC;
  --border-soft: #F1F1F1;
  --text: #202020;
  --muted: #6B6B6B;
  --blue: #0066FF;
  --blue-hover: #0044A4;
  --blue-deep: #002060;

  --display: 'Montserrat', 'Open Sans', Helvetica, Arial, sans-serif;
  --body:    'Open Sans', Helvetica, Arial, sans-serif;
  --mono:    'JetBrains Mono', "Andale Mono", Courier, "Courier New", monospace;

  --nav-h: 76px;
  --max: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--ink);
  line-height: 1.2;
}
h1 { font-size: clamp(36px, 4.8vw, 58px); line-height: 1.14; letter-spacing: -2px; font-weight: 600; }
h2 { font-size: clamp(26px, 3.2vw, 34px); line-height: 1.25; letter-spacing: -1px; font-weight: 700; }
h3 { font-size: 22px; line-height: 1.3; letter-spacing: -0.5px; }
h4 { font-size: 18px; line-height: 1.35; }
@media (max-width: 560px) {
  h1 { letter-spacing: -1px; }
  h2 { letter-spacing: -0.5px; }
}

p { margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }
strong { color: var(--ink); font-weight: 600; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 4px; font-size: 14px; z-index: 1000; }
.skip:focus { left: 16px; }

/* ─── Meta strip ──────────────────────────────────────────── */
.meta {
  background: var(--ink); color: rgba(255,255,255,0.7);
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.meta-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 9px var(--gutter);
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
}
.meta-left { display: inline-flex; align-items: center; gap: 10px; }
.meta-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,102,255,0.20);
  animation: dotpulse 2.6s ease-in-out infinite;
}
@keyframes dotpulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(0,102,255,0.20); }
  50%     { box-shadow: 0 0 0 6px rgba(0,102,255,0.08); }
}
.meta-right { display: flex; gap: 18px; }
.meta a { color: inherit; transition: color .15s ease; }
.meta a:hover { color: #fff; }
@media (max-width: 720px) { .meta-right { display: none; } }

/* ─── Nav ─────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.nav.scrolled { border-bottom-color: var(--border); background: rgba(255,255,255,0.94); }
.nav-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 0 var(--gutter); height: var(--nav-h);
  display: flex; align-items: center; gap: 28px;
}
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--display); font-weight: 700;
  font-size: 18px; letter-spacing: -0.2px;
  flex-shrink: 0;
}
.brand-mark {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--blue);
  transition: transform .35s cubic-bezier(.3,1,.3,1);
}
.brand:hover .brand-mark { transform: rotate(135deg) scale(1.15); }
.brand-word .lo { font-weight: 400; color: var(--muted); }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link {
  padding: 10px 14px;
  font-size: 14.5px; font-weight: 500;
  color: var(--ink); border-radius: 8px;
  transition: color .15s ease, background .15s ease;
}
.nav-link:hover, .nav-link[aria-current="page"] { background: var(--paper-2); color: var(--blue); }

.nav-cta {
  margin-left: 10px;
  padding: 12px 22px;
  background: var(--blue); color: #fff !important;
  font-size: 14.5px; font-weight: 600;
  border-radius: 999px;
  white-space: nowrap;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.nav-cta:hover { background: var(--blue-hover); transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgba(0,102,255,0.45); }
.nav-cta:active { background: var(--blue-deep); transform: translateY(0); }

.hamburger { display: none; width: 40px; height: 40px; margin-left: auto; align-items: center; justify-content: center; border-radius: 8px; transition: background .15s ease; }
.hamburger:hover { background: var(--paper-2); }
.hamburger .bars { width: 18px; height: 12px; position: relative; }
.hamburger .bars::before, .hamburger .bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.6px; background: var(--ink); border-radius: 2px;
  transition: transform .25s ease, top .25s ease;
}
.hamburger .bars::before { top: 1px; }
.hamburger .bars::after  { top: 10px; }
.nav.menu-open .hamburger .bars::before { top: 5.5px; transform: rotate(45deg); }
.nav.menu-open .hamburger .bars::after  { top: 5.5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: calc(var(--nav-h) + 36px) 0 0 0;
  background: #fff; z-index: 90;
  transform: translateY(-100%);
  transition: transform .35s cubic-bezier(.76,0,.24,1);
  overflow-y: auto;
  padding: 24px var(--gutter) 80px;
  visibility: hidden;
}
.nav.menu-open + .mobile-menu { transform: translateY(0); visibility: visible; }
.mobile-menu a { display: block; padding: 14px 0; font-weight: 600; font-size: 19px; color: var(--ink); border-bottom: 1px solid var(--border); }
.mobile-menu .mob-cta {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 24px; padding: 14px 22px;
  background: var(--blue); color: #fff !important;
  border-radius: 999px; font-weight: 600; width: 100%; border-bottom: 0;
}

@media (max-width: 940px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: inline-flex; }
}
@media (min-width: 941px) { .mobile-menu { display: none; } }

/* ─── Page hero (small, used by all generic pages) ────────── */
.page-hero {
  padding: clamp(48px, 8vw, 96px) var(--gutter) clamp(32px, 5vw, 56px);
  background:
    radial-gradient(60% 50% at 85% 35%, rgba(0,102,255,0.05), transparent 70%),
    radial-gradient(50% 60% at 15% 90%, rgba(0,102,255,0.03), transparent 70%),
    var(--paper);
  border-bottom: 1px solid var(--border);
}
.page-hero .container { display: flex; flex-direction: column; gap: 14px; }
.page-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 12px 5px 9px;
  background: #fff; border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--muted);
  width: max-content;
}
.page-hero .eyebrow .live {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,102,255,0.20);
}
.page-hero .lede {
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--muted);
  max-width: 60ch;
  margin-top: 6px;
}

/* ─── Main content ────────────────────────────────────────── */
main {
  padding: clamp(40px, 5vw, 64px) var(--gutter) clamp(64px, 8vw, 96px);
}
main .container { max-width: 820px; }
main section + section { margin-top: clamp(36px, 4vw, 48px); }
main h2 { margin-bottom: 14px; }
main h3 { margin-top: 24px; margin-bottom: 10px; }
main ul, main ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
main li { margin-bottom: 8px; }
main a { color: var(--blue); border-bottom: 1px solid transparent; transition: border-color .15s ease; }
main a:hover { border-bottom-color: var(--blue); }
.note {
  margin-top: 32px;
  padding: 14px 18px;
  background: var(--paper-2);
  border-left: 3px solid var(--blue);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.toc {
  background: var(--paper-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 32px;
}
.toc h4 {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
  font-weight: 600;
}
.toc ol { padding-left: 18px; margin: 0; }
.toc li { margin-bottom: 4px; font-size: 14.5px; }
.toc a { border-bottom: 0; }

/* ─── Pill button ─────────────────────────────────────────── */
.btn-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px;
  background: var(--blue); color: #fff;
  font-weight: 600; font-size: 15.5px;
  border-radius: 999px;
  box-shadow: 0 10px 24px -10px rgba(0,102,255,0.45);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn-pill:hover { background: var(--blue-hover); transform: translateY(-2px); box-shadow: 0 16px 32px -10px rgba(0,102,255,0.5); }
.btn-pill:active { background: var(--blue-deep); transform: translateY(0); }
.btn-pill .arr { transition: transform .25s cubic-bezier(.76,0,.24,1); }
.btn-pill:hover .arr { transform: translateX(4px); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--ink);
  font-weight: 600; font-size: 15px;
  border-radius: 999px;
  transition: all .2s ease;
}
.btn-outline:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }

/* ─── Footer ──────────────────────────────────────────────── */
footer {
  background: var(--paper);
  padding: clamp(48px, 6vw, 80px) var(--gutter) 32px;
  border-top: 1px solid var(--border);
}
.foot-inner { max-width: var(--max); margin: 0 auto; }
.foot-top {
  display: grid; grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px; padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 880px) {
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-top .brand-col { grid-column: 1 / -1; }
}
.brand-col p { color: var(--muted); margin-top: 14px; max-width: 38ch; font-size: 14.5px; line-height: 1.6; }
.foot-col h4 {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px; font-weight: 600;
}
.foot-col a {
  display: block; padding: 5px 0;
  color: var(--ink); font-size: 14.5px;
  transition: color .15s ease;
}
.foot-col a:hover { color: var(--blue); }
.foot-bottom {
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  font-size: 12.5px; color: var(--muted);
  font-family: var(--mono); letter-spacing: 0.06em;
}
.foot-bottom a { color: var(--muted); transition: color .15s ease; margin-right: 16px; }
.foot-bottom a:hover { color: var(--ink); }
