/* Tokens mirror hubmission.tech so the personal site and the company site read as one system. */
:root {
  --accent: oklch(0.52 0.11 200);
  --accent-hover: oklch(0.40 0.10 200);
  --accent-light: oklch(0.62 0.12 200);
  --accent-dark-hover: oklch(0.42 0.10 200);
  --accent-on-dark: oklch(0.78 0.09 200);
  --accent-wash: oklch(0.95 0.03 200);
  --ink: #0b0d0e;
  --ink-soft: #101416;
  --text-body: #4a5153;
  --text-muted: #6b7275;
  --text-faint: #6a6f71;
  --border: #e3e6e6;
  --border-soft: #dfe3e3;
  --bg: #f6f7f7;
  --card-bg: #fff;
  --mono: "Geist Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 66px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Geist", "Helvetica Neue", Helvetica, sans-serif; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
p { text-wrap: pretty; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }

/* ── Header + scroll progress ─────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 247, 247, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { font-weight: 600; font-size: 16px; color: var(--ink); letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 26px; }
.nav-link {
  font-size: 14px; color: #3d4446; padding: 6px 0; border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav-link b { font-family: var(--mono); font-weight: 400; font-size: 10px; color: var(--text-faint); margin-right: 6px; letter-spacing: .06em; }
.nav-link:hover, .nav-link.active { color: var(--ink); border-bottom-color: var(--accent-light); }
.nav-link.active b { color: var(--accent); }
.btn-nav { font-size: 14px; font-weight: 500; color: var(--bg); background: var(--ink); padding: 9px 18px; border-radius: 2px; transition: background .2s; }
.btn-nav:hover { color: var(--bg); background: var(--accent-dark-hover); }
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
@media (max-width: 860px) { .nav-link { display: none; } }

/* ── Buttons & labels ─────────────────────────────────── */
.btn { display: inline-block; font-size: 15px; font-weight: 500; padding: 14px 26px; border-radius: 2px; text-align: center; transition: background .2s, border-color .2s, transform .2s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: var(--bg); background: var(--ink); }
.btn-primary:hover { color: var(--bg); background: var(--accent-dark-hover); }
.btn-secondary { color: var(--ink); background: transparent; border: 1px solid #c9cfcf; }
.btn-secondary:hover { color: var(--ink); border-color: var(--ink); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; color: var(--accent); text-transform: uppercase; margin: 0 0 26px; }
.mono-label { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--text-faint); text-transform: uppercase; }
.chapter { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-faint); }
.chapter b { font-weight: 500; color: var(--accent); }
.chapter::after { content: ""; flex: 0 0 48px; height: 1px; background: currentColor; opacity: .5; }
h2.title { margin: 0 0 56px; font-size: clamp(32px, 4.4vw, 48px); font-weight: 500; letter-spacing: -.025em; line-height: 1.06; max-width: 20ch; text-wrap: balance; }

.grid-line { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-cell { background: var(--bg); padding: 28px 26px 32px; }

section { padding: 128px 0; }
@media (max-width: 640px) { section { padding: 80px 0; } }

/* ── Reveal on scroll ─────────────────────────────────── */
/* Hidden states only apply once JS has tagged <html>, so the page is fully readable without JS. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ── Hero ─────────────────────────────────────────────── */
.hero { min-height: calc(100svh - 66px); display: flex; flex-direction: column; justify-content: center; padding-block: 72px 48px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: end; }
h1 { margin: 0; font-size: clamp(44px, 7vw, 84px); line-height: 1; font-weight: 500; letter-spacing: -.035em; max-width: 14ch; }
h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
h1 .line span { display: inline-block; }
.js h1 .line span { transform: translateY(105%); transition: transform 1s var(--ease); }
.js .loaded h1 .line span { transform: none; }
.js .loaded h1 .line:nth-child(2) span { transition-delay: .12s; }
.js .loaded h1 .line:nth-child(3) span { transition-delay: .24s; }
h1 .accent { color: var(--accent); }
.lede { margin: 32px 0 36px; font-size: 18px; line-height: 1.6; color: var(--text-body); max-width: 56ch; }
.now { border: 1px solid var(--border-soft); border-left: 2px solid var(--accent); background: var(--card-bg); border-radius: 2px; padding: 22px 24px; display: grid; gap: 16px; }
.now div { display: grid; gap: 4px; }
.now strong { font-weight: 500; font-size: 15px; }
.now span:not(.mono-label) { font-size: 14px; color: var(--text-body); }
.live { display: inline-flex; align-items: center; gap: 8px; }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #1f9d63; box-shadow: 0 0 0 0 rgba(31,157,99,.5); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(31,157,99,0); } 100% { box-shadow: 0 0 0 0 rgba(31,157,99,0); } }

.stats { margin-top: 72px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stats .grid-cell { padding: 26px 26px 28px; transition: background .25s; }
.stats .grid-cell:hover { background: var(--card-bg); }
.stat-value { font-size: 38px; font-weight: 500; letter-spacing: -.025em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-desc { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: var(--text-muted); }

.scroll-cue { margin-top: 48px; display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint); }
.scroll-cue i { width: 1px; height: 36px; background: var(--border); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--accent); animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } .hero { min-height: 0; padding-top: 56px; } }

