/* ASioson Consulting LLC — asioson.com
 * Visual system: Geist / Geist Mono type, warm paper/ink palette with a
 * burnt-orange accent (restored from the original Sep 14, 2026 morning
 * deploy), 25px background grid + Game-of-Life canvas (life.js),
 * full-width rules between sections, solid "bands" that sit over the grid,
 * and blur/rise reveal-on-scroll (reveal.js). */

:root {
  --bg: #f6f4ee;
  --fg: #121417;
  --fg-2: #33383f;
  --muted: #5f6771;
  --faint: #5f6771;          /* 4.5:1+ on --bg for small text */
  --line: #d9d4c8;
  --rule: rgb(18 20 23 / 0.7);
  --band: #edeae1;
  --elevated: #f6f4ee;
  --accent: oklch(64% 0.21 41);             /* burnt orange */
  --accent-strong: oklch(40% 0.17 41); /* 9:1 on --bg (WCAG AA text) */
  --accent-ink: oklch(40% 0.17 41);
  --accent-soft: oklch(95% 0.04 41);
  --warm: #FFAB70;               /* orange */
  --pink: #F87683;
  --shadow: 0 8px 32px -10px rgb(0 0 0 / 0.2);
  --max: 1152px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --reveal: 0.8s;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101214;
    --fg: #f1efe9;
    --fg-2: #cfcbc2;
    --muted: #9b998f;
    --faint: #9b998f;
    --line: #2a2d31;
    --rule: rgb(241 239 233 / 0.7);
    --band: #17191c;
    --elevated: #101214;
    --accent: oklch(72% 0.19 41);
    --accent-strong: oklch(80% 0.15 41);
    --accent-ink: oklch(80% 0.15 41);
    --accent-soft: oklch(24% 0.05 41);
    --shadow: 0 8px 32px -10px rgb(0 0 0 / 0.6);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; max-width: 100vw; overflow-x: hidden;
  background-color: var(--bg); color: var(--fg);
  font-family: var(--font); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-wrap: pretty;
  /* CSS grid fallback; life.js paints the same grid on the canvas and hides this */
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: 25px 25px;
}
body.has-life { background-image: none; }

/* Background canvas (grid + Game of Life). Content stacks above it. */
#life { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; color-scheme: inherit; }
.site-header, main, .site-footer { position: relative; z-index: 1; }

a { color: inherit; text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-strong); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent-strong); outline-offset: 3px; border-radius: 2px;
}
h1, h2, h3, h4 { font-weight: 500; letter-spacing: -0.025em; line-height: 1.1; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); letter-spacing: -0.03em; line-height: 1; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code { font-family: inherit; background: var(--accent-soft); padding: 0.1em 0.35em; border-radius: 4px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Bracketed section labels — [Like this] */
.eyebrow {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-2); margin-bottom: 1.4rem; display: block;
}
.eyebrow::before { content: "[" / ""; } .eyebrow::after { content: "]" / ""; }
.muted { color: var(--muted); }
.lede { font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--fg-2); max-width: 52ch; letter-spacing: -0.01em; }

/* Full-width rule between sections */
.rule { width: 100%; border-top: 1px solid var(--rule); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in oklab, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { text-decoration: none; font-weight: 600; letter-spacing: -0.01em; text-transform: none; font-size: 1rem; display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 22px; height: 22px; display: block; }
.brand-mark path { fill: var(--accent-strong); }
.nav { display: flex; gap: 1.6rem; align-items: center; }
.nav a { text-decoration: none; color: var(--fg-2); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; padding: 10px 0; }
.nav a:hover { color: var(--fg); }
.nav .cta { color: var(--fg); border: 1px solid var(--fg); padding: 8px 14px; border-radius: 6px; }
.nav .cta:hover { background: var(--accent); border-color: var(--accent); color: hsl(0 0% 10%); }
@media (max-width: 700px) { .nav a:not(.cta) { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 44px; padding: 0 20px; border-radius: 6px; text-decoration: none; font: inherit; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; border: 1px solid var(--fg); color: var(--fg); background: transparent; cursor: pointer; transition: background var(--reveal) var(--ease-out), color 0.2s, border-color 0.2s, transform 0.2s; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--fg); color: var(--bg); }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); color: hsl(0 0% 10%); }
.btn:not(.primary):hover { border-color: var(--accent-strong); color: var(--accent-strong); }

/* Sections. Alternate between transparent (grid shows through) and .band (solid). */
.section { padding: clamp(64px, 9vw, 140px) 0; position: relative; overflow: hidden; }
.band { background: color-mix(in oklab, var(--band) 55%, transparent); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 6vw, 72px); }
.section-head .lede { margin: 0 auto; }

