/* Nathan RAFFY — CV site. Friendly-corporate: soft blues, rounded cards, a little motion. */
:root {
  --bg: #f3f6fa; --surface: #fff; --ink: #16233a; --muted: #5b6b82; --line: #e3e9f2;
  --brand: #0a66c2; --brand-ink: #084e96; --brand-soft: #e7f1fb;
  --accent: #ff7a59; --ok: #1f9d6b; --ok-soft: #e4f6ee;
  --shadow: 0 1px 2px rgba(22, 35, 58, .05), 0 8px 28px rgba(22, 35, 58, .07);
  --r: 18px;
  --font: Inter, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font: 400 16px/1.55 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { max-width: 100%; }
a { color: var(--brand); }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; border-radius: 8px; }

/* ---------------------------------------------------------------- nav */
.nav { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px max(20px, calc((100% - 1180px) / 2)); background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; }
.mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: #fff; font-size: 14px; letter-spacing: .02em; }
.nav nav { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 600; }
.nav nav a { color: var(--muted); text-decoration: none; }
.nav nav a:hover { color: var(--ink); }

/* ---------------------------------------------------------------- bits */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 600; white-space: nowrap; }
.pill.ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 35%, transparent); color: var(--ok); }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); position: relative; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ok); animation: ping 1.8s ease-out infinite; }
@keyframes ping { to { transform: scale(3); opacity: 0; } }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 1.5px solid var(--brand); background: transparent; color: var(--brand); font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, transform .1s, box-shadow .15s; }
.btn:hover { background: var(--brand-soft); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 35%, transparent); }
.btn.primary:hover { background: var(--brand-ink); }
.btn.ghost { border-color: var(--line); color: var(--muted); background: var(--surface); }
.btn.ghost:hover:not(:disabled) { color: var(--ink); border-color: var(--muted); background: var(--surface); }
.btn:disabled { opacity: .4; cursor: default; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li, .stack li { padding: 5px 11px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-ink); font-size: 13.5px; font-weight: 600; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--rd, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- hero */
.hero { padding: 56px 0 0; background: radial-gradient(900px 420px at 85% -10%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%), radial-gradient(600px 300px at 0% 30%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(44px, 7vw, 76px); line-height: 1; letter-spacing: -.03em; margin: 6px 0 14px; }
.role { font-size: clamp(20px, 2.6vw, 28px); font-weight: 700; color: var(--brand); }
.role b { color: var(--muted); font-weight: 400; margin: 0 4px; }
.sub { margin-top: 8px; font-size: 18px; color: var(--muted); }
.stack { display: flex; gap: 8px; margin: 18px 0 0; }
.stack li { background: var(--ink); color: var(--bg); font-size: 14px; padding: 6px 14px; border-radius: 999px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.langs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; max-width: 520px; margin-bottom: 26px; }
.langs div { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; font-size: 14px; }
.langs span { font-weight: 700; }
.langs em { grid-column: 1 / -1; font-style: normal; color: var(--muted); font-size: 12.5px; order: 3; }
.langs i { display: block; height: 6px; border-radius: 3px; background: var(--line); position: relative; overflow: hidden; }
.langs i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--brand), #5ab0ff); transition: width 1.1s cubic-bezier(.2, .8, .2, 1) .5s; }
.in .langs i::after, .langs.in i::after { width: var(--w); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-art { position: relative; }
.art-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); padding: 28px 18px 10px; color: var(--ink); overflow: hidden; }
.art-card::before { content: ""; position: absolute; inset: auto -20% -40% -20%; height: 70%; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 16%, transparent), transparent); }
.art-card .mascot { position: relative; width: 100%; height: auto; display: block; }
.float { position: absolute; padding: 7px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 13px; font-weight: 700; animation: bob 5s ease-in-out infinite; }
.float b { color: var(--ok); }
.f1 { top: 22px; left: 22px; animation-delay: 0s; } .f2 { top: 46px; right: 22px; animation-delay: -1.5s; }
.f3 { top: 46%; left: 14px; animation-delay: -3s; } .f4 { top: 24%; right: 14px; animation-delay: -2.2s; }
@keyframes bob { 50% { transform: translateY(-8px); } }


/* ---------------------------------------------------------------- the timeline */
.journey { padding: 84px 0 40px; }
.section-head { margin-bottom: 18px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -.02em; line-height: 1.1; margin: 4px 0 6px; }
.lede { color: var(--muted); font-size: 18px; max-width: 640px; }