/* ── 01 The problem: words light up with scroll ───────── */
.problem { position: relative; height: 260vh; padding: 0; background: var(--ink-soft); color: #eceeee; }
.problem-sticky { position: sticky; top: 66px; height: calc(100vh - 66px); display: flex; flex-direction: column; justify-content: center; }
.problem .chapter { color: #8a9092; }
.problem .chapter b { color: var(--accent-on-dark); }
.statement { margin: 0; font-size: clamp(30px, 4.6vw, 60px); line-height: 1.12; font-weight: 500; letter-spacing: -.03em; max-width: 22ch; }
.statement .w { color: #fff; opacity: .16; transition: opacity .25s linear, color .25s linear; }
.statement .w.on { opacity: 1; }
.statement .w.hl.on { color: var(--accent-on-dark); }
.problem-foot { margin-top: 40px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #6f7678; }
@media (prefers-reduced-motion: reduce) { .problem { height: auto; padding: 128px 0; } .problem-sticky { position: static; height: auto; } .statement .w { opacity: 1; } }

/* ── 02 Experience: pinned year + filling line ───────── */
.story-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 64px; }
.story-aside { position: sticky; top: 130px; align-self: start; }
.story-aside h2.title { margin-bottom: 36px; font-size: clamp(30px, 3.6vw, 40px); }
.year { font-size: clamp(64px, 8vw, 104px); font-weight: 500; letter-spacing: -.05em; line-height: .9; color: var(--ink); font-variant-numeric: tabular-nums; }
.year-role { margin-top: 14px; font-size: 14px; color: var(--text-muted); min-height: 2.6em; }
.timeline { position: relative; list-style: none; margin: 0; padding: 0 0 0 40px; }
/* Track and fill are pseudo-elements; JS drives the fill through --fill (0 to 1). */
.timeline::before, .timeline::after { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; }
.timeline::before { background: var(--border); }
.timeline::after { background: var(--accent); transform-origin: 0 0; transform: scaleY(var(--fill, 0)); }
.stop { position: relative; padding: 0 0 72px; }
.stop:last-child { padding-bottom: 0; }
.stop::before { content: ""; position: absolute; left: -38px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1px solid #c9cfcf; transition: background .3s, border-color .3s, box-shadow .3s; }
.stop.active::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-wash); }
.stop .when { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--text-faint); }
.stop h3 { margin: 10px 0 0; font-size: 24px; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.stop h3 .org { color: var(--accent); }
.stop p { margin: 12px 0 0; font-size: 16px; line-height: 1.7; color: var(--text-body); max-width: 62ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; padding: 6px 10px; border: 1px solid var(--border-soft); border-radius: 2px; background: var(--card-bg); color: var(--ink); }
.chip b { color: var(--accent); font-weight: 500; }
@media (max-width: 900px) { .story-grid { grid-template-columns: 1fr; gap: 24px; } .story-aside { position: static; } .year, .year-role { display: none; } }

/* ── 03 Products ──────────────────────────────────────── */
.builds { background: var(--card-bg); border-block: 1px solid var(--border); }
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 72px; align-items: center; }
.product + .product { margin-top: 128px; }
.product.flip .product-copy { order: 2; }
.product-top { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.tag { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); border: 1px solid currentColor; padding: 5px 8px; border-radius: 2px; }
.product h3 { margin: 0; font-size: clamp(34px, 4vw, 44px); font-weight: 500; letter-spacing: -.03em; }
.product .kind { margin: 8px 0 22px; font-size: 16px; color: var(--text-muted); }
.product-copy > p { margin: 0 0 24px; font-size: 17px; line-height: 1.65; color: var(--text-body); }
.checks { list-style: none; margin: 0 0 28px; padding: 0; border-top: 1px solid var(--border); }
.checks li { padding: 12px 0 12px 22px; border-bottom: 1px solid var(--border); font-size: 15px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 8px; height: 8px; background: var(--accent); border-radius: 1px; }
.more { font-size: 15px; font-weight: 500; }
.more.pending { color: var(--text-faint); font-weight: 400; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; gap: 40px; } .product.flip .product-copy { order: 0; } .product + .product { margin-top: 96px; } }