/* Hero */
.hero { padding: clamp(80px, 14vw, 180px) 0 clamp(56px, 8vw, 110px); text-align: center; }
.hero .eyebrow { margin-bottom: 2rem; }
.hero h1 { margin-bottom: 1.4rem; }
.hero h1 em { font-style: normal; color: var(--accent-strong); }
.hero .lede { margin: 0 auto 2.2rem; max-width: 58ch; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-meta { list-style: none; padding: 0; margin: clamp(48px, 7vw, 88px) 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }

/* Challenge / Solution pair (why) */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 48px); max-width: 960px; margin: 0 auto; }
.pair .k { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--fg-2); margin-bottom: 0.7rem; }
.pair p { color: var(--fg-2); margin: 0; }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; } }

/* Then / now comparison cards */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(40px, 6vw, 72px); }
.card { background: var(--bg); border: 1px solid color-mix(in oklab, var(--fg) 60%, transparent); border-radius: 8px; padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); transition: border-color 0.3s, transform 0.3s var(--ease-out); }
.card:hover { border-color: color-mix(in oklab, var(--fg) 85%, transparent); }
.compare h3 { font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; color: var(--muted); margin-bottom: 1.2rem; text-align: center; }
.compare .now h3 { color: var(--accent-strong); }
.compare ul { list-style: none; padding: 0; margin: 0; }
.compare li { padding: 11px 0; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--fg-2); }
.compare li:first-child { border-top: 0; }
.compare .now li { color: var(--fg); }
.compare li::before { content: "> " / ""; color: var(--faint); }
.compare .now li::before { color: var(--accent-strong); }
@media (max-width: 700px) { .compare { grid-template-columns: 1fr; } }

/* Services — numbered rows */
.rows { border-top: 1px solid var(--rule); max-width: 960px; margin: 0 auto; }
.row { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(16px, 3vw, 48px); padding: clamp(24px, 3.5vw, 40px) 0; border-bottom: 1px solid var(--rule); }
.row .num { font-family: var(--mono); color: var(--accent-strong); font-size: 0.85rem; padding-top: 0.25rem; }
.row h3 { margin-bottom: 0.4rem; }
.row .detail { color: var(--fg-2); font-size: 0.95rem; }
.row .detail ul { margin: 0.6rem 0 0; padding-left: 0; list-style: none; color: var(--muted); }
.row .detail li { margin: 0.25rem 0; }
.row .detail li::before { content: "- " / ""; }
@media (max-width: 760px) { .row { grid-template-columns: 44px minmax(0, 1fr); } .row .detail { grid-column: 2; } }

/* Approach — timeline (tiles) */
.timeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.timeline > div { background: var(--bg); border: 1px solid color-mix(in oklab, var(--fg) 60%, transparent); border-radius: 8px; padding: 18px 16px 20px; box-shadow: var(--shadow); }
.timeline .k { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-strong); display: block; margin-bottom: 0.7rem; }
.timeline h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.timeline p { font-size: 0.85rem; color: var(--fg-2); margin: 0; }
@media (max-width: 900px) { .timeline { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .timeline { grid-template-columns: 1fr; } }

/* Stack — stat-style grid */
.stack { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stack > div { border: 1px solid var(--line); border-radius: 8px; padding: 20px; background: color-mix(in oklab, var(--bg) 70%, transparent); }
.stack dt { font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-strong); margin-bottom: 0.6rem; }
.stack dd { margin: 0; color: var(--fg-2); font-size: 0.92rem; }
@media (max-width: 860px) { .stack { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .stack { grid-template-columns: 1fr; } }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 80px); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.contact-lines { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.contact-lines li { padding: 12px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 88px 1fr; gap: 12px; font-size: 0.95rem; }
.contact-lines .k { font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding-top: 3px; }
form.inquiry { display: grid; gap: 16px; background: var(--bg); border: 1px solid color-mix(in oklab, var(--fg) 60%, transparent); border-radius: 8px; padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--fg-2); }
.field .hint { color: var(--muted); text-transform: none; letter-spacing: 0; }
.field input, .field textarea { font: inherit; color: var(--fg); background: var(--elevated); border: 1px solid var(--line); border-radius: 6px; padding: 11px 13px; min-height: 44px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { border-color: var(--accent-strong); outline: 2px solid var(--accent-strong); outline-offset: 2px; box-shadow: none; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 0.82rem; line-height: 1.55; color: var(--fg-2); padding: 14px 16px; background: var(--accent-soft); border: 1px solid color-mix(in oklab, var(--accent) 60%, transparent); border-radius: 8px; }
.consent input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--accent-strong); }
.consent a { color: var(--fg); }
.form-note { font-size: 0.8rem; color: var(--muted); margin: 0; }

