/* csvizlabs.com — calm, editorial, verification-first.
   Warm monochrome canvas, serif display + geometric sans + mono meta, 1px hairlines, colour used only for meaning.
   The parent brand is deliberately quiet; the product screenshots carry the colour. */

:root {
  --bg: #FBFBFA; --surface: #FFFFFF; --sunken: #F5F4F1;
  --ink: #111111; --ink-2: #2F3437; --muted: #6B6A67; --faint: #706F6C; /* both pass WCAG AA (4.5:1) on every surface */
  --line: #EAEAEA; --line-strong: #DAD9D6;
  --accent: #1F4FD8;
  --blue-bg: #E1F3FE; --blue-tx: #1F6C9F; --green-bg: #EDF3EC; --green-tx: #346538;
  --yellow-bg: #FBF3DB; --yellow-tx: #956400; --red-bg: #FDEBEC; --red-tx: #9F2F2D;
  --serif: 'Instrument Serif', 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans: 'Geist', 'SF Pro Display', 'Helvetica Neue', system-ui, sans-serif;
  --mono: 'Geist Mono', 'SF Mono', ui-monospace, Menlo, monospace;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --radius: 12px; --radius-sm: 6px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--bg); color: var(--ink-2); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: #111; color: #fff; }

.container { width: min(100% - 2 * var(--gutter), 1120px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter); top: -4rem; z-index: 100; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm); text-decoration: none; }
.skip:focus { top: .75rem; }

/* ambient light — one slow warm spot, never on a scrolling container */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60rem 38rem at 78% -6%, rgba(214, 170, 96, .10), transparent 62%),
              radial-gradient(46rem 30rem at 4% 18%, rgba(31, 79, 216, .045), transparent 64%); }

/* type ------------------------------------------------------------------ */
.eyebrow { font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.display { font-family: var(--serif); font-weight: 400; color: var(--ink); letter-spacing: -.025em; line-height: 1.02;
  font-size: clamp(2.75rem, 1.1rem + 5.9vw, 5.75rem); text-wrap: balance; }
.display em, .h2 em { font-style: italic; letter-spacing: -.03em; }
.h2 { font-family: var(--serif); font-weight: 400; color: var(--ink); letter-spacing: -.02em; line-height: 1.08;
  font-size: clamp(2rem, 1.25rem + 2.7vw, 3.25rem); text-wrap: balance; }
.h3 { font-family: var(--sans); font-weight: 600; color: var(--ink); font-size: 1.0625rem; letter-spacing: -.01em; line-height: 1.35; }
.lede { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.6; color: var(--ink-2); max-width: 40rem; text-wrap: pretty; }
.muted { color: var(--muted); }
.small { font-size: .9375rem; }

/* header ---------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 251, 250, .86);
  -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s var(--ease); }
.site-header[data-scrolled], .site-header[data-open] { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 4rem; gap: 1.5rem; }
.wordmark { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-weight: 600; letter-spacing: -.015em; font-size: 1.0625rem; }
.mark { width: 1.6rem; height: 1.6rem; }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); font-size: .9375rem; }
.site-nav a { text-decoration: none; color: var(--muted); padding-block: .35rem; transition: color .2s var(--ease); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--ink); }
.site-nav .nav-product { display: inline-flex; align-items: center; gap: .35rem; color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: .4rem .7rem; background: var(--surface); }
.site-nav .nav-product:hover { border-color: var(--ink); }
.nav-product svg { width: .8rem; height: .8rem; }
.nav-toggle { display: none; appearance: none; border: 1px solid var(--line-strong); background: var(--surface); border-radius: var(--radius-sm); width: 2.5rem; height: 2.5rem; cursor: pointer; align-items: center; justify-content: center; }
.bars, .bars::before, .bars::after { display: block; width: 1rem; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.bars { position: relative; } .bars::before, .bars::after { content: ""; position: absolute; left: 0; } .bars::before { top: -5px; } .bars::after { top: 5px; }
[data-open] .bars { background: transparent; } [data-open] .bars::before { transform: translateY(5px) rotate(45deg); } [data-open] .bars::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 760px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1.25rem; }
  .js [data-open] .site-nav { display: flex; }
  .js .site-nav a { padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
  .js .site-nav a[aria-current="page"] { box-shadow: none; }
  .js .site-nav .nav-product { margin-top: 1rem; justify-content: center; border-bottom: 1px solid var(--line-strong); padding: .8rem; }
  html:not(.js) .header-row { flex-wrap: wrap; padding-block: .75rem; } html:not(.js) .site-nav { flex-wrap: wrap; }
}

/* buttons / tags -------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; gap: .55rem; font: inherit; font-weight: 500; font-size: .9875rem; line-height: 1; text-decoration: none;
  padding: .95rem 1.25rem; border-radius: var(--radius-sm); border: 1px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.btn:hover { background: #333; border-color: #333; } .btn:active { transform: scale(.98); }
.btn svg { width: .9rem; height: .9rem; transition: transform .3s var(--ease); } .btn:hover svg { transform: translate(2px, -2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); } .btn--ghost:hover { background: var(--surface); border-color: var(--ink); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.tag { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--mono); font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; padding: .3rem .6rem; border-radius: 999px; line-height: 1; }
.tag::before { content: ""; width: .375rem; height: .375rem; border-radius: 50%; background: currentColor; }
.tag--green { background: var(--green-bg); color: var(--green-tx); } .tag--blue { background: var(--blue-bg); color: var(--blue-tx); } .tag--yellow { background: var(--yellow-bg); color: var(--yellow-tx); }

/* sections -------------------------------------------------------------- */
.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--line); }
.section--sunken { background: var(--sunken); }
.section-head { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 1.5rem clamp(1.5rem, 4vw, 4rem); margin-bottom: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
.section-head .eyebrow { padding-top: .85rem; }
.section-head .lede { margin-top: 1.25rem; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } .section-head .eyebrow { padding-top: 0; } }