.trackwrap { overflow-x: auto; overflow-y: hidden; padding: 4px 0 10px; scrollbar-width: thin; }
.track { --cols: 6; position: relative; display: grid; grid-template-columns: repeat(var(--cols), 1fr); min-width: 760px; padding-top: 104px; }
.rail { position: absolute; left: calc(100% / 12); right: calc(100% / 12); top: 140px; height: 4px; border-radius: 2px; background: var(--line); }
.rail i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 2px; background: linear-gradient(90deg, var(--brand), #5ab0ff); transition: width .6s cubic-bezier(.3, .8, .3, 1); }
.node { all: unset; box-sizing: border-box; cursor: pointer; display: grid; justify-items: center; gap: 6px; text-align: center; padding: 6px 4px 8px; position: relative; z-index: 1; border-radius: 14px; }
.node:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); }
.node .dotlogo { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #fff; border: 3px solid var(--line); box-shadow: var(--shadow); transition: transform .3s, border-color .3s, box-shadow .3s; overflow: hidden; }
.node .dotlogo img { width: 70%; height: 56%; object-fit: contain; }
.node .dotlogo .emo { font-size: 28px; line-height: 1; }
.node strong { font-size: 14.5px; line-height: 1.1; }
.node small { font-size: 12.5px; color: var(--muted); }
.node:hover .dotlogo { transform: translateY(-3px); }
.node.done .dotlogo { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); }
.node[aria-selected="true"] .dotlogo { border-color: var(--brand); transform: scale(1.12); box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 18%, transparent), var(--shadow); }
.node[aria-selected="true"] strong { color: var(--brand); }
.rider { position: absolute; top: 0; left: calc(100% / 12); width: 132px; margin-left: -66px; pointer-events: none; transition: left .7s cubic-bezier(.3, .8, .3, 1); color: var(--ink); }
.rider .mascot { width: 100%; height: auto; display: block; filter: drop-shadow(0 6px 10px rgba(22, 35, 58, .12)); }
.rider::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 2px; height: 14px; background: var(--brand); transform: translateX(-50%); opacity: .5; }

.stepnav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 16px; color: var(--muted); font-size: 14px; font-weight: 600; }

.panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; min-height: 560px; }
.panel.swap > * { animation: swap .5s ease both; }
@keyframes swap { from { opacity: 0; transform: translateY(10px); } }
.p-left { padding: 30px 32px 30px; display: flex; flex-direction: column; gap: 16px; }
.p-head { display: flex; align-items: center; gap: 14px; }
.p-logo { flex: none; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 16px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.p-logo img { width: 78%; height: 62%; object-fit: contain; }
.p-logo .emo { font-size: 30px; }
.p-logo.dark { background: #0b0b0d; }
.p-head h3 { font-size: 24px; line-height: 1.15; letter-spacing: -.015em; }
.p-head p { color: var(--muted); font-size: 14.5px; }
.p-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.p-mission { font-size: 17px; font-weight: 600; line-height: 1.4; }
.lbl { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.did { display: grid; gap: 7px; }
.did li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.45; }
.did li::before { content: ""; position: absolute; left: 3px; top: .5em; width: 8px; height: 8px; border-radius: 3px; background: var(--brand); opacity: .85; }
.impact { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--ok-soft); color: var(--ink); font-size: 15px; }
.impact b { color: var(--ok); white-space: nowrap; }
.p-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.p-right { position: relative; padding: 22px; background: var(--tint, var(--brand-soft)); display: flex; flex-direction: column; justify-content: center; gap: 14px; min-width: 0; }
.demo-cap { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--ink) 55%, transparent); display: flex; justify-content: space-between; gap: 10px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 16px; color: var(--ink); }
.dark-card { background: #0f172a; color: #e8eef8; border-color: #1f2a44; }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }

/* ---------------------------------------------------------------- demo: education */
.edu-steps { display: grid; gap: 10px; }
.edu-step { display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: center; opacity: 0; transform: translateX(16px); animation: slideIn .6s ease forwards; animation-delay: var(--d); }
@keyframes slideIn { to { opacity: 1; transform: none; } }
.edu-step .yr { font-weight: 800; color: var(--brand); font-size: 15px; }
.edu-step .bx { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 12px; padding: 10px 14px; font-size: 14.5px; line-height: 1.35; }
.edu-step .bx small { color: var(--muted); display: block; }
.term { min-height: 132px; font-size: 13.5px; line-height: 1.6; padding: 14px 16px; border-radius: 14px; background: #0f172a; color: #cfe0f7; }
.term .c1 { color: #7fd1ae; } .term .c2 { color: #f6b26b; } .term .c3 { color: #c792ea; }
.term .caret { display: inline-block; width: 8px; height: 15px; background: #cfe0f7; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------------------------------------------------------------- demo: splunk-style dashboard */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { padding: 10px 12px; border-radius: 12px; background: #16213a; }
.kpi span { display: block; font-size: 11.5px; color: #8fa3c4; }
.kpi b { font-size: 22px; letter-spacing: -.02em; }
.kpi b.ok { color: #7fd1ae; } .kpi b.warn { color: #f6b26b; }
.chart { width: 100%; height: 150px; display: block; }
.logs { height: 118px; overflow: hidden; font-size: 12px; line-height: 1.6; color: #8fa3c4; position: relative; mask-image: linear-gradient(#000 60%, transparent); }
.logs div { white-space: nowrap; animation: logIn .4s ease; }
.logs .g { color: #7fd1ae; } .logs .y { color: #f6b26b; } .logs .r { color: #ff8a8a; }
@keyframes logIn { from { opacity: 0; transform: translateY(8px); } }

/* ---------------------------------------------------------------- demo: bop.gg */
.pipe { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; align-items: center; position: relative; }
.pipe .n { position: relative; z-index: 1; display: grid; justify-items: center; gap: 3px; padding: 9px 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 11.5px; font-weight: 700; text-align: center; line-height: 1.15; }
.pipe .n i { font-style: normal; font-size: 18px; }
.pipe .wire { position: absolute; left: 10%; right: 10%; top: 50%; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px); }
.pipe .pkt { position: absolute; top: calc(50% - 5px); left: 8%; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: travel 3.2s linear infinite; animation-delay: var(--d); }
@keyframes travel { 0% { left: 8%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { left: 90%; opacity: 0; } }
.search { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); }
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 15%, transparent); }
.search input { all: unset; flex: 1; font-size: 15px; min-width: 0; }
.tl { display: grid; gap: 8px; margin-top: 12px; }
.tl .row { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; animation: logIn .35s ease both; }
.tl .row b { font-weight: 700; }
.tl .row small { color: var(--muted); }
.tl .row .prize { grid-row: 1 / 3; grid-column: 2; align-self: center; font-weight: 800; color: var(--ok); }
.tag { display: inline-block; padding: 1px 8px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-ink); font-size: 11.5px; font-weight: 700; margin-right: 6px; }
.empty { text-align: center; color: var(--muted); padding: 16px; font-size: 14px; }

/* ---------------------------------------------------------------- demo: gantt */
.gantt { position: relative; display: grid; gap: 9px; padding: 22px 0 20px; }
.gantt .hdr { position: absolute; top: 0; left: 96px; right: 0; display: grid; grid-template-columns: repeat(8, 1fr); font-size: 11px; color: var(--muted); }
.g-row { display: grid; grid-template-columns: 90px 1fr; gap: 6px; align-items: center; font-size: 13px; font-weight: 600; }
.g-track { position: relative; height: 18px; border-radius: 9px; background: color-mix(in srgb, var(--line) 60%, transparent); }
.g-bar { position: absolute; top: 0; bottom: 0; left: var(--l); width: 0; border-radius: 9px; background: var(--c); animation: grow 1s cubic-bezier(.3, .8, .3, 1) forwards; animation-delay: var(--d); }
@keyframes grow { to { width: var(--w); } }
.g-ms { position: absolute; top: -2px; left: var(--l); width: 20px; height: 20px; transform: rotate(45deg) scale(0); background: var(--accent); border-radius: 4px; animation: pop .4s ease forwards; animation-delay: var(--d); }
@keyframes pop { to { transform: rotate(45deg) scale(.7); } }
.g-today { position: absolute; top: 14px; bottom: 0; left: 96px; width: 2px; background: var(--accent); animation: today 6s ease-in-out infinite alternate; }
.g-today::before { content: "today"; position: absolute; bottom: -17px; top: auto; left: -16px; font-size: 10.5px; font-weight: 800; color: var(--accent); }
@keyframes today { from { left: calc(96px + 22%); } to { left: calc(96px + (100% - 96px) * .56); } }
.auto { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 8px; align-items: center; }
.auto .n { padding: 10px 8px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; text-align: center; line-height: 1.2; }
.auto .n small { display: block; font-weight: 500; color: var(--muted); margin-top: 2px; }
.auto .ar { color: var(--brand); font-weight: 800; animation: nudge 1.4s ease-in-out infinite; }
.auto .ar:nth-of-type(2) { animation-delay: .4s; }
@keyframes nudge { 50% { transform: translateX(4px); } }
.toast { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--ink); color: var(--bg); font-size: 13px; animation: toast 6s ease-in-out infinite; }
@keyframes toast { 0%, 55% { opacity: 0; transform: translateY(8px); } 62%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* ---------------------------------------------------------------- demo: translator */
.tr { display: grid; grid-template-columns: 74px minmax(0, 1fr) 74px; gap: 10px; align-items: stretch; }
.person { display: grid; align-content: start; justify-items: center; gap: 6px; padding-top: 8px; font-size: 12px; font-weight: 700; text-align: center; }
.person svg { width: 64px; height: 84px; }
.person .ring { opacity: 0; transition: opacity .2s; }
.person.talk .ring { opacity: 1; animation: ring 1s ease-out infinite; }
.person.talk .ring.r2 { animation-delay: .3s; }
@keyframes ring { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.25); opacity: 0; } }
.person .ring { transform-box: fill-box; transform-origin: center; }
.person .mouth { transform-box: fill-box; transform-origin: center; }
.person.talk .mouth { animation: talk .28s ease-in-out infinite alternate; }
@keyframes talk { to { transform: scaleY(2.2); } }
.tr-chat { display: flex; flex-direction: column; gap: 10px; padding: 12px; min-height: 340px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.tr-top { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.live { display: inline-flex; align-items: center; gap: 6px; color: #e5484d; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: #e5484d; animation: blink 1s steps(1) infinite; }
.msg { max-width: 88%; padding: 9px 12px; border-radius: 14px; font-size: 14px; line-height: 1.35; animation: logIn .3s ease both; }
.msg.jp { align-self: flex-start; background: #e7f1fb; border-bottom-left-radius: 4px; color: #0b3a6b; }
.msg.en { align-self: flex-end; background: #e4f6ee; border-bottom-right-radius: 4px; color: #0d4a35; }
.msg .orig { font-weight: 700; }
.msg .orig .cursor { display: inline-block; width: 2px; height: 1em; background: currentColor; margin-left: 2px; vertical-align: -2px; animation: blink .8s steps(1) infinite; }
.msg .tx { display: block; margin-top: 5px; padding-top: 5px; border-top: 1px dashed currentColor; font-size: 13px; opacity: 0; max-height: 0; overflow: hidden; transition: opacity .35s, max-height .35s; }
.msg .tx.show { opacity: .9; max-height: 60px; }
.msg .tx i { font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; opacity: .7; margin-right: 6px; }
.tr-steps { display: flex; gap: 6px; flex-wrap: wrap; }
.tr-steps span { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); transition: all .25s; }
.tr-steps span.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------------------------------------------------------------- demo: voices */
.vp { display: grid; gap: 10px; }
.vp-top { display: flex; align-items: center; gap: 14px; }
.vp-play { all: unset; box-sizing: border-box; cursor: pointer; flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 40%, transparent); transition: transform .12s, background .15s; }
.vp-play:hover { background: var(--brand-ink); transform: scale(1.05); }
.vp-play[disabled] { background: var(--muted); box-shadow: none; cursor: default; transform: none; opacity: .5; }
.vp-play svg { width: 22px; height: 22px; fill: currentColor; }
.vp.b .vp-play { background: var(--ok); box-shadow: 0 6px 16px color-mix(in srgb, var(--ok) 40%, transparent); }
.vp-title { font-weight: 800; font-size: 16px; line-height: 1.2; }
.vp-sub { color: var(--muted); font-size: 13px; }
.vp-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; justify-content: flex-end; }
.vp-badges span { padding: 3px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.vp.b .vp-badges span { background: var(--ok-soft); color: var(--ok); }
.vp canvas { width: 100%; height: 56px; display: block; cursor: pointer; border-radius: 10px; background: color-mix(in srgb, var(--line) 35%, transparent); }
.vp-txt { font-size: 14px; color: var(--ink); font-style: italic; }
.vp-note { font-size: 12.5px; color: var(--muted); }
.vs { text-align: center; font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--muted); }
.sizebar { display: grid; gap: 6px; font-size: 12.5px; }
.sizebar div { display: grid; grid-template-columns: 110px 1fr auto; gap: 8px; align-items: center; }
.sizebar i { display: block; height: 10px; border-radius: 5px; background: var(--brand); transform-origin: left; animation: scaleX 1.2s cubic-bezier(.3, .8, .3, 1) both .3s; }
.sizebar .b i { background: var(--ok); }
@keyframes scaleX { from { transform: scaleX(0); } }

/* ---------------------------------------------------------------- demo: ChatLike */
.cl { background: #0b0b0d; color: #fff; border: 1px solid #26262b; border-radius: 14px; overflow: hidden; font-family: Barlow, var(--font); }
.cl-head { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid #26262b; font-size: 13px; font-weight: 700; }
.cl-head .live { color: #ff4d6a; } .cl-head .live i { background: #ff4d6a; }
.cl-head .chan { color: #a3a3ad; font-weight: 600; } .cl-head .viewers { margin-left: auto; color: #a3a3ad; }
.cl-pin { margin: 10px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--cl) 14%, #0b0b0d); border: 1px solid color-mix(in srgb, var(--cl) 55%, transparent); position: relative; overflow: hidden; animation: pinIn .35s cubic-bezier(.2, .9, .3, 1.15); }
.cl-pin[hidden] { display: none; }
@keyframes pinIn { from { opacity: 0; transform: translateY(-12px); } }
.cl-pin .ph { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--cl); margin-bottom: 4px; }
.cl-pin .pr { display: flex; gap: 8px; align-items: center; font-size: 14.5px; }
.cl-pin .pr em { margin-left: auto; font-style: normal; font-weight: 800; color: var(--cl); }
.cl-pin .bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--cl); transform-origin: left; }
.cl-lines { padding: 6px 0 8px; display: grid; }
.cl-line { position: relative; display: flex; align-items: baseline; gap: 8px; padding: 8px 14px; font-size: 15px; line-height: 1.35; transition: background .2s; }
.cl-line:hover { background: rgba(255, 255, 255, .05); }
.cl-line.hot { background: color-mix(in srgb, var(--cl) 14%, transparent); box-shadow: inset 3px 0 0 var(--cl); }
.cl-line b { font-weight: 700; white-space: nowrap; }
.cl-like { all: unset; cursor: pointer; margin-left: auto; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #a3a3ad; opacity: .55; transition: opacity .15s, color .15s, transform .12s, background .15s; flex: none; position: relative; }
.cl-line:hover .cl-like, .cl-like.on, .cl-like.has { opacity: 1; }
.cl-like:hover { background: rgba(255, 255, 255, .1); }
.cl-like:active { transform: scale(.9); }
.cl-like svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.cl-like.on { color: var(--cl); } .cl-like.on svg { fill: var(--cl); stroke: var(--cl); animation: beat .45s ease; }
@keyframes beat { 40% { transform: scale(1.5); } }
.cl-foot { padding: 8px 14px 12px; font-size: 12.5px; color: #8b8b95; }
.cl-themes { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 14px; }
.cl-themes button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border: 1.5px solid #3a3a42; border-radius: 8px; font-size: 13px; font-weight: 700; color: #cfcfd6; }
.cl-themes button i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.cl-themes button[aria-pressed="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 18%, transparent); color: #fff; }
.cl-pix .cl-like svg { shape-rendering: crispEdges; }
.fly { position: fixed; z-index: 90; pointer-events: none; font-size: 16px; will-change: transform, opacity; }

/* ---------------------------------------------------------------- mascot animation */
.mascot .scene { display: none; }
.mascot[data-scene="code"] .scene-code, .mascot[data-scene="chart"] .scene-chart, .mascot[data-scene="flow"] .scene-flow,
.mascot[data-scene="gantt"] .scene-gantt, .mascot[data-scene="chat"] .scene-chat, .mascot[data-scene="wave"] .scene-wave,
.mascot[data-scene="heart"] .scene-heart { display: inline; }
.mascot .armA { transform-origin: 98px 136px; animation: type 0.5s ease-in-out infinite alternate; }
.mascot .armB { transform-origin: 96px 138px; animation: type 0.5s ease-in-out -.25s infinite alternate; }
.mascot .hand { animation: hand .5s ease-in-out -.25s infinite alternate; }
@keyframes type { to { transform: rotate(-4deg); } }
@keyframes hand { to { transform: translateY(-2px); } }
.mascot .head { transform-origin: 78px 90px; animation: nod 4s ease-in-out infinite; }
@keyframes nod { 50% { transform: rotate(2.5deg) translateY(1px); } }
.mascot .eye { transform-box: fill-box; transform-origin: center; animation: eye 5s infinite; }
@keyframes eye { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
.mascot .steam { opacity: 0; animation: steam 2.4s ease-in-out infinite; }
.mascot .s2 { animation-delay: 1.1s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(4px); } 40% { opacity: .8; } 100% { opacity: 0; transform: translateY(-6px); } }
.mascot .ln { transform-box: fill-box; transform-origin: left; animation: line 3s ease-in-out infinite; animation-delay: var(--d); }
@keyframes line { 0% { transform: scaleX(0); } 25%, 85% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
.mascot .cur { animation: blink 1s steps(1) infinite; height: 1px; }
.mascot .bar { transform-box: fill-box; transform-origin: bottom; animation: barUp 2.6s ease-in-out infinite; animation-delay: var(--d); }
@keyframes barUp { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }
.mascot .trend { stroke-dasharray: 160; animation: draw 2.6s ease-in-out infinite; }
@keyframes draw { from { stroke-dashoffset: 160; } 60%, 100% { stroke-dashoffset: 0; } }
.mascot .gb { transform-box: fill-box; transform-origin: left; animation: line 3.2s ease-in-out infinite; animation-delay: var(--d); }
.mascot .today { animation: tdy 3.2s ease-in-out infinite alternate; }
@keyframes tdy { from { transform: translateX(-10px); } to { transform: translateX(50px); } }
.mascot .bub { opacity: 0; animation: bub 4.5s ease-in-out infinite; }
.mascot .b2 { animation-delay: .9s; } .mascot .b3 { animation-delay: 1.8s; }
.mascot .scene-chat text { opacity: 0; animation: bub 4.5s ease-in-out infinite; }
.mascot .scene-chat text:nth-of-type(2) { animation-delay: .9s; } .mascot .scene-chat text:nth-of-type(3) { animation-delay: 1.8s; }
@keyframes bub { 0% { opacity: 0; transform: translateY(6px); } 10%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.mascot .wv { transform-box: fill-box; transform-origin: center; animation: wave 0.9s ease-in-out infinite alternate; animation-delay: var(--d); }
@keyframes wave { from { transform: scaleY(.2); } to { transform: scaleY(2.4); } }
.mascot .heart { transform-box: fill-box; transform-origin: center; animation: pulse 1.1s ease-in-out infinite; }
@keyframes pulse { 40% { transform: scale(1.18); } }
.mascot .plus { animation: plus 1.1s ease-out infinite; }
@keyframes plus { from { opacity: 1; transform: translateY(8px); } to { opacity: 0; transform: translateY(-8px); } }

/* ---------------------------------------------------------------- contact / footer */
.contact { padding: 48px 0 88px; }
.contact-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 36px 40px; border-radius: 28px; background: linear-gradient(135deg, var(--brand), #2f8be0 60%, #4fb3ff); color: #fff; box-shadow: 0 18px 44px color-mix(in srgb, var(--brand) 35%, transparent); }
.contact h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.02em; }
.contact .lede { color: rgba(255, 255, 255, .85); margin-top: 6px; font-size: 17px; }
.contact-links { display: flex; gap: 12px; flex-wrap: wrap; }
.contact .btn { border-color: #fff; color: #fff; }
.contact .btn:hover { background: rgba(255, 255, 255, .16); }
.contact .btn.primary { background: #fff; color: var(--brand-ink); box-shadow: none; }
.foot { border-top: 1px solid var(--line); padding: 22px 0 30px; font-size: 13px; color: var(--muted); }
.foot-in { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 520px; }
  .panel { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav nav a { display: none; }
  .p-left { padding: 22px 20px; }
  .p-right { padding: 16px 12px; }
  .langs { grid-template-columns: 1fr; }
  .contact-in { padding: 26px 22px; }
  .tr { grid-template-columns: 54px minmax(0, 1fr) 54px; gap: 6px; }
  .person svg { width: 48px; height: 64px; }
  .vp-top { flex-wrap: wrap; } .vp-badges { margin-left: 0; justify-content: flex-start; }
  .auto { grid-template-columns: 1fr; } .auto .ar { transform: rotate(90deg); text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* parallel lane: personal projects */
.lane { --cols: 6; position: relative; display: grid; grid-template-columns: repeat(6, 1fr); min-width: 760px; padding-top: 104px; margin-top: 10px; }
.lane .rail { left: calc(100% / 12); right: calc(100% / 12); background: none; border-top: 3px dashed var(--line); height: 0; border-radius: 0; }
.lane-label { position: absolute; top: 112px; left: 0; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); max-width: 40%; }
.lane .node { grid-column: 6; }