/* Footer */
.site-footer { padding: 40px 0 56px; color: var(--muted); font-size: 0.85rem; background: color-mix(in oklab, var(--band) 55%, transparent); border-top: 1px solid var(--rule); }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.site-footer a { color: var(--fg-2); }
.site-footer ul a { text-decoration: none; display: inline-block; padding: 4px 0; }
.site-footer a:hover { color: var(--accent-strong); text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0; }
.site-footer .copyright { margin-top: 12px; }
.site-footer .legal-name { color: var(--fg); font-weight: 500; text-transform: none; letter-spacing: normal; font-size: 0.85rem; margin-bottom: 6px; }
@media (max-width: 700px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* Reveal on scroll (reveal.js adds .in). Blur + rise, like the reference. */
.reveal { opacity: 0; filter: blur(4px); transform: translateY(24px); transition: opacity var(--reveal) var(--ease-out), filter var(--reveal) var(--ease-out), transform var(--reveal) var(--ease-out); }
.reveal.in { opacity: 1; filter: none; transform: none; }
.reveal-group > * { opacity: 0; filter: blur(4px); transform: translateY(24px); transition: opacity var(--reveal) var(--ease-out), filter var(--reveal) var(--ease-out), transform var(--reveal) var(--ease-out); }
.reveal-group.in > * { opacity: 1; filter: none; transform: none; }
.reveal-group.in > :nth-child(2) { transition-delay: 0.08s; }
.reveal-group.in > :nth-child(3) { transition-delay: 0.16s; }
.reveal-group.in > :nth-child(4) { transition-delay: 0.24s; }
.reveal-group.in > :nth-child(5) { transition-delay: 0.32s; }
.reveal-group.in > :nth-child(6) { transition-delay: 0.40s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-group > * { opacity: 1; filter: none; transform: none; transition: none; }
}
.no-js .reveal, .no-js .reveal-group > * { opacity: 1; filter: none; transform: none; }

/* Legal documents */
.doc { padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 120px); }
.doc .doc-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
@media (max-width: 860px) { .doc .doc-grid { grid-template-columns: 1fr; } }
.doc .toc { font-size: 0.85rem; }
@media (min-width: 861px) { .doc .toc { position: sticky; top: 84px; } }
.doc .toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.doc .toc li a { display: block; padding: 7px 0 7px 14px; text-decoration: none; color: var(--muted); margin-left: -1px; border-left: 1px solid transparent; }
.doc .toc li a:hover { color: var(--fg); border-left-color: var(--accent-strong); }
.doc .toc .toc-title { font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 12px; }
.doc h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); text-transform: none; }
.doc .meta { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); margin-bottom: 2.5rem; }
.doc article { max-width: 72ch; background: color-mix(in oklab, var(--bg) 85%, transparent); }
.doc article h2 { font-size: 1.4rem; margin-top: 2.8rem; padding-top: 1.6rem; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.doc article h3 { font-size: 1.05rem; margin-top: 1.6rem; }
.doc article ul, .doc article ol { padding-left: 1.3rem; }
.doc article li { margin: 0.35rem 0; }
.doc .callout { background: var(--accent-soft); border: 1px solid color-mix(in oklab, var(--accent) 60%, transparent); border-radius: 8px; padding: 18px 20px; margin: 1.4rem 0; }
.doc .callout strong { color: var(--accent-strong); }
.doc table { border-collapse: collapse; width: 100%; font-size: 0.92rem; margin: 1rem 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.doc th { font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 500; }
.doc address { font-style: normal; }

/* Accessibility: skip link, anchor offset under the sticky header, animation pause control */
.skip-link { position: absolute; left: 12px; top: -100px; z-index: 30; padding: 10px 14px; background: var(--fg); color: var(--bg); text-decoration: none; border-radius: 6px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; }
.skip-link:focus-visible { top: 12px; outline: 2px solid var(--accent-strong); outline-offset: 3px; }
main:focus { outline: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
section[id], h2[id] { scroll-margin-top: 80px; }
.life-toggle { position: fixed; right: 12px; bottom: 12px; z-index: 21; min-height: 36px; padding: 6px 12px; font: inherit; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--fg); background: color-mix(in oklab, var(--bg) 90%, transparent); border: 1px solid var(--fg); border-radius: 6px; cursor: pointer; backdrop-filter: blur(6px); }
.life-toggle:hover { background: var(--accent); color: hsl(0 0% 10%); border-color: var(--accent); }
@media print { #life, .life-toggle, .skip-link { display: none; } }
