/* Helm — Fractional Marketing Direction */
:root {
  --ink: #0A0A0B;
  --panel: #111113;
  --panel-2: #17171A;
  --border: #1F1F23;
  --border-2: #2A2A2F;
  --text: #E8E6E1;
  --text-2: #B8B5AE;
  --muted: #8A8780;
  --accent: oklch(72% 0.17 45);
  --accent-2: oklch(78% 0.14 65);
  --accent-soft: oklch(72% 0.17 45 / 0.12);
  --danger: oklch(65% 0.18 25);

  --font-display: "Fraunces", "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --maxw: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 14px;
  --radius-sm: 8px;
}

[data-theme="light"] {
  --ink: #F7F5F0;
  --panel: #FFFFFF;
  --panel-2: #F1EEE7;
  --border: #E4E0D7;
  --border-2: #D6D1C4;
  --text: #141414;
  --text-2: #3A3A3A;
  --muted: #6B6B6B;
  --accent: oklch(58% 0.17 45);
  --accent-2: oklch(64% 0.14 65);
  --accent-soft: oklch(58% 0.17 45 / 0.10);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background .4s ease, color .4s ease;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }

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

/* Type */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 18px; height: 1px; background: var(--accent);
}
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.02em; }
h1 { font-family: var(--font-display); font-weight: 400; }
h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(32px, 4.6vw, 58px); line-height: 1.04; }
h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; color: var(--text-2); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 500; letter-spacing: -0.005em;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--text); color: var(--ink);
}
.btn-primary:hover { background: var(--accent); color: #0A0A0B; transform: translateY(-1px); }
.btn-ghost {
  border: 1px solid var(--border-2); color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-arrow::after {
  content: "→"; transition: transform .2s;
}
.btn-arrow:hover::after { transform: translateX(3px); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: color-mix(in oklab, var(--ink) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 22px; letter-spacing: -0.02em; }
.logo-mark {
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--text);
  position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.logo-mark svg { width: 18px; height: 18px; }
.logo-mark.logo-mark-ds {
  width: 34px; height: 30px;
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  overflow: visible;
}
.logo-mark.logo-mark-ds:empty { display: none; }
.logo-mark.logo-mark-ds svg { width: 32px; height: 28px; }
.logo-mark.logo-mark-ds img { width: 100%; height: 100%; object-fit: contain; }
.footer-brand .logo-mark.logo-mark-ds { display: none; }
.footer-logo { align-items: center; gap: 12px; }
.footer-logo-img { display: block; height: 48px; width: auto; max-width: 160px; object-fit: contain; }
.footer-logo-img svg { height: 48px; width: auto; }
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-links a {
  padding: 8px 14px; font-size: 14px; color: var(--text-2);
  border-radius: 999px; transition: all .2s;
}
.nav-links a:hover { color: var(--text); background: var(--panel); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.theme-toggle {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--border); color: var(--text-2);
  transition: all .2s;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.burger { display: none; width: 40px; height: 40px; border-radius: 8px; place-items: center; }
.burger span { display: block; width: 18px; height: 1.5px; background: var(--text); margin: 3px 0; transition: transform .3s; }

@media (max-width: 900px) {
  .nav-links, .nav-cta .btn { display: none; }
  .burger { display: grid; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 60;
  background: var(--ink);
  padding: 80px var(--gutter) 40px;
  transform: translateY(-100%);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a { font-family: var(--font-display); font-size: 36px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.mobile-menu .close { position: absolute; top: 20px; right: var(--gutter); font-size: 24px; }

/* Sections base */
section { padding: clamp(80px, 10vw, 140px) 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { margin-top: 16px; }
.section-head p { margin-top: 18px; font-size: 18px; max-width: 560px; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Utility */
.divider { height: 1px; background: var(--border); }
.mono { font-family: var(--font-mono); }
.tabular { font-variant-numeric: tabular-nums; }