/* Demo frames */
.demo { border: 1px solid var(--border-soft); border-radius: 3px; background: var(--bg); padding: 10px; box-shadow: 0 30px 60px -40px rgba(11, 13, 14, .35); transition: transform .5s var(--ease); }
.demo:hover { transform: translateY(-4px); }
.demo-bar { display: flex; align-items: center; gap: 6px; padding: 4px 6px 12px; }
.demo-bar i { width: 8px; height: 8px; border-radius: 50%; background: #d5dada; }
.demo-bar span { margin-left: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }

/* EscrowIQ mini report */
.report { background: var(--card-bg); border: 1px solid var(--border); padding: 24px 24px 22px; }
.report-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.report-head strong { font-size: 15px; font-weight: 500; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); margin-bottom: 22px; }
.kpis div { background: var(--card-bg); padding: 12px 14px; }
.kpis b { display: block; font-size: 22px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bars { display: grid; gap: 11px; }
.bar { display: grid; grid-template-columns: 112px minmax(0, 1fr) 30px; align-items: center; gap: 12px; font-size: 13px; color: var(--text-body); }
.bar em { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--ink); text-align: right; }
.bar-track { height: 10px; background: #eef0f0; border-radius: 1px; overflow: hidden; }
.bar-fill { height: 100%; width: var(--w); background: var(--accent); border-radius: 1px; transform-origin: 0 50%; }
.bar:hover .bar-fill { background: var(--accent-hover); }
.js .demo .bar-fill { transform: scaleX(0); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 110ms + 200ms); }
.js .demo.in .bar-fill { transform: none; }

