/* Verbular — design tokens */
:root {
  /* Color mood: deep blue (default) */
  --ink: oklch(0.18 0.03 255);
  --ink-2: oklch(0.28 0.025 255);
  --paper: oklch(0.98 0.005 255);
  --paper-2: oklch(0.955 0.008 255);
  --line: oklch(0.88 0.015 255);
  --muted: oklch(0.5 0.02 255);
  --faint: oklch(0.7 0.015 255);

  /* Brand identity */
  --brand: #0D6E6E;
  --brand-soft: color-mix(in oklab, #0D6E6E 12%, transparent);

  /* Product identities */
  --intel: oklch(0.58 0.15 240);
  --intel-soft: oklch(0.92 0.05 240);
  --pv: oklch(0.55 0.13 165);
  --pv-soft: oklch(0.93 0.04 165);
  --engage: oklch(0.62 0.17 35);
  --engage-soft: oklch(0.94 0.05 35);

  /* Accent (site-level, tweakable) */
  --accent: var(--intel);

  /* Type */
  --f-display: "Instrument Serif", "Times New Roman", serif;
  --f-body: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Scale */
  --step-0: 15px;
  --step-1: 17px;
  --step-2: 21px;
  --step-3: 28px;
  --step-4: 40px;
  --step-5: 64px;
  --step-6: 96px;
  --step-7: 140px;

  /* Density */
  --section-y: 100px;
  --gutter: 48px;
  --radius: 16px;
  --radius-sm: 10px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

[data-mood="dark"] {
  --ink: oklch(0.97 0.005 255);
  --ink-2: oklch(0.85 0.01 255);
  --paper: oklch(0.12 0.015 255);
  --paper-2: oklch(0.17 0.02 255);
  --line: oklch(0.28 0.02 255);
  --muted: oklch(0.62 0.02 255);
  --faint: oklch(0.45 0.015 255);
  --intel-soft: oklch(0.25 0.08 240);
  --pv-soft: oklch(0.24 0.06 165);
  --engage-soft: oklch(0.26 0.08 35);
  --brand-soft: color-mix(in oklab, #0D6E6E 20%, transparent);
}

[data-mood="warm"] {
  --ink: oklch(0.2 0.025 60);
  --ink-2: oklch(0.32 0.02 60);
  --paper: oklch(0.975 0.012 80);
  --paper-2: oklch(0.95 0.018 75);
  --line: oklch(0.87 0.02 70);
  --muted: oklch(0.5 0.025 60);
  --faint: oklch(0.72 0.02 70);
}

[data-density="compact"] {
  --section-y: 72px;
  --gutter: 32px;
  --step-5: 52px;
  --step-6: 76px;
  --step-7: 108px;
}

[data-density="airy"] {
  --section-y: 140px;
  --gutter: 64px;
}

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

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--step-1);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

body { overflow-x: hidden; }

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

.display {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.98;
}

.mono {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

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

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

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: color-mix(in oklab, var(--paper) 78%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--line) 60%, transparent);
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Nav logo */
.nav-logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  object-position: left center;
}

/* Legacy text brand (fallback if logo fails to load) */
.brand {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  width: 20px; height: 20px;
  border-radius: 6px;
  background: var(--brand);
  display: inline-block;
  position: relative;
  flex-shrink: 0;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1.5px solid var(--paper);
  border-radius: 3px;
  border-left: none;
  border-bottom: none;
  transform: rotate(45deg);
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--ink-2);
}
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { font-weight: 500; }

.nav-cta {
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  transition: transform 0.2s var(--ease), opacity 0.2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
  white-space: nowrap;
}
.nav-cta:hover { transform: translateY(-1px); opacity: 0.9; }

/* Hamburger button */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
  flex-shrink: 0;
}
.nav-hamburger:hover { background: var(--paper-2); }
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 280px;
  z-index: 200;
  background: var(--paper);
  border-right: 1px solid var(--line);
  padding: 24px 32px 48px;
  flex-direction: column;
  gap: 0;
  transform: translateX(-100%);
  transition: transform 0.35s var(--ease);
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer-logo {
  margin-bottom: 40px;
  margin-top: 16px;
}
.nav-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 40px;
}
.nav-drawer-links a {
  font-family: var(--f-display);
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink-2);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s;
}
.nav-drawer-links a:first-child { border-top: 1px solid var(--line); }
.nav-drawer-links a:hover { color: var(--ink); }
.nav-drawer-links a.active { font-weight: 500; }
.nav-drawer-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 16px;
  color: var(--ink-2);
  transition: border-color 0.2s, color 0.2s;
}
.nav-drawer-close:hover { border-color: var(--ink); color: var(--ink); }

