:root {
  color-scheme: light;
  --page: #f8f8fb;
  --white: #fff;
  --ink: #1c1929;
  --muted: #5d596d;
  --rule: #e4e1ee;
  --accent: #6a3dd7;
  --accent-dark: #5229ba;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --sans: "Manrope", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font: 500 16px/1.65 var(--sans); }
h1, h2, h3, h4, p, ol, ul { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #8961ed; outline-offset: 4px; }
.wrap { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 5; inset: 8px auto auto 8px; padding: .5rem 1rem; background: white; }
.eyebrow { font: 500 .72rem/1.4 var(--mono); letter-spacing: .085em; }
.section { padding-block: 86px; scroll-margin-top: 24px; }

.site-header { position: relative; z-index: 1; background: #fbfbfd; border-bottom: 1px solid var(--rule); }
.header-inner { min-height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: .93rem; font-weight: 800; justify-self: start; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: white; }
.brand-mark svg { width: 24px; height: 24px; }
.site-header nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 38px); }
.site-header nav a { color: var(--muted); font-size: .87rem; font-weight: 700; }
.site-header nav a:hover, .site-footer a:hover { color: var(--accent-dark); }
.header-cv { justify-self: end; }

.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 16px; padding: 10px 17px; border: 1px solid transparent; border-radius: 9px; white-space: nowrap; font-size: .88rem; font-weight: 800; transition: background .18s, border-color .18s, color .18s, transform .18s; }
.button:hover { transform: translateY(-2px); }
.button span { font: 600 1.05rem/1 var(--sans); }
.button-small { min-height: 39px; padding: 7px 13px; font-size: .8rem; }
.button-primary { color: white; background: var(--accent); border-color: var(--accent); box-shadow: 0 6px 16px #6a3dd732; }
.button-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.button-outline { background: #ffffffa0; border-color: #ded9eb; }
.button-outline:hover { border-color: #a88ce8; color: var(--accent-dark); background: #fff; }

.hero { background: radial-gradient(ellipse at 79% 35%, #eee8fd 0, transparent 54%), linear-gradient(115deg, #fbfbfd, #f5f3fc); border-bottom: 1px solid var(--rule); overflow: hidden; }
.hero-inner { min-height: 474px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 26px; align-items: center; padding-block: 38px 40px; }
.hero-copy { container-type: inline-size; }
.hero-tag { width: fit-content; display: flex; align-items: center; gap: 8px; color: var(--accent-dark); border: 1px solid #e3d9f9; background: #f2ecff; border-radius: 99px; padding: 7px 11px; }
.signal-dot, .demo-badge i, .lab-footer i { display: inline-block; width: 6px; height: 6px; border-radius: 100%; background: #8052e8; box-shadow: 0 0 0 3px #8052e820; flex: none; }
.hero h1 { margin-top: 22px; font-size: clamp(2.1rem, 12cqi, 4.5rem); font-weight: 800; letter-spacing: -.073em; line-height: 1.03; }
.hero h1 em { display: block; color: var(--accent); font-style: normal; }
.hero-description { max-width: 505px; margin-top: 22px; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.16rem); line-height: 1.66; }
.hero-actions { margin-top: 25px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-location { display: flex; align-items: center; gap: 6px; margin-top: 18px; font-size: .8rem; color: #625a74; }
.hero-location svg { flex: 0 0 17px; width: 17px; height: 17px; color: var(--accent); }
.hero-art { min-width: 0; position: relative; }
.hero-art > svg { width: 105%; max-width: 545px; height: auto; margin-left: -2%; }
.art-caption { position: absolute; inset: auto 15px 0 15px; display: flex; justify-content: space-between; border-top: 1px solid #ded6ef; padding-top: 9px; color: #70658a; font: 500 .61rem/1 var(--mono); letter-spacing: .1em; }
.diagram-label rect { fill: #faf7ff; stroke: #c9b8ea; }
.diagram-label circle { fill: #8255db; }
.diagram-label text { fill: #6646aa; font: 600 10px var(--mono); letter-spacing: .055em; }
.diagram-signals path { opacity: 0; stroke-dasharray: 14 100; stroke-dashoffset: 14; animation: diagram-signal 1.65s .35s ease-out 2; }
.diagram-signals path:nth-child(even) { animation-delay: .72s; }
.diagram-signals path:nth-child(3) { animation-delay: .58s; }
@keyframes diagram-signal {
  0% { opacity: 0; stroke-dashoffset: 14; }
  22% { opacity: .9; }
  86% { opacity: .75; }
  100% { opacity: 0; stroke-dashoffset: -100; }
}
.hero-footer { border-top: 1px solid #e9e4f2; background: #fcfbfea8; }
.hero-stack { min-height: 62px; display: flex; gap: clamp(14px, 4vw, 54px); align-items: center; flex-wrap: wrap; }
.hero-stack .eyebrow { color: #6a617b; }
.hero-stack span:not(.eyebrow) { color: #4b455c; font-size: .88rem; font-weight: 800; }

.work { padding-top: 58px; }
.section-intro { display: flex; justify-content: space-between; align-items: end; gap: 26px; margin-bottom: 30px; }
.section-label { color: #635a76; }
.section-label span { color: var(--accent-dark); margin-right: .2em; }
.section-intro h2, .contact h2 { font-size: clamp(2.25rem, 4.35vw, 3.85rem); line-height: 1.05; font-weight: 800; letter-spacing: -.06em; margin-block: 10px 13px; }
.section-intro h2 span { color: var(--accent); }
.section-intro p:not(.eyebrow) { color: var(--muted); max-width: 60ch; }
.impact { flex: none; min-width: 235px; padding: 13px 17px 14px 19px; border-left: 3px solid #8d60ee; border-radius: 0 9px 9px 0; background: #f0ebfc; display: grid; gap: 3px; }
.impact .eyebrow { color: #655287; }
.impact strong { line-height: 1.45; font-weight: 800; white-space: nowrap; font-size: 1.11rem; }
.impact b { color: var(--accent-dark); }
.impact > span:last-child { color: #625974; font-size: .73rem; }
.case-note { font-size: .84rem; color: var(--muted); margin-top: 16px; }
.case-note strong { color: var(--ink); }

.lab { overflow: hidden; color: #f6f2ff; border: 1px solid #352e49; border-radius: 17px; background: #191626; box-shadow: 0 16px 34px #2c1f4b1c; }
.lab-header { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 18px 23px; }
.lab-title { display: flex; align-items: center; gap: 12px; }
.lab-icon { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #59467c; border-radius: 9px; background: #2b2142; color: #cbb1ff; font: 500 1.15rem/1 var(--mono); }
.lab-title h3 { font-size: .97rem; line-height: 1.25; font-weight: 800; }
.lab-title p { font-size: .75rem; color: #bcb3ce; margin-top: 4px; }
.demo-badge { display: inline-flex; align-items: center; gap: 7px; color: #e0cbff; background: #2b2240; border: 1px solid #514067; border-radius: 99px; white-space: nowrap; padding: 6px 9px; font: 500 .62rem/1.2 var(--mono); letter-spacing: .05em; }
.demo-badge i { background: #bb94ff; box-shadow: 0 0 0 3px #bb94ff20; }
.lab-tabs { border-block: 1px solid #39334b; display: grid; grid-template-columns: repeat(4, 1fr); }
.lab-tabs button { border: 0; border-right: 1px solid #39334b; background: transparent; color: #cbc1dd; padding: 13px 10px; font-size: .85rem; font-weight: 700; white-space: nowrap; }
.lab-tabs button:last-child { border-right: 0; }
.lab-tabs button small { color: #b8a4d9; margin-right: 6px; font: 500 .65rem/1 var(--mono); }
.lab-tabs button[aria-selected="true"] { background: #302345; box-shadow: inset 0 -2px #aa7bff; color: #f9f4ff; }
.lab-tabs button[aria-selected="true"] small { color: #d4b9ff; }
.lab-tabs button:hover, .lab-tabs button:focus-visible { background: #302345; }
.lab-tabs button:focus-visible { outline-offset: -4px; }
.lab-content { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); min-height: 296px; align-items: center; gap: clamp(18px, 5vw, 70px); padding: 30px clamp(20px, 4vw, 43px); background: radial-gradient(ellipse at 75% 52%, #292039, transparent 64%); }
.js .lab-panel:not([hidden]) { animation: stage-in .34s ease-out both; }
@keyframes stage-in { from { opacity: .4; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.lab-label { color: #c5a7ff !important; }
.lab-copy h4 { font-size: clamp(1.4rem, 2.3vw, 2rem); font-weight: 800; line-height: 1.17; letter-spacing: -.044em; margin-top: 8px; }
.lab-copy p:not(.eyebrow) { color: #c9c0d9; font-size: .9rem; line-height: 1.63; margin-top: 9px; }
.lab-copy code { color: #eddfff; }
.lab-button, .choice-group button { border: 1px solid #685583; background: #322646; color: #eddeff; border-radius: 7px; padding: 8px 11px; font-weight: 800; font-size: .76rem; transition: background .18s, border-color .18s; }
.lab-button { margin-top: 18px; min-height: 39px; }
.lab-button:hover, .choice-group button:hover, .choice-group button[aria-pressed="true"] { background: #4c3472; border-color: #9e77dc; }
.lab-button[aria-disabled="true"] { opacity: .75; cursor: default; }
.lab-button span { margin-left: 5px; }
.choice-group { margin-top: 17px; display: flex; flex-wrap: wrap; gap: 6px; }
.lab-copy .lab-hint { margin-top: 18px !important; font-size: .75rem !important; color: #d5bcff !important; }

.instrument { min-width: 0; border: 1px solid #453855; border-radius: 11px; background: #13101eeb; padding: 15px 16px; }
.instrument-top { font: 500 .66rem/1.35 var(--mono); letter-spacing: .055em; color: #c2b6d4; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.transfer-pill { color: #dbc2ff; background: #2c2143; border: 1px solid #4d3969; border-radius: 5px; padding: 4px 6px; font: 500 .59rem/1.25 var(--mono); white-space: nowrap; }
.transfer-pill.paused { color: #ffe0ae; background: #412d23; border-color: #795438; }
.transfer-pill.done { color: #a5f5d6; background: #18362f; border-color: #33584e; }
.archive-line { display: flex; align-items: center; gap: 9px; margin-top: 15px; }
.file-icon { width: 36px; height: 36px; flex: none; display: grid; place-items: center; background: #2b2042; color: #d6b7ff; border: 1px solid #4c366c; border-radius: 7px; }
.file-icon svg { width: 19px; height: 19px; }
.archive-line strong, .archive-line small { display: block; }
.archive-line strong { font-size: .8rem; line-height: 1.3; }
.archive-line small { font-size: .69rem; color: #bcb0cd; }
#percent { margin-left: auto; color: #d9baff; font: 500 .81rem/1 var(--mono); }
.transfer-track { height: 8px; background: #2d263a; border-radius: 99px; margin-top: 14px; overflow: hidden; }
#transfer-fill { display: block; width: 35%; height: 100%; border-radius: inherit; background: repeating-linear-gradient(120deg, #9b65f0 0 8px, #b084ff 8px 16px); background-size: 37px 100%; transition: width .2s ease-out, background-color .2s; }
.download-instrument.running #transfer-fill { animation: flow 1s linear infinite; }
.download-instrument.paused #transfer-fill { background: #d39a52; }
.download-instrument.done #transfer-fill { background: #62c9a8; }
@keyframes flow { to { background-position: 37px 0; } }
.instrument-foot { margin-top: 13px; color: #c7b8db; font: 400 .7rem/1.55 var(--mono); overflow-wrap: anywhere; }
.worker-title { color: #d0b9f6; font-size: .57rem; }
.worker-strips { display: flex; gap: 4px; margin-block: 6px 13px; }
.worker-strips span { flex: 1; height: 4px; border-radius: 8px; background: #332746; overflow: hidden; }
.worker-strips span::after { content: ""; display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7854c4, #ba94ff); transform-origin: left; }
.js .worker-strips span::after { animation: worker-import 1.15s .08s ease-out both; }
.js .worker-strips span:nth-child(2)::after { animation-duration: .88s; }
.js .worker-strips span:nth-child(3)::after { animation-duration: 1.35s; }
@keyframes worker-import { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.partition-list, .tree-list { display: grid; gap: 5px; margin-top: 10px; }
.partition-list > div, .tree-list button { min-height: 29px; border: 1px solid #392f48; border-radius: 5px; background: #1d1728; color: #c8badc; padding: 4px 7px; font: 400 .71rem/1.3 var(--mono); display: flex; align-items: center; gap: 8px; text-align: left; transition: background .2s, border-color .2s; }
.partition-list > div { justify-content: space-between; }
.partition-list small, .tree-list small { font-size: .61rem; }
.partition-list .is-read, .tree-list button[aria-pressed="true"], .tree-list button:hover { border-color: #8059b5; background: #382852; color: #f1e5ff; }
.tree-list button:nth-child(2) { margin-left: 10px; }
.tree-list button:nth-child(3) { margin-left: 20px; }
.js .tree-list button { animation: stage-in .28s ease-out both; }
.js .tree-list button:nth-child(2) { animation-delay: .07s; }
.js .tree-list button:nth-child(3) { animation-delay: .14s; }
.instrument input { width: 100%; margin-top: 10px; padding: 7px 10px; border: 1px solid #604b79; border-radius: 6px; background: #231a32; color: #fff; font-size: .78rem; }
.instrument input::placeholder { color: #baacce; }
.search-results { list-style: none; padding: 0; margin-top: 7px; display: grid; gap: 4px; min-height: 80px; align-content: start; }
.search-results li { padding: 3px 6px; border-bottom: 1px solid #362a46; color: #d9cdec; font-size: .75rem; }
.search-results mark { background: #6d4b9a; color: white; border-radius: 2px; padding-inline: 1px; }
.lab-footer { border-top: 1px solid #39334b; min-height: 48px; color: #bdb1ce; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 23px; font-size: .71rem; }
.lab-footer > span { display: flex; align-items: center; gap: 8px; }
.lab-footer i { background: #a48abf; box-shadow: none; }
.lab-footer button { background: transparent; border: 0; border-radius: 5px; padding: 5px 2px; color: #dec8ff; font-weight: 800; white-space: nowrap; }
.lab-footer button:hover { color: white; }
.lab-footer button span { margin-left: 3px; }
.js .no-js-note { display: none; }
.no-js-note { padding: 4px 23px 15px; color: #c9c0d9; font-size: .84rem; }
html:not(.js) .lab-tabs, html:not(.js) .lab-button, html:not(.js) .choice-group, html:not(.js) .lab-footer button { display: none; }
html:not(.js) .lab-panel + .lab-panel { border-top: 1px solid #39334b; }

.cases-section { background: #f0eef7; border-block: 1px solid var(--rule); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.case-card { padding: 22px; min-width: 0; display: flex; flex-direction: column; align-items: start; gap: 13px; border: 1px solid #e1dceb; border-radius: 13px; background: #fbfbfd; }
.card-top { display: flex; align-items: center; gap: 9px; color: #6a4c9f; }
.card-icon { width: 38px; height: 38px; display: grid; place-items: center; background: #eee7ff; color: var(--accent-dark); border: 1px solid #e4d7ff; border-radius: 8px; flex: none; }
.card-icon svg { width: 21px; height: 21px; }
.case-card h3, .timeline h3 { font-weight: 800; line-height: 1.18; letter-spacing: -.035em; font-size: clamp(1.18rem, 1.6vw, 1.4rem); }
.case-card p, .timeline li p:not(.company) { color: var(--muted); font-size: .88rem; line-height: 1.65; }
.tech-list { padding: 0; list-style: none; margin-top: auto; display: flex; flex-wrap: wrap; gap: 5px; }
.tech-list li { padding: 4px 7px; background: #f3effa; color: #65547d; font: 500 .64rem/1.35 var(--mono); border-radius: 4px; }
.timeline { padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.timeline li { display: grid; grid-template-columns: minmax(190px, .36fr) 1fr; gap: 18px; border-bottom: 1px solid var(--rule); padding: 20px 0; }
.timeline-date { color: #665782; display: flex; align-items: center; align-self: start; gap: 10px; padding-top: 5px; font: 500 .71rem/1.35 var(--mono); }
.timeline-dot { width: 8px; height: 8px; border: 2px solid #8b62dc; border-radius: 50%; flex: none; }
.timeline .company { color: var(--accent-dark); font-size: .9rem; font-weight: 800; margin-block: 3px 5px; }
.timeline li p:last-child { max-width: 74ch; }

.contact { scroll-margin-top: 24px; }
.contact-inner { display: flex; align-items: end; justify-content: space-between; gap: 25px; padding: clamp(25px, 5.5vw, 65px); border-radius: 16px; color: white; background: radial-gradient(ellipse at 95% 5%, #683dc6, transparent 70%), linear-gradient(120deg, #2a1c4b, #432681); }
.contact .eyebrow { color: #e1cfff; }
.contact h2 { margin-bottom: 8px; }
.contact p:not(.eyebrow) { color: #e7ddf6; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 8px; flex: none; }
.contact .button { background: #fff; color: #37236b; }
.contact .button + .button { background: #52368b; color: #fff; border-color: #a487d7; }
.contact .button:hover { background: #ede0ff; color: #37236b; }
.site-footer { margin-top: 48px; border-top: 1px solid var(--rule); font-size: .79rem; color: var(--muted); }
.site-footer .wrap { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.site-footer a { font-weight: 800; white-space: nowrap; }

@media (max-width: 850px) {
  .wrap { width: min(100% - 46px, 1160px); }
  .hero-inner { min-height: 443px; gap: 14px; }
  .hero-art > svg { width: 114%; margin-left: -7%; }
  .section { padding-block: 64px; }
  .case-card { padding: 16px; }
  .card-grid { gap: 9px; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { grid-template-columns: 1fr auto; gap: 0 10px; padding-block: 10px 5px; }
  .site-header nav { grid-row: 2; grid-column: 1 / -1; gap: 24px; margin-top: 4px; }
  .site-header nav a { padding-block: 6px; }
  .header-cv { grid-column: 2; grid-row: 1; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); min-height: auto; padding-block: 39px 18px; gap: 10px; }
  .hero h1 { font-size: clamp(2.1rem, 12cqi, 4rem); margin-top: 16px; }
  .hero-description { margin-top: 15px; }
  .hero-actions { margin-top: 19px; }
  .hero-art { max-width: 460px; width: 100%; margin: 0 auto; }
  .hero-art > svg { width: 100%; margin: -6% 0 -5%; }
  .art-caption { position: relative; inset: auto; margin-inline: 7px; }
  .hero-stack { gap: 8px 18px; min-height: 0; padding-block: 13px; }
  .hero-stack .eyebrow { width: 100%; }
  .hero-stack span:not(.eyebrow) { font-size: .77rem; }
  .section { padding-block: 49px; }
  .section-intro { align-items: start; flex-direction: column; gap: 15px; margin-bottom: 21px; }
  .impact { min-width: 0; }
  .lab-header { padding: 13px; align-items: start; }
  .lab-title { gap: 7px; }
  .lab-icon { width: 29px; height: 29px; flex: none; }
  .lab-title h3 { font-size: .84rem; }
  .lab-title p { font-size: .69rem; }
  .demo-badge { font-size: .52rem; gap: 4px; padding: 5px; }
  .demo-badge i { width: 4px; height: 4px; box-shadow: none; }
  .lab-tabs button { padding: 7px 3px; font-size: .73rem; min-height: 46px; }
  .lab-tabs button small { display: block; margin: 0 0 4px; font-size: .57rem; }
  .lab-content { grid-template-columns: minmax(0, 1fr); padding: 17px 13px; gap: 13px; min-height: 0; }
  .lab-footer { padding-inline: 13px; font-size: .63rem; }
  .card-grid { grid-template-columns: 1fr; gap: 10px; }
  .timeline li { grid-template-columns: 1fr; gap: 7px; }
  .contact-inner { flex-direction: column; align-items: start; gap: 16px; }
  .site-footer { margin-top: 32px; }
}
@media (max-width: 350px) {
  .brand { gap: 6px; font-size: .81rem; }
  .header-cv { padding-inline: 8px; gap: 5px; }
  .hero-actions .button { gap: 7px; padding-inline: 10px; }
  .demo-badge { white-space: normal; max-width: 73px; }
  .demo-badge i { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