/* VerseCanvas page */
.page { position: relative; background: #fffdf7; border: 1px solid #ece7da; padding: 34px 32px 40px; min-height: 300px; overflow: hidden;
  background-image: radial-gradient(#e9e4d6 1px, transparent 1px); background-size: 22px 22px; }
.ref { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #9a927e; }
.verse { margin: 14px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(21px, 2.2vw, 26px); line-height: 1.6; color: #2a2620; max-width: 22ch; }
.verse sup { font-family: var(--mono); font-size: 11px; color: #9a927e; margin-right: 4px; }
.mark { position: relative; white-space: nowrap; }
.mark svg { position: absolute; left: -4px; bottom: -9px; width: calc(100% + 8px); height: 16px; overflow: visible; }
.ink { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.js .demo .ink { stroke-dasharray: var(--len, 400); stroke-dashoffset: var(--len, 400); transition: stroke-dashoffset 1.2s var(--ease) .4s; }
.js .demo.in .ink { stroke-dashoffset: 0; }
.js .demo .ink.late { transition-delay: 1.4s; transition-duration: .7s; }
.note { position: absolute; right: 22px; bottom: 24px; width: 168px; padding: 12px 14px; background: #fff; border: 1px solid #ece7da; border-left: 2px solid var(--accent); font-family: "Caveat", "Segoe Print", cursive; font-size: 19px; line-height: 1.2; color: #24303a; transform: rotate(-2deg); }
.note small { display: block; margin-top: 8px; font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.js .demo .note { opacity: 0; transform: rotate(-2deg) translateY(10px); transition: opacity .6s var(--ease) 1.7s, transform .6s var(--ease) 1.7s; }
.js .demo.in .note { opacity: 1; transform: rotate(-2deg); }
@media (max-width: 520px) { .note { position: relative; right: auto; bottom: auto; margin-top: 28px; } }

/* ── 04 Point of view ─────────────────────────────────── */
.dark { background: var(--ink-soft); color: #eceeee; }
.dark .chapter { color: #8a9092; }
.dark .chapter b { color: var(--accent-on-dark); }
.dark h2.title { color: #fff; }
.quotes { display: grid; gap: 0; border-top: 1px solid #242b2d; }
.quote { margin: 0; display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(0, .8fr); gap: 32px; align-items: baseline; padding: 36px 0; border-bottom: 1px solid #242b2d; transition: background .3s; }
.quote:hover { background: #141a1c; }
.quote .n { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--accent-on-dark); }
.quote p { margin: 0; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; font-weight: 500; letter-spacing: -.02em; color: #fff; }
.quote footer { font-size: 15px; line-height: 1.6; color: #aab0b1; }
.dark-link { display: inline-block; margin-top: 36px; color: var(--accent-on-dark); font-size: 15px; font-weight: 500; }
.dark-link:hover { color: #fff; }
@media (max-width: 800px) { .quote { grid-template-columns: 1fr; gap: 10px; padding: 28px 0; } }

/* ── 05 Toolkit + contact ─────────────────────────────── */
.kit-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 48px; align-items: end; margin-bottom: 48px; }
.kit-head h2.title { margin: 0; }
.kit-intro { margin: 0; font-size: 16px; line-height: 1.65; color: var(--text-body); }
@media (max-width: 900px) { .kit-head { grid-template-columns: 1fr; gap: 20px; } }

/* Slow marquee of tool names; edges fade into the background. */
.marquee { overflow: hidden; border-block: 1px solid var(--border); padding: 22px 0; margin-bottom: 56px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 56px; padding-left: 56px; font-size: clamp(22px, 2.6vw, 32px); font-weight: 500; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.marquee-track span::before { content: ""; width: 7px; height: 7px; background: var(--accent); border-radius: 1px; }
@keyframes marquee { to { transform: translateX(-50%); } }

.kit-col { background: var(--card-bg); }
.kit-col-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.kit-count { font-size: 28px; font-weight: 500; letter-spacing: -.03em; color: var(--border-soft); transition: color .3s; font-variant-numeric: tabular-nums; }
.kit-col:hover .kit-count { color: var(--accent); }
.tools { display: flex; flex-wrap: wrap; gap: 8px; }
.tool {
  font: inherit; font-size: 14px; color: var(--ink); background: var(--bg); border: 1px solid var(--border-soft);
  padding: 8px 12px; border-radius: 2px; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, opacity .25s, transform .2s var(--ease);
}
.tool:hover, .tool:focus-visible, .tool.active { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: translateY(-2px); outline: none; }
.tool.related { border-color: var(--accent); color: var(--accent); background: var(--accent-wash); }
.kit.tracing .tool:not(.active):not(.related) { opacity: .35; }

.kit-readout { display: flex; align-items: center; gap: 20px; margin-top: -1px; padding: 18px 26px; border: 1px solid var(--border); border-left: 2px solid var(--accent); background: var(--card-bg); min-height: 64px; }
.readout-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.readout-tool { font-size: 17px; font-weight: 500; }
.readout-where { font-size: 15px; color: var(--accent); }
.readout-text.swap { animation: swap .35s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(6px); } }
.contact { padding-top: 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 64px; align-items: start; border-top: 1px solid var(--border); padding-top: 96px; }
.contact h2.title { margin-bottom: 22px; }
.contact-copy > p { margin: 0 0 32px; font-size: 18px; line-height: 1.65; color: var(--text-body); max-width: 52ch; }
.contact-card { border: 1px solid var(--border-soft); background: var(--card-bg); border-radius: 3px; padding: 28px 28px 30px; display: grid; gap: 20px; }
.contact-card div { display: grid; gap: 6px; }
.contact-card a { font-size: 16px; font-weight: 500; word-break: break-word; }
.contact-card span:not(.mono-label) { font-size: 15px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 72px; } }

.site-footer { border-top: 1px solid var(--border); }
.footer-inner { padding: 32px 0 48px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }

/* Respect reduced-motion: show everything in its final state. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js h1 .line span, .js .demo .bar-fill, .js .demo .note { opacity: 1 !important; transform: none !important; transition: none !important; }
  .js .demo .ink { stroke-dashoffset: 0 !important; transition: none !important; }
  .live::before, .scroll-cue i::after, .marquee-track, .readout-text.swap { animation: none; }
  .marquee-track { flex-wrap: wrap; width: auto; row-gap: 12px; }
}
