/* FMS agency site — monochrome, dark. Tokens in OKLCH, chroma 0 (true neutrals). */
html, body { background: oklch(0.13 0 0); }

:root {
  --bg: oklch(0.13 0 0);
  --bg-2: oklch(0.17 0 0);
  --fg: oklch(0.97 0 0);
  --fg-2: oklch(0.84 0 0);
  --muted: oklch(0.7 0 0);
  --line: oklch(1 0 0 / 0.12);
  --line-strong: oklch(1 0 0 / 0.24);
  --sans: "Host Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(20px, 4vw, 64px);
  --space-section: clamp(88px, 11vw, 152px);
  --space-block: clamp(40px, 5vw, 72px);
  --header-h: 72px;
  --max: 1240px;
  --z-canvas: 0; --z-scrim: 1; --z-content: 2; --z-header: 10; --z-skip: 20;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  color: var(--fg-2); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.7;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip;
}
::selection { background: oklch(1 0 0 / 0.22); color: var(--fg); }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; border-radius: 4px; }

h1, h2, h3 { color: var(--fg); font-weight: 500; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.4vw, 5.6rem); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.06; letter-spacing: -0.03em; }
h3 { font-size: clamp(1.2rem, 1.6vw, 1.4rem); line-height: 1.3; letter-spacing: -0.01em; }
p { text-wrap: pretty; max-width: 62ch; }

.skip { position: absolute; left: 12px; top: -60px; z-index: var(--z-skip); background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* header */
.header { position: fixed; inset: 0 0 auto 0; z-index: var(--z-header); border-bottom: 1px solid transparent; transition: background-color .3s var(--ease), border-color .3s var(--ease); }
.header.is-solid { background: oklch(0.13 0 0 / 0.97); border-bottom-color: var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--fg); text-decoration: none; font-weight: 600; font-size: 1rem; line-height: 1.2; letter-spacing: -0.01em; white-space: nowrap; }
.brand-mark { width: auto; height: 34px; }
.brand-name { display: grid; line-height: 1; gap: 5px; }
.brand-name b { font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.02em; }
.brand-name span { font-weight: 400; font-size: 0.5625rem; letter-spacing: 0.42em; color: var(--muted); }
.footer-brand { display: inline-flex; align-items: center; gap: 20px; }
.footer-brand img { width: auto; height: 28px; opacity: .85; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 0.9375rem; }
.nav a { color: var(--muted); text-decoration: none; transition: color .2s var(--ease); }
.nav a:hover { color: var(--fg); }
.nav .btn { color: var(--bg); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px;
  border-radius: 999px; font: 500 0.9375rem/1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary:hover { background: oklch(1 0 0); }
.btn-ghost { color: var(--fg); border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: oklch(1 0 0 / 0.06); border-color: oklch(1 0 0 / 0.4); }
.nav .btn { min-height: 44px; padding: 0 18px; }
.nav a:not(.btn) { padding-block: 10px; }
.brand { padding-block: 11px; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: var(--z-canvas); -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 140px); mask-image: linear-gradient(to bottom, transparent 0, #000 140px); }
.hero .scrim { position: absolute; inset: 0; z-index: var(--z-scrim); pointer-events: none;
  background:
    linear-gradient(90deg, oklch(0.13 0 0 / .95) 0%, oklch(0.13 0 0 / .84) 32%, oklch(0.13 0 0 / .3) 56%, oklch(0.13 0 0 / 0) 70%),
    linear-gradient(0deg, oklch(0.13 0 0) 0%, oklch(0.13 0 0 / 0) 22%); }
.hero .wrap { position: relative; z-index: var(--z-content); padding-block: 140px clamp(72px, 13vh, 128px); }
.hero-copy { max-width: 46rem; }
.hero .kicker { color: var(--muted); font-size: 0.9375rem; margin-bottom: 22px; }
.hero .lede { margin-top: 26px; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: var(--fg-2); max-width: 34rem; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 36px; }
.cta-note { margin-top: 16px; font-size: 0.875rem; color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .hero .kicker, .hero h1, .hero .lede, .hero .cta-row, .hero .cta-note { animation: rise .9s var(--ease) both; }
  .hero h1 { animation-delay: .08s; } .hero .lede { animation-delay: .2s; } .hero .cta-row { animation-delay: .32s; } .hero .cta-note { animation-delay: .4s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
}

/* sections */
.section { padding-block: var(--space-section); border-top: 1px solid var(--line); }
.section h2 { max-width: 18ch; }
.section .intro { margin-top: 24px; font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); }

/* problem */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.chores { list-style: none; border-top: 1px solid var(--line); }
.chores li { display: grid; grid-template-columns: 2.25rem 1fr; gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--line); color: var(--fg); font-size: clamp(1.0625rem, 1.45vw, 1.3rem); line-height: 1.45; }
.chores li::before { content: "×"; font-family: var(--mono); color: var(--muted); line-height: 1.6; }
.problem-coda { margin-top: 32px; }

/* how we work */
.flow-band { position: relative; height: clamp(300px, 42vw, 460px); margin-top: var(--space-block); border-block: 1px solid var(--line); background: oklch(0.11 0 0); }
.flow-band canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); margin-top: var(--space-block); counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: block; font-family: var(--mono); font-size: 0.875rem; color: var(--muted); margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line-strong); }
.steps h3 { margin-bottom: 10px; }

