/* kolsight.com — the public static site.
   Direction: "every number has a footnote". The product's thesis (EXPERIENCE.md P-1: evidence is fused
   into every number; P-4: every screen must survive being challenged) rendered the way a research
   report renders it — ruled lines, footnotes, an editorial serif — instead of SaaS cards and pills.
   Colour follows P-2: chrome is achromatic; hue appears only on provenance (tokens.css), and every
   tier marker carries a glyph and a word, never colour alone. Plain CSS, no build step. */

/* IBM Plex, self-hosted under /fonts (SIL OFL 1.1) — no third party sees a visitor (ADR-0038, SEC-72).
   local() first; until the files are in place the system stacks below carry the page. */
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: local("IBM Plex Sans"), url(/fonts/IBMPlexSans-Regular.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: local("IBM Plex Sans Medium"), url(/fonts/IBMPlexSans-Medium.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: local("IBM Plex Sans SemiBold"), url(/fonts/IBMPlexSans-SemiBold.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Serif"; font-weight: 500; font-display: swap; src: local("IBM Plex Serif Medium"), url(/fonts/IBMPlexSerif-Medium.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: local("IBM Plex Mono Medium"), url(/fonts/IBMPlexMono-Medium.woff2) format("woff2"); }

:root {
  --paper: #ffffff; --paper-2: #f7f7f5; --ink: #141416; --ink-2: #4a4a52; --ink-3: #6f6f78;
  --rule: #e2e2de; --rule-ink: #141416;
  --measured: #0f766e; --observed: #1d4ed8; --inferred: #6d28d9; --insufficient: #52525b;
  --serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --wrap: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111113; --paper-2: #17171a; --ink: #ededee; --ink-2: #b4b4bb; --ink-3: #8c8c95;
    --rule: #2a2a2f; --rule-ink: #46464d;
    --measured: #2dd4bf; --observed: #7aa2ff; --inferred: #b794f6; --insufficient: #b4b4bb;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans);
       font-variant-numeric: tabular-nums lining-nums; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--ink); color: var(--paper); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 560px) { .wrap { padding: 0 18px; } }

/* ---- wordmark: "kolsight" + a raised footnote dot (the one spot of colour) ---- */
.word { font: 600 21px/1 var(--sans); letter-spacing: -.02em; text-decoration: none; display: inline-flex; align-items: flex-start; }
.word sup { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--measured); margin: 2px 0 0 2px; vertical-align: top; }

/* ---- header ---- */
.top { border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav .lang { font: 500 13px var(--mono); color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 1px; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--ink); } }
@media (max-width: 680px) { .nav .wide { display: none; } }

/* ---- type ---- */
.kicker { font: 500 12.5px/1.2 var(--mono); letter-spacing: .02em; color: var(--ink-3); margin: 0 0 22px; }
.kicker b { color: var(--ink); font-weight: 500; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.015em; margin: 0; }
h1 { font-size: clamp(40px, 6.4vw, 72px); line-height: 1.02; }
h2 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.08; }
h3 { font: 600 17px/1.35 var(--sans); margin: 0 0 6px; }
.lede { font-size: clamp(18px, 2vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 34em; margin: 24px 0 0; }
p { margin: 0; }

/* ---- buttons: rectangular, pressable ---- */
.actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; background: var(--ink); color: var(--paper);
       border-radius: 3px; text-decoration: none; font-weight: 500; transition: transform 160ms var(--ease-out); }
.btn:active { transform: scale(0.97); }
.link { font-weight: 500; text-decoration: underline; }