/* hero ------------------------------------------------------------------ */
.hero { padding-block: clamp(3.5rem, 2rem + 7vw, 8rem) clamp(3rem, 5vw, 5rem); }
.hero .eyebrow { display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.75rem; }
.hero .eyebrow::before { content: ""; width: 1.75rem; height: 1px; background: var(--line-strong); }
.hero .lede { margin-top: 1.75rem; }
.hero .btn-row { margin-top: 2.25rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin-top: 2.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-family: var(--mono); font-size: .75rem; letter-spacing: .04em; color: var(--muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: .5rem; } .hero-meta b { font-weight: 500; color: var(--ink); }
.page-hero { padding-block: clamp(3.5rem, 2rem + 6vw, 7rem) clamp(2.5rem, 4vw, 4rem); }
.page-hero .display { font-size: clamp(2.5rem, 1.2rem + 4.6vw, 4.5rem); }
.page-hero .eyebrow { display: block; margin-bottom: 1.5rem; } .page-hero .lede { margin-top: 1.5rem; }

/* faux window chrome around real product screenshots -------------------- */
.window { border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); overflow: hidden; box-shadow: 0 30px 70px -42px rgba(17, 17, 17, .22), 0 1px 0 rgba(17, 17, 17, .02); }
.window-bar { display: flex; align-items: center; gap: .9rem; padding: .7rem .95rem; border-bottom: 1px solid var(--line); background: var(--surface); }
.window-dots { display: flex; gap: .4rem; } .window-dots i { width: .6rem; height: .6rem; border-radius: 50%; background: #DEDDDA; display: block; }
.window-url { font-family: var(--mono); font-size: .6875rem; color: var(--muted); background: var(--sunken); border: 1px solid var(--line); border-radius: 999px; padding: .25rem .75rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.window img { width: 100%; background: #0B0F16; }
.shot-caption { margin-top: .9rem; font-family: var(--mono); font-size: .75rem; letter-spacing: .02em; color: var(--muted); }
.hero-shot { margin-top: clamp(1rem, 3vw, 2.5rem); }

/* grids ----------------------------------------------------------------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1rem; }
.card { grid-column: span 6; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: clamp(1.5rem, 2.6vw, 2.25rem);
  transition: box-shadow .2s var(--ease), border-color .2s var(--ease); }
.card:hover { box-shadow: 0 2px 8px rgba(0, 0, 0, .04); border-color: var(--line-strong); }
.card--wide { grid-column: span 7; } .card--narrow { grid-column: span 5; } .card--third { grid-column: span 4; } .card--full { grid-column: 1 / -1; }
.card .num { font-family: var(--mono); font-size: .75rem; color: var(--faint); letter-spacing: .06em; }
.card .h3 { margin-top: 1.1rem; } .card p { margin-top: .55rem; color: var(--muted); font-size: .9875rem; }
.card .tag { margin-bottom: 1.1rem; }
.card-list { margin-top: 1.25rem; display: grid; gap: .7rem; }
.card-list li { display: grid; grid-template-columns: 1.1rem 1fr; gap: .7rem; align-items: start; font-size: .9875rem; color: var(--ink-2); }
.card-list svg { width: 1.1rem; height: 1.1rem; margin-top: .22rem; color: var(--ink); }
.card .btn-row { margin-top: 1.75rem; }
@media (max-width: 900px) { .card, .card--wide, .card--narrow, .card--third { grid-column: 1 / -1; } }

/* learning journey ------------------------------------------------------ */
.journey { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.journey li { padding: 1.5rem 1.35rem 1.6rem; border-left: 1px solid var(--line); position: relative; }
.journey li:first-child { border-left: 0; }
.journey .step { font-family: var(--mono); font-size: .6875rem; letter-spacing: .08em; color: var(--faint); }
.journey .h3 { margin-top: .85rem; } .journey p { margin-top: .4rem; font-size: .9375rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 900px) { .journey { grid-template-columns: 1fr; } .journey li { border-left: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 3.25rem 1fr; column-gap: .5rem; } .journey li:first-child { border-top: 0; } .journey .step { grid-row: span 2; padding-top: .2rem; } .journey .h3 { margin-top: 0; } }

/* statement + facts ----------------------------------------------------- */
.statement { font-family: var(--serif); font-size: clamp(1.6rem, 1.1rem + 1.9vw, 2.6rem); line-height: 1.18; letter-spacing: -.02em; color: var(--ink); max-width: 30ch; text-wrap: balance; }
.statement em { font-style: italic; }
.two-col { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.facts { border-top: 1px solid var(--line-strong); }
.facts > div { display: grid; grid-template-columns: minmax(8.5rem, 4fr) minmax(0, 8fr); gap: 1rem; padding: .95rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.facts dt { font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.facts dd { color: var(--ink); font-size: .9875rem; overflow-wrap: anywhere; }
.facts dd a { text-decoration-color: var(--line-strong); }
@media (max-width: 520px) { .facts > div { grid-template-columns: 1fr; gap: .25rem; } }
.checks { display: grid; gap: .85rem; }
.checks li { display: grid; grid-template-columns: 1.25rem 1fr; gap: .8rem; align-items: start; }
.checks svg { width: 1.25rem; height: 1.25rem; margin-top: .18rem; color: var(--green-tx); }

/* founder / contact ----------------------------------------------------- */
.person { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: start; }
.monogram { width: 3.5rem; height: 3.5rem; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); display: grid; place-items: center; font-family: var(--serif); font-size: 1.5rem; color: var(--ink); }
.person .role { font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: .2rem; }
.person p.bio { margin-top: .8rem; color: var(--ink-2); max-width: 34rem; }
.textlink { display: inline-flex; align-items: center; gap: .35rem; font-weight: 500; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); }
.textlink svg { width: .8rem; height: .8rem; }
.contact-card .addr { font-family: var(--mono); font-size: .9375rem; color: var(--ink); margin-top: .9rem; display: inline-block; overflow-wrap: anywhere; }

/* prose (legal) --------------------------------------------------------- */
.prose { max-width: 44rem; }
.prose h2 { font-family: var(--sans); font-weight: 600; font-size: 1.1875rem; color: var(--ink); letter-spacing: -.01em; margin: 2.75rem 0 .75rem; }
.prose p, .prose li { color: var(--ink-2); } .prose p + p { margin-top: .9rem; }
.prose ul { list-style: none; margin: .75rem 0 0; display: grid; gap: .5rem; } .prose ul li { padding-left: 1.25rem; position: relative; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: .5rem; height: 1px; background: var(--faint); }
.prose .note { margin-top: 2.5rem; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: .9375rem; color: var(--muted); }
.meta-line { font-family: var(--mono); font-size: .75rem; letter-spacing: .04em; color: var(--muted); }

/* placeholders (dev builds only — a release build refuses to ship them) -- */
mark.todo { background: var(--yellow-bg); color: var(--yellow-tx); font-family: var(--mono); font-size: .82em; padding: .08em .45em; border-radius: 4px; border: 1px dashed #D9B95E; font-style: normal; letter-spacing: 0; text-transform: none; }

/* footer ---------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(3rem, 5vw, 4.5rem) 2rem; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 2.5rem clamp(2rem, 6vw, 6rem); }
.footer-name { font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.idlist { margin-top: 1rem; display: grid; gap: .45rem; font-size: .875rem; }
.idlist > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: .75rem; }
.idlist dt { font-family: var(--mono); font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: .15rem; }
.idlist dd { color: var(--ink-2); overflow-wrap: anywhere; }
.footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; font-size: .9375rem; }
.footer-links a { display: block; text-decoration: none; color: var(--muted); padding-block: .3rem; } .footer-links a:hover { color: var(--ink); }
.footer-h { font-family: var(--mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: .6rem; }
.footer-base { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; font-size: .8125rem; color: var(--muted); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } .idlist > div { grid-template-columns: 1fr; gap: .1rem; } }

/* motion ---------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .js .reveal { opacity: 1; transform: none; transition: none; } .btn, .btn svg { transition: none; } }
@media print { .site-header, .ambient, .nav-toggle { display: none; } .js .reveal { opacity: 1; transform: none; } }