/* what we build */
.build-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.build-stage { position: relative; aspect-ratio: 1 / 1; max-height: 560px; width: 100%; }
.build-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.jobs { margin-top: 40px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.jobs div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.jobs dt { color: var(--fg); font-weight: 500; }
.jobs dd { color: var(--fg-2); }
.example, .admission { margin-top: 28px; color: var(--muted); font-size: 1rem; }
.example { margin-top: 36px; }
.example strong, .admission strong { color: var(--fg); font-weight: 500; }

/* proof */
.proof { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 120px); }
.proof-item { padding: 28px 0; border-top: 1px solid var(--line-strong); }
.proof-item + .proof-item { border-top-color: var(--line); }
.proof-item h3 { margin-bottom: 8px; }
.proof-item .tag { display: inline-block; margin-top: 14px; font-family: var(--mono); font-size: 0.8125rem; color: var(--muted); }

/* audit call */
.audit { background: var(--bg-2); }
.audit-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 120px); margin-top: var(--space-block); }
.audit ol { list-style: none; counter-reset: a; display: grid; gap: 22px; }
.audit ol li { counter-increment: a; display: grid; grid-template-columns: 2.25rem 1fr; gap: 12px; color: var(--fg); font-size: clamp(1.0625rem, 1.35vw, 1.25rem); line-height: 1.5; }
.audit ol li::before { content: counter(a); font-family: var(--mono); font-size: 0.875rem; color: var(--muted); padding-top: .25em; }
.fit h3 { font-size: 1rem; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-bottom: 10px; }
.fit p + h3 { margin-top: 28px; }
.fit p { color: var(--fg); }
.audit .cta-row { margin-top: 48px; }

/* faq */
.faq-list { margin-top: var(--space-block); border-top: 1px solid var(--line); max-width: 52rem; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; color: var(--fg); font-size: clamp(1.0625rem, 1.4vw, 1.25rem); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover::after { color: var(--fg); }
.faq-list summary::after { content: "+"; font-family: var(--mono); color: var(--muted); font-size: 1.25rem; transition: transform .25s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 0 26px; }

/* final cta */
.final { position: relative; overflow: hidden; isolation: isolate; min-height: clamp(420px, 56vw, 640px); display: flex; align-items: center; }
.final canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: var(--z-canvas); }
.final .scrim { position: absolute; inset: 0; z-index: var(--z-scrim); pointer-events: none; background: linear-gradient(90deg, oklch(0.13 0 0 / .96) 0%, oklch(0.13 0 0 / .85) 34%, oklch(0.13 0 0 / .2) 62%, oklch(0.13 0 0 / 0) 78%); }
.final .wrap { position: relative; z-index: var(--z-content); width: min(100% - 2 * var(--gutter), var(--max)); }
.final h2 { max-width: 14ch; font-size: clamp(2.4rem, 6vw, 5rem); }

/* footer */
.footer { border-top: 1px solid var(--line); padding-block: 40px; font-size: 0.875rem; color: var(--muted); }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.footer a { color: var(--fg-2); text-decoration: none; display: inline-block; padding: 12px 4px; margin: -12px -4px; }
.footer a:hover { color: var(--fg); }