/* ---- layout ---- */
section { padding: 88px 0; border-top: 1px solid var(--rule); }
.hero { border-top: 0; padding: 64px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.two { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.half { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
@media (max-width: 900px) { .hero .wrap, .two, .half { grid-template-columns: 1fr; gap: 40px; } section { padding: 64px 0; } .hero { padding: 40px 0 64px; } }

/* ---- the specimen: numbers with their footnotes ---- */
.specimen { border-top: 1px solid var(--rule); padding-top: 12px; }
.fig { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 16px; padding: 18px 0 16px; border-bottom: 1px solid var(--rule); }
.fig .what { font-size: 15px; color: var(--ink-2); }
.fig .n { font: 500 clamp(30px, 4vw, 40px)/1 var(--serif); letter-spacing: -.02em; }
.fig .n { position: relative; padding-right: .34em; }
.fig .n sup { position: absolute; right: 0; top: .05em; font: 500 .36em/1 var(--mono); color: var(--ink-3); }
.fig .n.none { padding-right: .9em; } .fig .n.none sup { font-size: 11px; top: 0; }
.fig .n.none { font: 500 15px/1.4 var(--sans); color: var(--insufficient); letter-spacing: 0; }
.range { grid-column: 1 / -1; position: relative; height: 14px; margin-top: 6px; }
.range::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: var(--rule); }
.range i { position: absolute; top: 2px; height: 9px; border-left: 1px solid var(--inferred); border-right: 1px solid var(--inferred); }
.range i::after { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: var(--inferred); }
.range b { position: absolute; top: 0; width: 2px; height: 13px; background: var(--inferred); }
.notes { list-style: none; margin: 14px 0 0; padding: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.notes li { display: grid; grid-template-columns: 18px 1fr; padding: 3px 0; }
.notes li > span:first-child { font: 500 11px/1.9 var(--mono); color: var(--ink-3); }
.sample { font: 500 11.5px/1 var(--mono); color: var(--ink-3); display: flex; justify-content: space-between; padding: 0 0 12px; }

/* ---- provenance markers: glyph + word, colour only on the glyph ---- */
.t { font-weight: 600; color: var(--ink); white-space: nowrap; }
.t::before { margin-right: 5px; }
.t.m::before { content: "●"; color: var(--measured); }
.t.o::before { content: "◆"; color: var(--observed); }
.t.i::before { content: "◇"; color: var(--inferred); }
.t.x::before { content: "○"; color: var(--insufficient); }

/* ---- comparison as a ruled table ---- */
.versus { width: 100%; border-collapse: collapse; margin-top: 40px; }
.versus th { text-align: left; font: 500 12.5px var(--mono); color: var(--ink-3); padding: 0 0 10px; border-bottom: 2px solid var(--rule-ink); }
.versus td { padding: 22px 24px 22px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.versus .big { font: 500 clamp(28px, 3.6vw, 38px)/1.1 var(--serif); letter-spacing: -.02em; }
.versus .q { color: var(--ink-3); font-size: 15px; margin-top: 8px; }
.versus .a { color: var(--ink-2); font-size: 15px; margin-top: 8px; }
@media (max-width: 640px) { .versus, .versus tbody, .versus tr, .versus td { display: block; } .versus thead { display: none; } .versus td { padding-right: 0; } .versus td::before { content: attr(data-h); display: block; font: 500 12px var(--mono); color: var(--ink-3); margin-bottom: 6px; } }

/* ---- definitions: three tiers as a ruled list ---- */
.defs { margin-top: 40px; border-top: 2px solid var(--rule-ink); }
.def { display: grid; grid-template-columns: 220px 1fr; gap: 8px 32px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.def dt { font: 500 22px/1.2 var(--serif); }
.def dd { margin: 0; color: var(--ink-2); max-width: 40em; }
.def dd .eg { display: block; margin-top: 8px; font-size: 14px; color: var(--ink-3); }
@media (max-width: 640px) { .def { grid-template-columns: 1fr; } }

/* ---- plain lists ---- */
.points { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--rule); }
.points li { padding: 16px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.points li strong { color: var(--ink); font-weight: 600; display: block; margin-bottom: 2px; }
.small { font-size: 14px; color: var(--ink-3); margin-top: 22px; }

/* ---- closing ---- */
.closing h2 { max-width: 16em; }
.closing .actions { margin-top: 28px; }

/* ---- footer ---- */
footer { border-top: 2px solid var(--rule-ink); padding: 28px 0 56px; font-size: 14px; color: var(--ink-3); }
footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 18px 40px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--ink-2); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { footer a:hover { color: var(--ink); text-decoration: underline; } }
@media (max-width: 640px) { footer .wrap { grid-template-columns: 1fr; } }

/* ---- legal documents ---- */
.doc { max-width: 700px; margin: 0 auto; padding: 56px 24px 24px; }
.doc h1 { font-size: clamp(36px, 5vw, 50px); }
.doc h2 { font: 600 19px/1.35 var(--sans); letter-spacing: 0; margin: 40px 0 8px; }
.doc p, .doc li { color: var(--ink-2); margin: 0 0 12px; }
.doc strong { color: var(--ink); }
.doc .meta { font: 500 12.5px/1.6 var(--mono); color: var(--ink-3); border-bottom: 1px solid var(--rule); padding: 18px 0 20px; margin-bottom: 18px; }
.doc .other { border-top: 2px solid var(--rule-ink); margin-top: 72px; padding-top: 8px; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* =====================================================================================
   Motion and story (animate skill: marketing tier, every motion explains something).
   Curves from the skill's tables; transform/opacity only; reduced motion = finished state.
   ===================================================================================== */
:root { --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1); }

/* ---- hero story: the client's question, then the answer with its source ---- */
.story { display: grid; gap: 22px; }
.chat { display: grid; gap: 10px; }
.msg { max-width: 88%; padding: 12px 15px; border-radius: 14px; font-size: 15.5px; line-height: 1.45; }
.msg small { display: block; font: 500 11.5px/1 var(--mono); color: var(--ink-3); margin-bottom: 6px; }
.msg.them { background: var(--paper-2); border: 1px solid var(--rule); border-bottom-left-radius: 4px; justify-self: start; }
.msg.us { background: var(--ink); color: var(--paper); border-bottom-right-radius: 4px; justify-self: end; }
.msg.us small { color: color-mix(in srgb, var(--paper) 62%, transparent); }
.msg.us .t { color: var(--paper); }
.typing { justify-self: end; display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 14px; background: var(--paper-2); border: 1px solid var(--rule); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); }

@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@keyframes gone { to { opacity: 0; transform: scale(0.96); } }
@keyframes glow { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: .55; } }

.play .msg.them   { animation: rise 520ms var(--ease-out) 350ms both; }
.play .typing     { animation: rise 320ms var(--ease-out) 1150ms both, gone 220ms var(--ease-out) 2150ms forwards; }
.play .typing i   { animation: blink 900ms ease-in-out infinite; }
.play .typing i:nth-child(2) { animation-delay: 150ms; } .play .typing i:nth-child(3) { animation-delay: 300ms; }
.play .msg.us     { animation: rise 520ms var(--ease-out) 2250ms both; }
.play .specimen   { animation: rise 600ms var(--ease-out) 2700ms both; }
.typing.done { display: none; }

/* footnote highlight — a pseudo-element fades, nothing moves */
.notes li, .fig { position: relative; }
.notes li::before, .fig::before { content: ""; position: absolute; inset: 0 -10px; border-radius: 6px; background: color-mix(in srgb, var(--measured) 11%, transparent); opacity: 0; pointer-events: none; transition: opacity 200ms ease; }
.play .notes li:first-child::before, .play .fig:first-of-type::before { animation: glow 1600ms var(--ease-out) 3300ms both; }
.notes li.lit::before, .fig.lit::before { opacity: 1; animation: none; }
@media (hover: hover) and (pointer: fine) { .fig .n sup { cursor: help; } }

/* ---- comparison: the unverifiable screenshot, made to look like one ---- */
.shot { position: relative; display: inline-block; transform: rotate(-1.6deg); background: var(--paper-2); border: 1px solid var(--rule); border-radius: 12px;
        padding: 18px 20px 16px; box-shadow: 0 10px 24px -14px rgb(0 0 0 / .35); margin: 6px 0 14px; }
.shot .big { filter: blur(.3px); opacity: .9; }
.shot::after { content: "?"; position: absolute; top: -12px; right: -12px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
               background: var(--paper); border: 1px dashed var(--ink-3); font: 600 15px/1 var(--sans); color: var(--ink-3); }
.shot .bar { display: block; height: 6px; border-radius: 3px; background: var(--rule); margin-top: 12px; width: 70%; }
.shot .bar + .bar { width: 46%; margin-top: 6px; }

/* ---- "data belum cukup" explainer: commenters shrink to effective people, below the floor ---- */
.floor { margin-top: 28px; border-top: 1px solid var(--rule); padding-top: 22px; }
.floor .lane { position: relative; height: 34px; margin: 10px 0 4px; }
.floor .track { position: absolute; inset: 12px 0 auto 0; height: 10px; border-radius: 5px; background: var(--paper-2); border: 1px solid var(--rule); }
.floor .fill { position: absolute; left: 0; top: 12px; height: 10px; width: 100%; border-radius: 5px; background: var(--ink-2); transform-origin: left center; }
.floor .eff { background: var(--insufficient); }
.floor .min { position: absolute; top: 2px; bottom: 0; width: 0; border-left: 1.5px dashed var(--ink); }
.floor .min span { position: absolute; left: 6px; top: -4px; font: 500 11.5px/1 var(--mono); color: var(--ink); white-space: nowrap; }
.floor .cap { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); }
.floor .cap b { font-weight: 600; color: var(--ink); }
.js .floor .eff { transform: scaleX(1); transition: transform 1100ms var(--ease-in-out) 300ms; }
.js .floor.in .eff { transform: scaleX(0.134); } /* 38 of 284 */
.floor .verdict { margin-top: 14px; font-size: 15px; color: var(--ink-2); }
.js .floor .verdict { opacity: 0; transition: opacity 300ms ease 1400ms; }
.js .floor.in .verdict { opacity: 1; }

/* ---- gentle reveals as sections arrive (no-JS: everything simply visible) ---- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
.js .points.reveal li, .js .defs.reveal .def { opacity: 0; transform: translateY(10px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.js .points.reveal.in li, .js .defs.reveal.in .def { opacity: 1; transform: none; }
.js .reveal.in li:nth-child(2), .js .reveal.in .def:nth-child(2) { transition-delay: 60ms; }
.js .reveal.in li:nth-child(3), .js .reveal.in .def:nth-child(3) { transition-delay: 120ms; }

@media (prefers-reduced-motion: reduce) {
  .play .msg.them, .play .msg.us, .play .specimen { animation: none; }
  .play .typing { display: none; }
  .play .notes li:first-child::before, .play .fig:first-of-type::before { animation: none; opacity: .55; }
  .js .reveal, .js .points.reveal li, .js .defs.reveal .def { transform: none; transition: opacity 200ms ease; }
  .js .floor .eff { transition: none; transform: scaleX(0.134); }
  .js .floor .verdict { opacity: 1; transition: none; }
}

/* Positions that were inline style attributes: the CSP (SEC-72) refuses those. */
.range .r-band { left: 34%; width: 14%; }
.range .r-point { left: 41%; }
.lede.flush { margin-top: 0; }
.floor .min.at-floor { left: 17.6%; }
