/* /research. Same tokens as the rest of the site, plus one colour per choice an agent can make. */
.rs {
  --rs-act: #2f6bff; --rs-wait: #d98a00; --rs-esc: #e0457b;
  --rs-act-t: #1f57e0; --rs-wait-t: #935c00; --rs-esc-t: #c22a61;
  --rs-ink: #1d1d1d; --rs-line: var(--at-neutral-100); --rs-ease: cubic-bezier(.2, .8, .2, 1);
  background: var(--at-neutral-50); color: var(--at-neutral-900); overflow: hidden;
}
[data-bs-theme="dark"] .rs, .rs .rs-dark, .rs .rs-links, .rs .rs-interest__viz, .rs .rs-lab__main {
  --rs-act: #6f97ff; --rs-wait: #f5b53d; --rs-esc: #ff7aa5;
  --rs-act-t: #8fb0ff; --rs-wait-t: #f5b53d; --rs-esc-t: #ff8fb3; --rs-ink: #ffffff;
}
.rs .is-act { --h: var(--rs-act); --ht: var(--rs-act-t); }
.rs .is-wait { --h: var(--rs-wait); --ht: var(--rs-wait-t); }
.rs .is-esc { --h: var(--rs-esc); --ht: var(--rs-esc-t); }
.rs .on-nlp { --g: var(--rs-act); --gt: var(--rs-act-t); }
.rs .on-rl { --g: var(--rs-wait); --gt: var(--rs-wait-t); }
.rs .on-sdm { --g: var(--rs-esc); --gt: var(--rs-esc-t); }
.rs :where(p, dl, dd) { margin: 0; color: inherit; }
.rs .container { padding-inline: clamp(16px, 2.8vw, 48px); }
.rs ul, .rs ol { list-style: none; margin: 0; padding: 0; }
.rs li { list-style: none; }
.rs button { font-family: inherit; }
.rs :is(button, a, input):focus-visible { outline: 2px solid var(--aa-accent); outline-offset: 3px; }
.rs-sec { padding: 120px 0; }
.rs-sec.is-flush { padding-top: 0; }
.rs-head { max-width: 860px; margin-bottom: 48px; }
.rs-head h2 { margin: 4px 0 0; font-size: clamp(34px, 4.6vw, 64px); line-height: 1.06; letter-spacing: -.03em; }
.rs .rs-head > p { margin-top: 22px; font-size: 19px; line-height: 1.55; color: var(--at-neutral-500); max-width: 690px; }
.rs .rs-kicker { font-size: 15px; font-weight: 600; color: var(--aa-accent); }
.rs .rs-foot { margin-top: 18px; font-size: 14px; line-height: 1.5; color: var(--at-neutral-500); max-width: 640px; }

/* Cards with a pointer spotlight */
.rs-card { position: relative; background: var(--at-neutral-0); border-radius: 24px; overflow: hidden; isolation: isolate; }
.rs-card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--aa-accent-soft), transparent 70%); }
.rs-card:hover::before { opacity: 1; }