/* Drawer overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 190;
  background: color-mix(in oklab, var(--ink) 40%, transparent);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.nav-overlay.open { opacity: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
  font-family: inherit;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn .arr { transition: transform 0.3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- Section shell ---------- */
.section { padding: var(--section-y) 0; }
.eyebrow { margin-bottom: 18px; }

h1, h2, h3 { font-weight: 400; letter-spacing: -0.02em; }

/* ---------- Utility ---------- */
.placeholder {
  background-image: repeating-linear-gradient(
    135deg,
    color-mix(in oklab, var(--line) 50%, transparent) 0 1px,
    transparent 1px 14px
  );
  background-color: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  overflow: hidden;
}

/* ---------- Contact Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: color-mix(in oklab, var(--ink) 50%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--paper);
  border-radius: 24px;
  border: 1px solid var(--line);
  width: 100%;
  max-width: 560px;
  padding: 48px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.35s var(--ease);
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 16px;
  color: var(--ink-2);
  transition: border-color 0.2s, color 0.2s;
  font-family: inherit;
}
.modal-close:hover { border-color: var(--ink); color: var(--ink); }
.modal-tag {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  display: block;
}
.modal h3 {
  font-family: var(--f-display);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.modal h3 em { font-style: italic; color: var(--accent); }
.modal-sub {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.55;
  margin-bottom: 36px;
  max-width: 44ch;
}
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.modal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.modal-field label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.modal-field input,
.modal-field textarea,
.modal-field select {
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  width: 100%;
  transition: border-color 0.2s;
  outline: none;
  resize: none;
}
.modal-field input:focus,
.modal-field textarea:focus,
.modal-field select:focus { border-color: var(--accent); }
.modal-field input::placeholder,
.modal-field textarea::placeholder { color: var(--faint); }
.modal-field textarea { min-height: 120px; }
.modal-submit {
  margin-top: 8px;
  width: 100%;
  justify-content: center;
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 16px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s var(--ease), opacity 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-submit:hover { transform: translateY(-1px); opacity: 0.9; }
.modal-success { display: none; text-align: center; padding: 24px 0; }
.modal-success-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--accent) 15%, transparent);
  border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 20px;
}
.modal-success h4 {
  font-family: var(--f-display);
  font-size: 26px;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.modal-success p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 36ch;
  margin: 0 auto;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 80px 0 48px;
  margin-top: 120px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer h4 {
  font-size: 12px;
  font-family: var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer ul a { color: var(--ink-2); transition: color 0.2s; }
.footer ul a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Tweaks panel ---------- */
.tweaks {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 200;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 60px -20px color-mix(in oklab, var(--ink) 25%, transparent);
  padding: 16px;
  width: 280px;
  display: none;
  font-size: 13px;
}
.tweaks.open { display: block; }
.tweaks h5 { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 500; margin-bottom: 12px; }
.tweak-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.tweak-row label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--f-mono); }
.tweak-opts { display: flex; gap: 6px; flex-wrap: wrap; }
.tweak-opt {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 12px;
  cursor: pointer;
  color: var(--ink-2);
  font-family: inherit;
}
.tweak-opt.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tweak-swatch {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid var(--line); cursor: pointer;
  padding: 0; background: none;
}
.tweak-swatch.on { border-color: var(--ink); }
.tweak-swatch::after { content: ""; display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--c); }

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  :root {
    --gutter: 20px;
    --section-y: 60px;
  }

  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .nav-drawer { display: flex; }

  .nav-logo {
    height: 34px;
    max-width: 130px;
  }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-grid > div:first-child { grid-column: span 2; }
  .footer-bottom { flex-direction: column; gap: 8px; }

  .modal { padding: 32px 24px; }
  .modal h3 { font-size: 26px; }
}