/* Known Quantity LLC — site styles */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-400.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/inter-500.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/inter-600.woff") format("woff"); }
@font-face { font-family: "Inter Display"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/inter-display-600.woff") format("woff"); }

:root {
  --paper: #fbfaf6;
  --paper-2: #f3f1ea;
  --card: #ffffff;
  --ink: #12203a;
  --ink-soft: #2c3b57;
  --muted: #5a6475;
  --line: #e4e0d6;
  --accent: #c2410c;
  --accent-hover: #9a3412;
  --accent-soft: #fbe9dc;
  --on-accent: #ffffff;
  --panel: #12203a;
  --on-panel: #f4f1ea;
  --on-panel-muted: #b9c2d3;
  --studio: #1d1a3f;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(18, 32, 58, .06), 0 12px 32px -16px rgba(18, 32, 58, .22);
  --max: 1120px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter Display", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-math: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0d1420;
    --paper-2: #111a29;
    --card: #152034;
    --ink: #edf1f7;
    --ink-soft: #cdd5e2;
    --muted: #9ba7b9;
    --line: #24324b;
    --accent: #f2884b;
    --accent-hover: #f7a575;
    --accent-soft: #2b1d15;
    --on-accent: #1a0f07;
    --panel: #172338;
    --on-panel: #f4f1ea;
    --on-panel-muted: #b9c2d3;
    --studio: #1d1a3f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -16px rgba(0, 0, 0, .6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 600; }
h1, h2 { font-family: var(--font-display); text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); line-height: 1.03; letter-spacing: -.035em; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.7rem); line-height: 1.08; letter-spacing: -.03em; }
h3 { font-size: 1.12rem; line-height: 1.3; letter-spacing: -.012em; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; letter-spacing: -.02em; }
.brand-name small { font-family: var(--font); font-weight: 500; font-size: .78rem; letter-spacing: .02em; color: var(--muted); margin-left: 4px; }
.mark { width: 32px; height: 32px; flex: none; }
.mark-bg { fill: var(--ink); }
.mark-top { fill: var(--paper); }
.mark-bot { fill: var(--accent); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
  text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: .95rem;
  padding: 8px 12px; border-radius: 10px;
}
.nav a:not(.btn):hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }

.menu { display: none; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; user-select: none;
  font-weight: 600; font-size: .95rem; padding: 9px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { border-color: var(--ink-soft); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  padding: 8px; display: grid;
}
.menu-panel a { text-decoration: none; padding: 11px 14px; border-radius: 10px; font-weight: 500; }
.menu-panel a:hover { background: var(--paper-2); }

@media (max-width: 760px) {
  .nav { display: none; }
  .menu { display: block; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--on-accent);
  text-decoration: none; font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 15px 22px; border-radius: 12px; border: 1px solid transparent;
  transition: background-color .15s ease, transform .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 10px 16px; font-size: .95rem; margin-left: 6px; }
.btn-lg { padding: 18px 26px; font-size: 1.05rem; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); border-color: var(--ink-soft); }
.btn-light { background: #ffffff; color: var(--studio); }
.btn-light:hover { background: #f1eefe; }

/* Sections */
.section { padding: clamp(72px, 9vw, 112px) 0; }
.band { background: var(--paper-2); border-block: 1px solid var(--line); }
.eyebrow {
  margin: 0 0 14px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .sub { margin-top: 16px; }
.sub { color: var(--muted); font-size: 1.08rem; }

/* Hero */
.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(40px, 6vw, 72px); align-items: center; }
.hl { color: var(--accent); }
.lede { margin-top: 24px; font-size: clamp(1.08rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 560px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.eq-card {
  margin: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
  padding: clamp(24px, 3.4vw, 36px);
}
.eq { display: grid; gap: 6px; padding-bottom: 22px; border-bottom: 1px dashed var(--line); }
.eq-row { display: flex; align-items: baseline; gap: 14px; font-size: clamp(2.2rem, 4.2vw, 3.1rem); line-height: 1.15; }
.eq-var { font-family: var(--font-math); font-style: italic; font-weight: 400; width: .7em; }
.eq-op { color: var(--muted); font-weight: 400; }
.eq-before { color: var(--muted); }
.eq-before .eq-val { position: relative; color: var(--muted); padding: 0 .08em; }
.eq-before .eq-val::after {
  content: ""; position: absolute; left: -45%; right: -45%; top: 52%; height: 3px; border-radius: 3px;
  background: var(--accent); transform: rotate(-14deg);
}
.eq-after .eq-val { font-family: var(--font-display); font-weight: 600; letter-spacing: -.03em; color: var(--accent); }
.eq-note { margin: 18px 0 14px; font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.check {
  width: 24px; height: 24px; flex: none; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center;
}
.check svg { width: 14px; height: 14px; }

/* Tools strip */
.tools { padding: 8px 0 clamp(56px, 7vw, 80px); }
.tools-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; border-top: 1px solid var(--line); padding-top: 28px; }
.tools-label { margin: 0; font-size: .85rem; font-weight: 600; color: var(--muted); }
.tool-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tool-list li {
  font-size: .88rem; font-weight: 500; color: var(--ink-soft);
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card);
}

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 12px;
}
.card p { margin: 0; color: var(--muted); font-size: .98rem; }
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 6px;
}
.icon svg { width: 22px; height: 22px; }

.card-link { text-decoration: none; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.card-link:hover { border-color: var(--ink-soft); transform: translateY(-2px); box-shadow: var(--shadow); }
.card-tag { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.card-link .go { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--accent); font-size: .96rem; }

/* Background */
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 80px); align-items: start; }
.split .sub { margin-top: 18px; }
.proof { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.proof li { padding: 22px 0; border-top: 1px solid var(--line); color: var(--muted); }
.proof li:last-child { border-bottom: 1px solid var(--line); }
.proof strong { display: block; color: var(--ink); font-size: 1.08rem; font-weight: 600; letter-spacing: -.01em; margin-bottom: 4px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: none; }
.steps li { position: relative; padding: 28px 28px 30px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.step-num {
  display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: .9rem; letter-spacing: .04em;
  color: var(--accent); margin-bottom: 18px; font-variant-numeric: tabular-nums;
}
.steps h3 { margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); font-size: .98rem; }

/* Studio */
.studio {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--studio); color: #ece9ff; border-radius: 26px;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 24px;
  padding: clamp(32px, 5vw, 64px);
}
.studio h2 { color: #ffffff; }
.studio h2 + p { margin-top: 16px; color: #c9c4f2; font-size: 1.08rem; max-width: 520px; }
.studio .eyebrow-light { color: #ffb385; }
.studio .btn { margin-top: 10px; }
.studio .fineprint { margin: 22px 0 0; font-size: .86rem; color: #a9a3dc; }
#studio { padding-top: 0; padding-bottom: clamp(18px, 2.5vw, 28px); }
#contact { padding-top: clamp(18px, 2.5vw, 28px); padding-bottom: clamp(56px, 7vw, 88px); }
.studio-art { justify-self: center; width: min(100%, 360px); }
.studio-art .s-ring { fill: none; stroke: #8b7cff; stroke-width: 10; opacity: .9; }
.studio-art .s-dot { fill: #ff8a4c; }
.studio-art .s-tile { fill: #2f2a66; }
.studio-art .s-tile-2 { fill: #3c3584; }
.studio-art .s-note { fill: #ffd166; }
.studio-art .s-line { fill: none; stroke: #ffd166; stroke-width: 6; stroke-linecap: round; }

/* Contact */
.contact {
  background: var(--panel); color: var(--on-panel); border-radius: 26px;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 64px); align-items: end;
  padding: clamp(32px, 5vw, 64px);
}
.contact h2 { color: #ffffff; }
.contact h2 + p { color: var(--on-panel-muted); font-size: 1.08rem; margin: 16px 0 0; max-width: 540px; }
.contact .eyebrow { color: #ffb385; }
.contact-actions { display: grid; gap: 18px; justify-items: start; }
.contact-actions .btn { background: #f2884b; color: #1a0f07; overflow-wrap: anywhere; text-align: left; line-height: 1.25; }
.contact-actions .btn:hover { background: #f7a575; }
.contact-meta { margin: 0; color: var(--on-panel-muted); font-size: .95rem; line-height: 1.6; }

/* Footer */
.site-footer { padding: 56px 0 40px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.footer-brand { max-width: 420px; }
.footer-brand p { margin: 14px 0 0; color: var(--muted); font-size: .93rem; }
.footer-nav { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 40px; align-content: start; }
.footer-nav a { text-decoration: none; color: var(--ink-soft); font-size: .95rem; font-weight: 500; }
.footer-nav a:hover { color: var(--accent); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; color: var(--muted); font-size: .88rem; }
.footer-base p { margin: 0; }

/* Legal pages */
.doc { padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 8vw, 104px); }
.doc-inner { max-width: 760px; }
.doc h1 { font-size: clamp(2.2rem, 4.4vw, 3.1rem); }
.doc .updated { margin-top: 14px; color: var(--muted); font-size: .95rem; }
.doc h2 { font-size: 1.35rem; letter-spacing: -.015em; margin: 44px 0 12px; font-family: var(--font); }
.doc p, .doc li { color: var(--ink-soft); }
.doc ul { padding-left: 1.2em; margin: 0 0 1em; }
.doc li { margin-bottom: .45em; }
.doc a:not(.btn) { color: var(--accent); text-underline-offset: 3px; }
.doc .eyebrow { color: var(--accent); }
.doc .summary {
  margin-top: 32px; padding: 22px 24px; border-radius: var(--radius); background: var(--paper-2); border: 1px solid var(--line);
}
.doc .summary p:last-child { margin-bottom: 0; }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound .eq-row { justify-content: center; margin-bottom: 18px; }
.notfound p { color: var(--muted); }

/* Responsive */
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .hero-grid, .split, .studio, .contact { grid-template-columns: minmax(0, 1fr); }
  .eq-card { max-width: 520px; }
  .studio-art { width: min(100%, 280px); justify-self: start; }
  .contact { align-items: start; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 24px; }
  .cta-row .btn { flex: 1 1 auto; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
  .studio-art { display: none; }
}