/* Hero */
.rs-hero { padding: 150px 0 60px; }
.rs-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.rs .rs-hero__name { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; font-weight: 600; font-size: 18px; line-height: 1.2; }
.rs-hero__name img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; box-shadow: 0 0 0 3px var(--at-neutral-0), 0 0 0 5px var(--aa-accent-soft); }
.rs-hero__name small { display: block; font-size: 15px; font-weight: 500; color: var(--at-neutral-500); margin-top: 2px; }
.rs-hero__q { font-size: clamp(46px, 6vw, 100px); line-height: .98; letter-spacing: -.045em; margin: 0 0 30px; min-height: 2.94em; }
.rs-word { display: inline-block; color: var(--ht); animation: rsWord .5s var(--rs-ease) both; transform-origin: 0 80%; }
@keyframes rsWord { from { opacity: 0; transform: translateY(.28em) rotate(3deg); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.rs-hero__lead { font-size: 20px; line-height: 1.5; font-weight: 500; max-width: 580px; }
.rs .rs-hero__note { margin-top: 14px; font-size: 17px; line-height: 1.55; color: var(--at-neutral-500); max-width: 560px; }
.rs .rs-topics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.rs-topics li { padding: 8px 16px; border-radius: 999px; background: var(--at-neutral-0); border: 1px solid var(--rs-line); font-size: 15px; font-weight: 500; }
.rs-simplex { position: relative; width: 100%; height: min(620px, 72vh); min-height: 440px; cursor: crosshair; touch-action: pan-y; }
.rs-simplex canvas { position: absolute; inset: 0; width: 100%; height: 100%; -webkit-mask: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent), linear-gradient(transparent, #000 5%, #000 95%, transparent); -webkit-mask-composite: source-in; mask: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent), linear-gradient(transparent, #000 5%, #000 95%, transparent); mask-composite: intersect; }
.rs-simplex__label { position: absolute; display: flex; gap: 7px; align-items: baseline; font-size: 17px; pointer-events: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rs-simplex__label b { font-weight: 600; text-transform: capitalize; }
.rs-simplex__label span { color: var(--at-neutral-500); min-width: 3.2ch; }
.rs-simplex__label.at-wait { left: var(--tx, 50%); top: calc(var(--ty, 58px) - 50px); transform: translateX(-50%); }
.rs-simplex__label.at-act { left: max(0px, calc(var(--lx, 30px) - 24px)); top: calc(var(--by, 90%) + 20px); }
.rs-simplex__label.at-escalate { right: max(0px, calc(var(--rx, 30px) - 34px)); top: calc(var(--by, 90%) + 20px); }
.rs .rs-hero__cap { text-align: center; font-size: 15px; color: var(--at-neutral-500); margin-top: 4px; }
.rs-jump { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--rs-line); }
.rs-jump a { padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 16px; color: var(--at-neutral-900); transition: background .3s, transform .3s var(--rs-ease); }
.rs-jump a:first-child { margin-left: -18px; }
.rs-jump a:hover { background: var(--at-neutral-0); transform: translateY(-2px); }

/* Interests */
.rs-interests { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rs-interest { display: flex; flex-direction: column; padding: 10px; }
.rs-interest__viz { position: relative; border-radius: 16px; padding: 18px 14px 46px; overflow: hidden; background: #0e1220; }
.on-nlp .rs-interest__viz { --g: var(--rs-act); }
.on-rl .rs-interest__viz { --g: var(--rs-wait); }
.on-sdm .rs-interest__viz { --g: var(--rs-esc); }
.rs-interest__viz::after { content: ""; position: absolute; width: 300px; height: 300px; right: -120px; top: -130px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--g) 34%, transparent), transparent); pointer-events: none; }
.rs-interest__hint { position: absolute; left: 18px; bottom: 14px; font-size: 14px; color: rgba(255, 255, 255, .62); }
.rs-interest__body { padding: 24px 16px 22px; }
.rs .rs-interest__body .rs-kicker { color: var(--gt); }
.rs-interest__body h3 { font-size: 26px; line-height: 1.15; margin: 6px 0 12px; letter-spacing: -.02em; }
.rs-interest__body > p:last-child { font-size: 17px; line-height: 1.5; color: var(--at-neutral-500); }
.rs-viz { position: relative; width: 100%; display: block; }
.rs-viz svg { width: 100%; height: auto; display: block; overflow: visible; }
.rs-viz--btn { background: none; border: 0; padding: 0; cursor: pointer; border-radius: 12px; }
.rs-arc { fill: none; stroke: var(--g); stroke-linecap: round; transition: d .5s var(--rs-ease), opacity .4s, stroke-width .4s; }
.rs-words { position: absolute; inset: 0; }
.rs-words button { position: absolute; top: 76%; transform: translateX(-50%); border: 0; border-radius: 10px; padding: 7px 9px; font-size: 15px; line-height: 1.2; font-weight: 600; color: #fff;
  background: color-mix(in srgb, var(--g) calc(var(--w) * 38%), rgba(255, 255, 255, .07)); transition: background .35s, color .35s; cursor: pointer; }
.rs-words button.is-on { background: var(--g); color: #0e1220; }
.rs-wire { fill: none; stroke: rgba(255, 255, 255, .2); stroke-width: 1.5; }
.rs-spark { fill: none; stroke: var(--g); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 24 400; stroke-dashoffset: 26; animation: rsSpark .7s ease-in both; }
.rs-spark.is-rew { animation-delay: .5s; }
@keyframes rsSpark { from { stroke-dashoffset: 26; } to { stroke-dashoffset: -190; } }
.rs-node rect { fill: rgba(255, 255, 255, .08); stroke: rgba(255, 255, 255, .24); }
.rs-node.is-agent rect { fill: var(--g); stroke: none; }
.rs-node text { fill: #fff; font-size: 16px; font-weight: 600; text-anchor: middle; font-family: inherit; }
.rs-node.is-agent text { fill: #0e1220; }
.rs-wirelabel { fill: rgba(255, 255, 255, .7); font-size: 14px; text-anchor: middle; font-family: inherit; }
.rs-bar { fill: rgba(255, 255, 255, .1); transform-box: fill-box; transform-origin: 50% 100%; transition: fill .35s, transform .45s var(--rs-ease); transform: scaleY(.45); }
.rs-bar.is-on { fill: color-mix(in srgb, var(--g) 50%, transparent); transform: none; }
.rs-bar.is-last { fill: var(--g); }
.rs-branch { fill: none; stroke: var(--g); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1 1; animation: rsBranch .38s ease-out both; }
@keyframes rsBranch { from { stroke-dashoffset: 1; opacity: 0; } 10% { opacity: 1; } to { stroke-dashoffset: 0; } }
.rs-treedot { fill: #3a4054; transition: fill .3s, r .3s; }
.rs-treedot.is-on { fill: var(--g); }

/* Playground */
.rs-lab { display: grid; grid-template-columns: 290px minmax(0, 1fr) 330px; gap: 10px; background: var(--at-neutral-0); border-radius: 28px; padding: 10px; }
.rs-lab > div { min-width: 0; }
.rs-lab__side { padding: 20px 18px; display: flex; flex-direction: column; }
.rs .rs-lab__h { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.rs-presets { display: grid; gap: 6px; margin-bottom: 28px; }
.rs-presets button { text-align: left; border: 1px solid var(--rs-line); background: transparent; color: var(--at-neutral-900); border-radius: 12px; padding: 12px 14px; font-weight: 600; font-size: 16px; transition: background .25s, color .25s, border-color .25s; }
.rs-presets button:hover { border-color: var(--aa-accent); }
.rs-presets button.is-on { background: var(--at-neutral-900); color: var(--at-neutral-0); border-color: var(--at-neutral-900); }
.rs-slider { display: block; margin-bottom: 14px; }
.rs-slider span { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; color: var(--at-neutral-500); }
.rs-slider b { color: var(--at-neutral-900); font-variant-numeric: tabular-nums; }
.rs-slider input { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: none; margin: 0; padding: 0; border: 0; cursor: pointer; }
.rs-slider input::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--aa-accent) var(--p), var(--at-neutral-100) var(--p)); }
.rs-slider input::-moz-range-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--aa-accent) var(--p), var(--at-neutral-100) var(--p)); }
.rs-slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 5px solid var(--aa-accent); margin-top: -7px; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); transition: transform .2s; }
.rs-slider input::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 5px solid var(--aa-accent); }
.rs-slider input:active::-webkit-slider-thumb { transform: scale(1.18); }
.rs-lab__btns { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; }
.rs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: 1; border: 1px solid var(--rs-line); background: transparent; color: var(--at-neutral-900); border-radius: 999px; padding: 13px 10px; font-weight: 600; font-size: 15px; white-space: nowrap; transition: transform .25s var(--rs-ease), opacity .25s; }
.rs-btn svg { width: 12px; height: 12px; }
.rs-btn:not(:disabled):hover { transform: translateY(-2px); }
.rs-btn.is-primary { background: #2f6bff; border-color: #2f6bff; color: #fff; }
.rs-btn:disabled { opacity: .5; cursor: default; }
.rs-lab__main { background: #0e1220; color: #fff; border-radius: 20px; padding: 24px 24px 18px; display: flex; flex-direction: column; }
.rs-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 18px; font-size: 16px; font-weight: 600; }
.rs-legend span { display: inline-flex; align-items: center; gap: 8px; text-transform: capitalize; }
.rs-legend i, .rs-log i { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--h); color: #0e1220; flex: none; }
.rs-log i { color: #fff; }
[data-bs-theme="dark"] .rs-log i { color: #0e1220; }
.rs-legend svg, .rs-log svg { width: 14px; height: 14px; }
.rs-legend path, .rs-log i path, .rs-cell path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rs-gridwrap { display: grid; grid-template-columns: auto auto minmax(0, 1fr); grid-template-rows: 1fr auto auto; gap: 7px 8px; flex: 1; }
.rs-axis { font-size: 14px; color: rgba(255, 255, 255, .7); }
.rs-axis.is-y { grid-column: 1; grid-row: 1; writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; }
.rs-axis.is-x { grid-column: 3; grid-row: 3; text-align: center; }
.rs-rows { grid-column: 2; grid-row: 1; display: grid; grid-template-rows: repeat(8, 1fr); gap: 5px; font-size: 14px; color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }
.rs-rows span { display: grid; place-items: center; }
.rs-cols { grid-column: 3; grid-row: 2; display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; font-size: 14px; color: rgba(255, 255, 255, .7); text-align: center; font-variant-numeric: tabular-nums; }
.rs-grid { grid-column: 3; grid-row: 1; display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: repeat(8, minmax(50px, 1fr)); gap: 5px; }
.rs-cell { position: relative; border: 0; padding: 0; border-radius: 11px; background: rgba(255, 255, 255, .06); color: #0e1220; display: grid; place-items: center; transition: background-color .3s, transform .3s var(--rs-ease), box-shadow .3s; cursor: pointer; }
.rs-cell:is(.is-act, .is-wait, .is-esc) { background: color-mix(in srgb, var(--h) calc(var(--c) * 100%), #0e1220); }
.rs-cell svg { width: 16px; height: 16px; }
.rs-cell:hover { transform: scale(1.06); z-index: 1; }
.rs-cell.is-path { box-shadow: inset 0 0 0 3px #fff; }
.rs-cell.is-sel { box-shadow: 0 0 0 2px #0e1220, 0 0 0 4px #fff; z-index: 2; }
.rs-cell.is-now { animation: rsNow .6s var(--rs-ease); z-index: 3; }
.rs .rs-cell:focus-visible { outline: 3px solid #fff; outline-offset: 1px; }
@keyframes rsNow { 0% { transform: scale(.7); } 55% { transform: scale(1.2); } 100% { transform: none; } }
.rs-lab__read { padding: 20px 18px; display: flex; flex-direction: column; gap: 20px; }
.rs .rs-read__t { font-size: 16px; margin-bottom: 14px; color: var(--at-neutral-500); }
.rs-read__t b { color: var(--at-neutral-900); font-size: 22px; letter-spacing: -.02em; margin-right: 2px; }
.rs-q { display: grid; grid-template-columns: 74px 1fr 48px; align-items: center; gap: 10px; font-size: 16px; padding: 5px 0; color: var(--at-neutral-500); }
.rs-q span { text-transform: capitalize; }
.rs-q > div { height: 10px; border-radius: 6px; background: var(--at-neutral-50); overflow: hidden; }
.rs-q i { display: block; height: 100%; border-radius: 6px; background: var(--h); opacity: .4; transform-origin: 0 50%; transition: transform .35s var(--rs-ease), opacity .3s; }
.rs-q b { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.rs-q.is-best { color: var(--at-neutral-900); font-weight: 600; }
.rs-q.is-best i { opacity: 1; }
.rs-q.is-best b { font-weight: 700; }
.rs .rs-read__n { font-size: 14px; color: var(--at-neutral-500); margin-top: 8px; }
.rs-log { min-height: 172px; border-top: 1px solid var(--rs-line); padding-top: 18px; display: grid; gap: 10px; align-content: start; }
.rs-log p { display: flex; gap: 10px; font-size: 15px; line-height: 1.4; animation: aaFadeUp .4s ease both; }
.rs-log .is-hint { color: var(--at-neutral-500); }
.rs-log .is-good, .rs-log .is-bad { font-weight: 600; }
.rs-train { margin-top: auto; border-top: 1px solid var(--rs-line); padding-top: 18px; }
.rs .rs-train__t { display: flex; justify-content: space-between; align-items: center; font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.rs-curve { width: 100%; height: 74px; display: block; overflow: visible; }
.rs-curve path { fill: none; stroke: var(--aa-accent); stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.rs-curve path.is-area { fill: var(--aa-accent-soft); stroke: none; }
.rs-curve line { stroke: var(--at-neutral-500); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.rs .rs-train__nums { margin-top: 10px; font-size: 15px; font-variant-numeric: tabular-nums; }
.rs-train__nums div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.rs-train__nums dt { font-weight: 400; color: var(--at-neutral-500); }
.rs-train__nums dd { font-weight: 600; white-space: nowrap; }
.rs-status { font-size: 14px; font-weight: 600; padding: 2px 11px; border-radius: 999px; background: var(--aa-accent-soft); color: var(--aa-accent); }
.rs-status.is-done { background: rgba(34, 197, 94, .14); color: #15803d; }
[data-bs-theme="dark"] .rs-status.is-done { color: #4ade80; }

/* EmoNorm */
.rs-dark { background: #0e1220; color: #fff; padding: 120px 0; position: relative; overflow: hidden; border-radius: 32px; margin: 0 12px; }
.rs-dark::after { content: ""; position: absolute; width: 900px; height: 700px; left: -260px; bottom: -420px; background: radial-gradient(closest-side, rgba(47, 107, 255, .38), transparent); pointer-events: none; }
.rs-dark .container { position: relative; z-index: 1; }
.rs-dark .rs-head { margin-bottom: 36px; }
.rs-dark .rs-head h2 { font-size: clamp(56px, 9vw, 132px); line-height: 1; }
.rs-dark__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.rs .rs-dark__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; font-size: 15px; }
.rs-dark__meta span { border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: 7px 15px; }
.rs-dark__lead { font-size: clamp(22px, 2vw, 28px); line-height: 1.35; letter-spacing: -.01em; }
.rs-dark__take { font-size: 18px; line-height: 1.55; color: rgba(255, 255, 255, .76); max-width: 520px; }
.rs .rs-steps { display: flex; margin: 42px 0 36px; }
.rs-steps li { position: relative; flex: 1; font-size: 16px; font-weight: 600; padding-top: 28px; color: rgba(255, 255, 255, .4); transition: color .4s ease calc(var(--i) * .32s); }
.rs-steps li:last-child { flex: 0 0 auto; }
.rs-steps i { position: absolute; left: 0; top: 0; width: 15px; height: 15px; border-radius: 50%; background: #2a3047; transition: background .3s ease calc(var(--i) * .32s), box-shadow .3s ease calc(var(--i) * .32s); z-index: 1; }
.rs-steps li:not(:last-child)::after { content: ""; position: absolute; left: 15px; right: 0; top: 6.5px; height: 2px; background: linear-gradient(90deg, #6f97ff 50%, rgba(255, 255, 255, .16) 50%) 100% 0 / 200% 100%; transition: background-position .34s linear calc(var(--i) * .32s); }
.rs-steps.is-in li { color: #fff; }
.rs-steps.is-in i { background: #6f97ff; box-shadow: 0 0 0 5px rgba(111, 151, 255, .2); }
.rs-steps.is-in li:not(:last-child)::after { background-position: 0 0; }
.rs-decoder { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 24px; padding: 28px; }
.rs-decoder__tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.rs-decoder__tabs button { border: 0; background: transparent; color: rgba(255, 255, 255, .7); border-radius: 999px; padding: 8px 14px; font-size: 16px; font-weight: 600; transition: background .25s, color .25s; }
.rs-decoder__tabs button:hover { color: #fff; }
.rs-decoder__tabs button.is-on { background: rgba(255, 255, 255, .14); color: #fff; }
.rs .rs-post { font-size: clamp(26px, 2.5vw, 38px); line-height: 1.42; letter-spacing: -.02em; margin: 24px 0 14px; min-height: 2.84em; animation: aaFadeUp .45s ease both; }
.rs-tok { font: inherit; letter-spacing: inherit; color: inherit; border: 0; padding: 0 .08em; border-radius: 8px; cursor: help; background: linear-gradient(#f5b53d, #f5b53d) 0 94% / 100% 2px no-repeat; transition: color .25s; }
.rs-tok.is-ctx { background: rgba(111, 151, 255, .32); }
.rs-tok:is(:hover, :focus-visible) { background: #f5b53d; color: #0e1220; }
.rs-gloss { font-size: 17px; min-height: 1.6em; margin-bottom: 22px !important; }
.rs-gloss b { color: #f5b53d; margin-right: 6px; }
.rs-gloss .is-hint { color: rgba(255, 255, 255, .66); }
.rs-decoder__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 20px; }
.rs-switch { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: rgba(255, 255, 255, .1); border-radius: 999px; padding: 4px; }
.rs-switch button { position: relative; border: 0; background: none; color: #fff; font-weight: 600; font-size: 15px; padding: 9px 18px; transition: color .3s; border-radius: 999px; }
.rs-switch button.is-on { color: #0e1220; }
.rs-switch__thumb { position: absolute; left: 4px; top: 4px; bottom: 4px; width: calc(50% - 4px); border-radius: 999px; background: #fff; transition: transform .4s var(--rs-ease); }
.rs-verdict { display: flex; align-items: baseline; gap: 10px; font-size: 16px; color: rgba(255, 255, 255, .7); }
.rs-verdict b { font-size: 26px; color: #f5b53d; letter-spacing: -.02em; animation: rsWord .45s var(--rs-ease) both; display: inline-block; min-width: 5.4em; }
.rs-verdict b.is-right { color: #8fb0ff; }
.rs .rs-dark .rs-foot { color: rgba(255, 255, 255, .66); }

/* Projects */
.rs-projects { display: grid; gap: 10px; }
.rs-project h3 { margin: 0; font-size: inherit; }
.rs-project h3 button { width: 100%; text-align: left; background: none; border: 0; color: inherit; padding: 28px 32px; display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 12px 24px; border-radius: 24px; }
.rs-project__t { font-size: clamp(22px, 2.5vw, 36px); font-weight: 600; letter-spacing: -.025em; line-height: 1.12; }
.rs-project__g { font-size: 16px; font-weight: 500; color: var(--at-neutral-500); }
.rs-project__tag { font-size: 15px; font-weight: 600; padding: 7px 15px; border-radius: 999px; background: var(--aa-accent-soft); color: var(--aa-accent); white-space: nowrap; }
.rs-project__x { position: relative; width: 22px; height: 22px; }
.rs-project__x::before, .rs-project__x::after { content: ""; position: absolute; left: 3px; right: 3px; top: 10px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .45s var(--rs-ease); }
.rs-project__x::after { transform: rotate(90deg); }
.rs-project.is-open .rs-project__x::after { transform: rotate(0); }
.rs-project__wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--rs-ease); }
.rs-project.is-open .rs-project__wrap { grid-template-rows: 1fr; }
.rs-project__wrap > div { overflow: hidden; visibility: hidden; transition: visibility .55s; }
.rs-project.is-open .rs-project__wrap > div { visibility: visible; }
.rs-project__body { padding: 0 32px 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .5s var(--rs-ease); }
.rs-project.is-open .rs-project__body { opacity: 1; transform: none; transition-delay: .12s; }
.rs-project__body p { font-size: 18px; line-height: 1.55; }
.rs-project__why { color: var(--at-neutral-500); }
.rs-project__body ul { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.rs-project__body li { border: 1px solid var(--rs-line); border-radius: 999px; padding: 7px 15px; font-size: 15px; font-weight: 500; }

/* Skills */
.rs-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 22px; }
.rs-filter > span { color: var(--at-neutral-500); font-size: 16px; margin-right: 6px; }
.rs-filter button { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--rs-line); background: transparent; color: var(--at-neutral-900); border-radius: 999px; padding: 9px 18px; font-size: 16px; font-weight: 600; transition: background .25s, color .25s, border-color .25s; }
.rs-filter i, .rs-skillcard li i { width: 9px; height: 9px; border-radius: 50%; background: var(--g); flex: none; }
.rs-filter button:hover { border-color: var(--at-neutral-900); }
.rs-filter button.is-on { background: var(--at-neutral-900); border-color: var(--at-neutral-900); color: var(--at-neutral-0); }
.rs-skills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rs-skillcard { padding: 28px; }
.rs .rs-skillcard ul { margin-top: 16px; }
.rs-skillcard li { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; padding: 14px 0; border-top: 1px solid var(--rs-line); transition: opacity .35s, padding .45s var(--rs-ease); }
.rs-skillcard li.is-dim { opacity: .28; }
.rs-skillcard li.is-lit { padding-left: 10px; }
.rs-skillcard li span { display: flex; gap: 5px; flex: none; }

/* Education */
.rs-edu { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.rs-edu__main { grid-row: span 2; padding: 44px; display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: center; }
.rs-edu h3 { font-size: clamp(28px, 2.8vw, 42px); letter-spacing: -.03em; margin: 0 0 6px; line-height: 1.08; }
.rs-edu__school { font-size: 18px; color: var(--at-neutral-500); }
.rs-ring { position: relative; width: 100%; max-width: 240px; }
.rs-ring svg { width: 100%; display: block; transform: rotate(-90deg); }
.rs-ring circle { fill: none; stroke: var(--at-neutral-50); stroke-width: 14; }
.rs-ring circle.is-val { stroke: var(--aa-accent); stroke-linecap: round; transition: stroke-dashoffset 1.6s cubic-bezier(.16, 1, .3, 1); }
.rs-ring p { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.rs-ring b { font-size: 56px; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.rs-ring p span { color: var(--at-neutral-500); font-size: 16px; margin-top: 4px; }
.rs .rs-courses { margin-top: 24px; }
.rs-courses li { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--rs-line); font-size: 18px; font-weight: 500; }
.rs-courses b { color: var(--aa-accent); }
.rs-edu__lvl { padding: 30px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; min-height: 210px; }
.rs-edu__g { display: flex; flex-wrap: wrap; gap: 4px 26px; font-size: clamp(44px, 4.4vw, 68px); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.rs .rs-edu__note { color: var(--at-neutral-500); font-size: 17px; margin-top: 10px; }

/* Contact */
.rs-links { background: #0e1220; color: #fff; border-radius: 32px; margin: 0 12px 60px; padding: 110px 0 90px; text-align: center; position: relative; overflow: hidden; }
.rs-links::after { content: ""; position: absolute; left: 50%; bottom: -300px; width: 900px; height: 560px; transform: translateX(-50%); pointer-events: none; background: radial-gradient(closest-side, rgba(47, 107, 255, .5), transparent); }
.rs-links .container { position: relative; z-index: 1; }
.rs-links h2 { font-size: clamp(34px, 4.8vw, 72px); line-height: 1.05; letter-spacing: -.035em; margin: 0 auto 44px; max-width: 900px; text-wrap: balance; }
.rs-links__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.rs-link { display: inline-flex; align-items: center; gap: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); color: #fff; border-radius: 999px; padding: 18px 28px; font-size: 18px; transition: background .3s, color .3s, transform .35s var(--rs-ease); }
.rs-link span { color: rgba(255, 255, 255, .68); transition: color .3s; }
.rs-link b { font-weight: 600; }
.rs-link svg { transition: transform .35s var(--rs-ease); flex: none; }
.rs-link:hover { background: #fff; color: #0e1220; transform: translateY(-3px); }
.rs-link:hover span { color: #585959; }
.rs-link:hover svg { transform: translate(3px, -3px); }
.rs-copy { margin-top: 22px; background: none; border: 0; color: rgba(255, 255, 255, .76); font-size: 16px; text-decoration: underline; text-underline-offset: 4px; padding: 8px; }
.rs-copy:hover { color: #fff; }

@media (max-width: 1399px) {
  .rs-lab { grid-template-columns: 290px minmax(0, 1fr); }
  .rs-lab__read { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .rs-log, .rs-train { border-top: 0; padding-top: 0; margin: 0; }
  .rs-dark__grid { gap: 40px; }
  .rs-edu__main { grid-template-columns: 190px 1fr; gap: 32px; padding: 32px; }
  .rs-ring b { font-size: 46px; }
}
@media (max-width: 991px) {
  .rs-sec, .rs-dark { padding-block: 84px; }
  .rs-hero { padding-top: 130px; }
  .rs-hero__q { min-height: 0; }
  .rs-simplex { height: 420px; min-height: 0; }
  .rs-hero__grid, .rs-interests, .rs-skills, .rs-lab, .rs-lab__read, .rs-edu, .rs-dark__grid { grid-template-columns: minmax(0, 1fr); }
  .rs-hero__grid { gap: 24px; }
  .rs-interests { max-width: 560px; }
  .rs-log { min-height: 130px; }
  .rs-project__body { grid-template-columns: 1fr; gap: 16px; }
  .rs-project h3 button { grid-template-columns: 1fr auto; }
  .rs-project__g { display: none; }
  .rs-project__tag { grid-row: 2; justify-self: start; }
  .rs-edu__lvl { min-height: 160px; }
}
@media (max-width: 575px) {
  .rs-hero__q { font-size: 50px; min-height: 2.94em; }
  .rs-hero__lead { font-size: 18px; }
  .rs-simplex { height: 370px; }
  .rs-jump { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -12px; padding-inline: 12px; }
  .rs-jump a { white-space: nowrap; }
  .rs-jump a:first-child { margin-left: -12px; }
  .rs-lab__main { padding: 20px 12px 16px; }
  .rs-grid, .rs-rows, .rs-cols { gap: 4px; }
  .rs-grid { grid-template-rows: repeat(8, 40px); }
  .rs-cell { border-radius: 9px; }
  .rs-cols { font-size: 13px; }
  .rs-dark, .rs-links { margin-inline: 8px; border-radius: 24px; }
  .rs-decoder { padding: 18px; }
  .rs-switch { width: 100%; }
  .rs-switch button { padding-inline: 8px; }
  .rs-steps li { font-size: 14px; }
  .rs-project h3 button { padding: 22px 18px; }
  .rs-project__body { padding: 0 18px 24px; }
  .rs-edu__main { grid-template-columns: 1fr; padding: 26px; gap: 28px; }
  .rs-ring { max-width: 190px; }
  .rs-link { width: 100%; justify-content: space-between; padding: 16px 20px; font-size: 16px; }
  .rs-link b { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  .rs *, .rs *::before, .rs *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
/* The template hides <br> on small screens; the headline needs its own */
.rs .rs-hero__q br { display: inline !important; }
@media (max-width: 991px) {
  .rs-lab__main { order: -1; }
  .rs-lab__btns { order: -1; margin: 0 0 24px; padding: 0; }
}

/* Gold medal */
.rs .rs-medal { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 9px 18px 9px 13px; border-radius: 999px; font-size: 17px; font-weight: 600; color: #6b4700; background: linear-gradient(100deg, #fbe7b0, #f2c655); }
.rs-medal svg { width: 24px; height: 24px; flex: none; }
.rs-medal circle { fill: #b97a00; }
.rs-medal .is-ribbon { fill: none; stroke: #6b4700; stroke-width: 2.6; stroke-linecap: round; }
.rs-medal .is-star { fill: #fff3cf; }
.rs-medal::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, .75) 50%, transparent 65%) 130% 0 / 260% 100% no-repeat; animation: rsShine 5s ease-in-out infinite; pointer-events: none; }
@keyframes rsShine { 0%, 60% { background-position: 130% 0; } 85%, 100% { background-position: -60% 0; } }