/* latest posts (filled by the blog engine at build time) */
.latest-posts { list-style: none; margin-top: var(--space-block); border-top: 1px solid var(--line); max-width: 56rem; }
.latest-posts a { display: grid; grid-template-columns: 10rem 1fr; gap: 24px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--line); color: var(--fg); text-decoration: none; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.4; }
.latest-posts time { color: var(--muted); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.latest-posts a:hover span { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.more-link { margin-top: 28px; }
.more-link a { color: var(--fg); text-decoration: none; display: inline-block; padding-block: 10px; }
.more-link a:hover { text-decoration: underline; text-underline-offset: 5px; }
.footer-links { display: flex; gap: 28px; }

/* blog pages (rendered by systems/seo-blog-engine; its blog.css loads AFTER this file, so every rule here is prefixed with `html` to win) */
html .blog-content { --ink: var(--fg); --paper: var(--bg-2); --white: oklch(0.97 0 0); color: var(--fg-2); padding-top: calc(var(--header-h) + 8px); }
html .blog-content a { color: var(--fg); }
html .blog-content .crumbs, html .blog-content .crumbs a { color: var(--muted); }
html .blog-content .feed-card { background: var(--bg-2); border-color: var(--line); border-radius: 16px; }
html .blog-content .feed-media.placeholder { background: var(--bg-2); }
html .blog-content .feed-overlay h2 { font-weight: 500; letter-spacing: -0.02em; }
html .blog-content .feed-btn { color: var(--bg); border-radius: 999px; font-weight: 500; padding: 9px 18px; }
html .blog-content .blog-rail { border-left-color: var(--line); }
html .blog-content .rail-title { font-weight: 500; letter-spacing: -0.03em; text-transform: none; font-size: clamp(2rem, 3vw, 2.6rem); }
html .blog-content .rail-list li { border-bottom-color: var(--line); }
html .blog-content .rail-list a { font-weight: 500; }
html .blog-content .article-head .kicker { color: var(--muted); letter-spacing: 0; text-transform: none; font-weight: 400; font-size: 0.9375rem; }
html .blog-content .article-head h1 { font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; color: var(--fg); font-size: clamp(2.1rem, 4.2vw, 3.6rem); }
html .blog-content img.hero { min-height: 0; height: auto; display: block; overflow: visible; aspect-ratio: 16 / 9; object-fit: cover; }
html .blog-content .feed-overlay h2 a, html .blog-content .rail-list a { text-decoration: none; }
html .blog-content .feed-overlay h2 a:hover, html .blog-content .rail-list a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
html .blog-content .feed-btn { text-decoration: none; }
html .blog-content .byline { color: var(--muted); }
html .blog-content .byline .author { font-weight: 500; color: var(--fg-2); }
html .blog-content .hero, html .blog-content .hero-fallback { border-color: var(--line); border-radius: 16px; }
html .blog-content .article-body { color: var(--fg-2); }
html .blog-content .article-body h2, html .blog-content .article-body h3 { color: var(--fg); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
html .blog-content .article-body strong { color: var(--fg); font-weight: 600; }
html .blog-content .article-body a { text-decoration-color: oklch(1 0 0 / 0.35); text-underline-offset: 3px; }
html .blog-content .article-body a:hover { text-decoration-color: var(--fg); }
html .blog-content .article-body blockquote { border: 1px solid var(--line-strong); border-radius: 14px; background: var(--bg-2); color: var(--fg); padding: 20px 24px; }
html .blog-content .article-cta { align-items: center; background: var(--bg-2); color: var(--fg); border: 1px solid var(--line); border-radius: 18px; padding: 32px; }
html .blog-content .cta-headline { font-weight: 500; letter-spacing: -0.01em; }
html .blog-content .cta-body { color: var(--fg-2); }
html .blog-content .cta-button { background: var(--fg); color: var(--bg); border-radius: 999px; font-weight: 500; padding: 14px 22px; text-decoration: none; }
html .blog-content nav.related { border-top-color: var(--line); }
html .blog-content nav.related h2 { letter-spacing: -0.01em; text-transform: none; font-weight: 500; font-size: 1.25rem; color: var(--fg); }
html .blog-content nav.related a { border-color: var(--line); border-radius: 14px; font-weight: 500; text-decoration: none; }
html .blog-content nav.related a:hover { border-color: var(--line-strong); }
html .blog-content .page-num, html .blog-content .page-step { border-color: var(--line); border-radius: 999px; text-decoration: none; }

/* book page */
.page { padding-block: 140px clamp(80px, 10vw, 140px); }
.page h1 { font-size: clamp(2.25rem, 5vw, 4.25rem); max-width: 16ch; }
.page .lede { margin-top: 20px; font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); }
.booking { margin-top: 48px; min-height: 640px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--bg-2); }
.booking iframe { width: 100%; height: 760px; border: 0; display: block; }
.booking-fallback { padding: clamp(28px, 4vw, 48px); }
.booking-fallback p { color: var(--fg); }
.booking-fallback p + p { margin-top: 12px; color: var(--fg-2); }

/* responsive */
@media (max-width: 900px) {
  .split, .build-grid, .proof, .audit-grid { grid-template-columns: 1fr; }
  .build-stage { max-width: 440px; margin-inline: auto; }
}
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .latest-posts a { grid-template-columns: 1fr; gap: 6px; } }
@media (max-width: 760px) {
  .nav a:not(.btn) { display: none; }
  .final .scrim { background: linear-gradient(180deg, oklch(0.13 0 0 / .9) 0%, oklch(0.13 0 0 / .75) 55%, oklch(0.13 0 0 / .35) 100%); }
  .brand { gap: 10px; }
  .brand-mark { height: 26px; }
  .nav .btn { padding: 0 16px; }
  .hero { align-items: flex-start; }
  .hero .scrim { background: linear-gradient(180deg, oklch(0.13 0 0 / .55) 0%, oklch(0.13 0 0 / .84) 26%, oklch(0.13 0 0 / .8) 64%, oklch(0.13 0 0 / .2) 86%, oklch(0.13 0 0 / 0) 100%); }
  .hero .wrap { padding-block: 120px 96px; }
  .jobs div { grid-template-columns: 1fr; gap: 4px; }
  .cta-row .btn { flex: 1 1 auto; }
}
canvas[data-ascii] { opacity: 0; transition: opacity 1.2s var(--ease); }
canvas[data-ascii].is-live { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  canvas[data-ascii], .header { transition: none; }
  .btn, .btn .arrow, .faq-list summary::after { transition: none; }
}
