:root {
  --bg: #0b0b10;
  --surface: rgba(255,255,255,.04);
  --surface-2: rgba(255,255,255,.07);
  --line: rgba(255,255,255,.09);
  --line-2: rgba(255,255,255,.16);
  --text: #f2f2f5;
  --muted: #9a9aab;
  /* One cool accent (indigo); the gradient is reserved for the surname. */
  --accent: #6366f1;
  --accent-strong: #4f46e5;
  --accent-hi: #818cf8;
  --grad: linear-gradient(110deg, #a5b4fc, #818cf8 45%, #67e8f9);
  --r: 20px;
  --ease: cubic-bezier(.22,1,.36,1);
  --display: "Space Grotesk", Inter, system-ui, sans-serif;
  --font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
body { margin: 0; font: 400 16px/1.6 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { margin: 0; font-family: var(--display); letter-spacing: -.02em; line-height: 1.1; }
a { color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent-strong); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.accent { color: var(--accent-hi); font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Background */
.progress { position: fixed; inset: 0 0 auto; height: 2px; background: var(--accent-hi); transform-origin: 0 50%; transform: scaleX(0); z-index: 50; }
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
/* Perf: everything here is painted once; only transforms animate (GPU-composited, no filters). */
.bg-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 60% 50% at 50% 25%, #000 30%, transparent 70%); opacity: .5; }
.blob { position: absolute; width: 900px; height: 900px; border-radius: 50%; opacity: .22; will-change: transform; }
.blob-a { background: radial-gradient(circle, var(--accent), transparent 65%); top: -420px; left: -380px; animation: float 18s ease-in-out infinite alternate; }
@keyframes float { to { transform: translate(120px, 80px) scale(1.15); } }

/* Nav */
.nav { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 40; display: flex; align-items: center; gap: 24px; padding: 8px 8px 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(16,16,22,.88); animation: drop .8s var(--ease) both; transition: translate .5s var(--ease); }
.nav.nav-hidden { translate: 0 -160%; }
@keyframes drop { from { opacity: 0; transform: translate(-50%, -30px); } }
.brand { text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-strong); display: grid; place-items: center; font: 700 13px var(--display); color: #fff; transition: transform .4s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-12deg) scale(1.08); }
.nav-links { position: relative; display: flex; }
.nav-links a { position: relative; z-index: 1; padding: 8px 16px; text-decoration: none; font-size: 14px; font-weight: 500; color: var(--muted); transition: color .3s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-pill { position: absolute; top: 0; height: 100%; border-radius: 999px; background: var(--surface-2); transition: left .45s var(--ease), width .45s var(--ease), opacity .3s; opacity: 0; }

/* Buttons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: 999px; font: 600 15px var(--font); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .35s var(--ease), background .3s, border-color .3s, box-shadow .3s; }
.btn-primary { background: var(--accent-strong); color: #fff; box-shadow: 0 8px 30px -10px rgba(79,70,229,.7); }
.btn-primary:hover { background: #4338ca; box-shadow: 0 12px 36px -10px rgba(79,70,229,.8); }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--text); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 13px; }
.btn-lg { height: 56px; padding: 0 32px; font-size: 16px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* Hero */
.hero { position: relative; min-height: 100svh; max-width: 1200px; margin: 0 auto; padding: 120px 24px 80px; display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 48px; }
.status { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px; padding: 6px 14px 6px 10px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; color: var(--muted); background: var(--surface); }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #3ddc97; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #3ddc97; animation: pulse 2s ease-out infinite; }
@keyframes pulse { to { transform: scale(3); opacity: 0; } }
.hero-title { font-size: clamp(56px, 9vw, 120px); font-weight: 700; line-height: .95; letter-spacing: -.045em; }
.line { display: block; overflow: hidden; padding-bottom: .08em; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.w > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); transition-delay: calc(var(--wi) * 70ms + 120ms); }
.in .w > span { transform: none; }
.word { display: inline-block; transform: translateY(110%); animation: up 1.1s var(--ease) forwards; }
.line:nth-child(2) .word { animation-delay: .12s; }
@keyframes up { to { transform: none; } }
.hero-role { margin: 24px 0 0; font: 500 clamp(20px, 2.4vw, 28px) var(--display); min-height: 1.4em; }
.hero-sub { max-width: 520px; margin: 16px 0 0; color: var(--muted); font-size: 17px; }
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

.hero-visual { position: relative; justify-self: center; width: 320px; aspect-ratio: 1; display: grid; place-items: center; }
.ring { position: absolute; inset: 0; border-radius: 50%; padding: 3px; background: conic-gradient(from 0deg, var(--accent-hi), rgba(99,102,241,.12) 45%, rgba(103,232,249,.5) 75%, var(--accent-hi)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.avatar { width: 82%; height: 82%; border-radius: 50%; object-fit: cover; box-shadow: 0 0 90px rgba(99,102,241,.3); transition: transform .6s var(--ease); }
.hero-visual:hover .avatar { transform: scale(1.04); }
.orbit { position: absolute; padding: 8px 14px; border-radius: 999px; font: 600 13px var(--display); background: #16161e; border: 1px solid var(--line-2); white-space: nowrap; }
.o1 { top: 4%; left: -8%; }
.o2 { top: 22%; right: -18%; animation-delay: -1.2s; }
.o3 { bottom: 14%; left: -14%; animation-delay: -2.4s; }
.o4 { bottom: 2%; right: -4%; animation-delay: -3.6s; }
@keyframes bob { 50% { transform: translateY(-12px); } }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; width: 26px; height: 42px; margin-left: -13px; border: 2px solid var(--line-2); border-radius: 14px; }
.scroll-hint span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--text); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { to { transform: translateY(14px); opacity: 0; } }

/* Marquee */

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 80px; }
.stat { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 4px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.stat::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--accent-hi), transparent); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease) calc(var(--d, 0ms) + 300ms); }
.stat.in::after { transform: scaleX(1); }
.stat-num { font: 700 clamp(36px, 5vw, 56px)/1 var(--display); letter-spacing: -.03em; }
.stat-date { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.6; }
.stat-label { color: var(--muted); font-size: 14px; }


/* Sections */
.section { padding-top: 120px; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.kicker { margin: 0 0 12px; font: 600 13px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-hi); }
.section-head h2, .cta h2 { font-size: clamp(36px, 5vw, 60px); }
.section-head .muted { margin: 16px 0 0; }

/* Toolbar */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 32px; }
.filters { position: relative; display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); overflow-x: auto; scrollbar-width: none; }
.chip-btn { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: 500 14px var(--font); cursor: pointer; white-space: nowrap; transition: color .3s; }
.chip-btn:hover { color: var(--text); }
.chip-btn[aria-selected="true"] { color: #fff; }
.filter-pill { position: absolute; top: 4px; bottom: 4px; border-radius: 999px; background: var(--accent-strong); transition: left .45s var(--ease), width .45s var(--ease); }
.lang-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.search { flex: 1; min-width: 200px; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); transition: border-color .3s, box-shadow .3s; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(99,102,241,.2); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font: 400 15px var(--font); }
.sort { height: 46px; padding: 0 44px 0 20px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23f2f2f5' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 18px center / 14px; color: var(--text); font: 500 14px var(--font); cursor: pointer; appearance: none; -webkit-appearance: none; transition: border-color .3s; }
.sort:hover { border-color: var(--line-2); }
.sort option { background: #16161e; }

/* Bento grid */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { --h: 239; position: relative; display: flex; flex-direction: column; gap: 16px; padding: 24px; text-align: left; border: 1px solid var(--line); border-radius: var(--r); background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015)); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); color: inherit; font: inherit; cursor: pointer; overflow: hidden; transition: transform .5s var(--ease), border-color .3s, box-shadow .5s var(--ease); }
.card.fade { animation: fade-up .45s var(--ease) backwards; animation-delay: calc(var(--i) * 40ms); }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } }
.card:hover { transform: translateY(-4px); border-color: hsl(var(--h) 80% 70% / .35); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 24px 48px -24px rgba(0,0,0,.8), 0 0 0 4px hsl(var(--h) 80% 60% / .06); }
/* Staggered entrance only on first render; later renders morph via View Transitions. */
.bento:not(.in) .card { opacity: 0; }
.bento.in .card.enter { animation: card-in .9s var(--ease) backwards; animation-delay: calc(var(--i) * 90ms); }
@keyframes card-in { from { opacity: 0; transform: translateY(40px); } }

.card-top { display: flex; align-items: center; gap: 14px; }
.tile { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; font: 700 12px var(--display); letter-spacing: .02em; color: hsl(var(--h) 90% 84%); background: linear-gradient(135deg, hsl(var(--h) 80% 55% / .28), hsl(var(--h) 80% 55% / .08)); border: 1px solid hsl(var(--h) 80% 70% / .3); }
.card-id { flex: 1; min-width: 0; }
.card-title { display: flex; align-items: center; gap: 8px; font: 600 18px/1.3 var(--display); }
.card-title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-sub { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.pill { flex: none; padding: 2px 8px; border-radius: 999px; font: 600 10px var(--display); letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--line-2); color: var(--muted); }
.pill-new { border: 0; background: var(--accent-strong); color: #fff; }
.card-arrow { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); transition: transform .5s var(--ease), background .3s, color .3s; }
.card:hover .card-arrow { transform: rotate(-45deg); background: var(--text); color: var(--bg); }
.card-desc { margin: 0; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tags li { padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: #cfcfd8; font: 500 12px ui-monospace, "Cascadia Code", Consolas, monospace; }
.card-foot { margin-top: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.card-foot span { display: inline-flex; align-items: center; gap: 6px; }
.card-foot b { color: var(--text); font-weight: 500; }

/* Featured: horizontal, with a live repository.json panel. */
.card.featured { grid-column: span 2; display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; padding: 28px; }
.feat-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.card.featured .card-title { font-size: 26px; }
.card.featured .tile { width: 52px; height: 52px; border-radius: 14px; font-size: 13px; }
.card.featured .card-desc { -webkit-line-clamp: 3; font-size: 15px; }
.feat-panel { position: relative; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: #0c0c12; overflow: hidden; }
.feat-panel::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(80% 70% at 100% 0%, hsl(var(--h) 85% 60% / .18), transparent 70%); }
.panel-head { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--line); font: 500 12px ui-monospace, "Cascadia Code", Consolas, monospace; color: var(--muted); }
.feat-panel pre { flex: 1; margin: 0; padding: 18px 16px; display: flex; align-items: center; font: 13px/1.8 ui-monospace, "Cascadia Code", Consolas, monospace; color: #cfcfd8; overflow: hidden; }
.j-k { color: #a5b4fc; }
.j-s { color: #7dd3fc; }
.j-n { color: #5eead4; }
.j-p { color: #6b6b7b; }

/* Cursor-follow glow on cards/panels */
.glow { position: relative; }
.card::before, .glow::before { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; opacity: 0; background: radial-gradient(400px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.09), transparent 45%); transition: opacity .4s; }
.card:hover::before, .glow:hover::before { opacity: 1; }

.skeleton { cursor: default; }
.sk-line { background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.sk-line { height: 14px; border-radius: 6px; }
.skeleton .sk-line:first-child { width: 45%; height: 20px; }
.skeleton .sk-line:last-child { width: 60%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { color: var(--muted); text-align: center; padding: 48px 0; }
.empty a { color: var(--accent-hi); }

/* Experience */
.exp { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.timeline { position: relative; list-style: none; margin: 0; padding: 0 0 0 36px; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--line); }
.timeline::after { background: linear-gradient(var(--accent-hi), var(--accent-strong)); transform-origin: top; transform: scaleY(var(--fill, 0)); transition: transform .2s linear; }
.tl-item { position: relative; padding-bottom: 24px; }
.tl-item.reveal:not(.in) { transform: translateX(-40px); }
.tl-dot { position: absolute; left: -36px; top: 22px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent-hi); z-index: 1; }
.tl-dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent-hi); animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 50% { transform: scale(.5); opacity: .5; } }
.tl-card, .stack-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.tl-when { margin: 0 0 8px; font: 600 12px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tl-card h3 { font-size: 26px; }
.tl-org { margin: 8px 0 12px; }
.arrow { display: inline-block; margin: 0 6px 0 2px; color: var(--accent-hi); animation: nudge 1.6s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateX(4px); } }
.tl-card p:last-child { margin: 0; }
.tl-card h3 + .muted { margin-top: 10px; }
.tl-list { margin: 12px 0 0; padding-left: 18px; color: var(--muted); }
.tl-list li { margin-top: 6px; }
.tl-list li::marker { color: var(--accent-hi); }
.tl-list b { color: var(--text); font-weight: 600; }
.tl-org + .muted { margin: 0; }
.stack-card h3 { font-size: 20px; }
.chips { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.stack-card:not(.in) .chips li { opacity: 0; }
.stack-card.in .chips li { animation: chip-in .5s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 60ms + 250ms); }
@keyframes chip-in { from { opacity: 0; transform: translateY(10px) scale(.9); } }
.chips li { padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; font-weight: 500; transition: background .3s, color .3s, transform .3s var(--ease); }
.chips li:hover { background: var(--text); color: var(--bg); transform: translateY(-2px); }

/* Contact */
.cta { text-align: center; padding: 80px 24px; border: 1px solid var(--line); border-radius: 32px; background: radial-gradient(ellipse at top, rgba(99,102,241,.16), transparent 60%), var(--surface); overflow: hidden; }
.cta .muted { margin: 16px 0 0; }
.mail-box { display: inline-flex; align-items: center; gap: 4px; margin-top: 28px; padding: 6px 6px 6px 20px; border: 1px solid var(--line-2); border-radius: 999px; background: #0c0c12; }
.mail-link { font: 500 clamp(15px, 2vw, 20px) var(--display); text-decoration: none; color: var(--text); overflow-wrap: anywhere; }
.mail-link:hover { color: var(--accent-hi); }
.copy-btn { height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--surface-2); color: var(--text); font: 500 13px var(--font); cursor: pointer; transition: background .3s; }
.copy-btn:hover { background: var(--accent-strong); }
.stack-sub { margin-top: 24px; font-size: 16px; }
.small { font-size: 14px; }
.stat-num small { margin-left: 4px; font-size: .4em; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.stat-date { display: inline-flex; align-items: center; gap: 12px; }
.cta .hero-cta { justify-content: center; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 80px; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--line); font-size: 13px; }

/* Modal */
.modal { width: min(860px, calc(100% - 32px)); max-height: 88vh; padding: 0; border: 1px solid var(--line-2); border-radius: 24px; background: #121219; color: var(--text); overflow-y: auto; }
.modal::backdrop { background: rgba(5,5,8,.8); }
.modal[open] { animation: pop .5s var(--ease); }
.modal[open]::backdrop { animation: fade .4s ease; }
.modal.closing { animation: pop-out .3s var(--ease) forwards; }
.modal.closing::backdrop { animation: fade .3s ease reverse forwards; }
@keyframes pop { from { opacity: 0; transform: scale(.4); } }
.modal[open] :is(.modal-head > *, .fact, .modal-actions, .readme-box, .modal-content > .chips) { animation: rise-in .7s var(--ease) backwards; }
.modal[open] .modal-head > :nth-child(1) { animation-delay: .12s; }
.modal[open] .modal-head > :nth-child(2) { animation-delay: .18s; }
.modal[open] .modal-head > :nth-child(3) { animation-delay: .24s; }
.modal[open] .fact:nth-child(1) { animation-delay: .28s; }
.modal[open] .fact:nth-child(2) { animation-delay: .32s; }
.modal[open] .fact:nth-child(3) { animation-delay: .36s; }
.modal[open] .fact:nth-child(4) { animation-delay: .4s; }
.modal[open] .modal-content > .chips { animation-delay: .44s; }
.modal[open] .modal-actions { animation-delay: .48s; }
.modal[open] .readme-box { animation-delay: .54s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } }
.readme.loaded { animation: fade .5s ease; }
@keyframes pop-out { to { opacity: 0; transform: translateY(24px) scale(.97); } }
@keyframes fade { from { opacity: 0; } }
.modal-close { position: sticky; top: 16px; float: right; z-index: 3; width: 38px; height: 38px; margin: 16px 16px 0 0; border: 1px solid var(--line-2); border-radius: 50%; background: rgba(11,11,16,.8); color: var(--text); cursor: pointer; transition: transform .4s var(--ease), background .3s; }
.modal-close:hover { transform: rotate(90deg); background: var(--accent-strong); }
/* Modal header: soft indigo/cyan glow over a faint grid. */
.modal .cover { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(90% 120% at 0% 0%, rgba(99,102,241,.45), transparent 60%), radial-gradient(80% 100% at 100% 100%, rgba(34,211,238,.18), transparent 60%), linear-gradient(135deg, #16162a, #0f0f17); }
.modal .cover::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 28px 28px; mask-image: radial-gradient(ellipse at 70% 30%, #000, transparent 75%); }
.modal .cover { min-height: 280px; display: flex; align-items: flex-end; margin-top: -54px; }
.modal .cover::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, #121219 4%, transparent 70%); }

.modal-head { position: relative; padding: 32px; max-width: 640px; }
.modal-head .kicker { margin-bottom: 8px; }
.modal-head h2 { font-size: clamp(30px, 5vw, 44px); }
.modal-head p:last-child { margin: 10px 0 0; color: #c9c9d6; }
.modal-content { padding: 4px 32px 32px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.fact { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.fact span { font-size: 12px; color: var(--muted); }
.fact b { display: flex; align-items: center; gap: 6px; font: 600 15px var(--display); }
.modal-content .chips { margin-top: 16px; }
.modal-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0; }
.readme-box { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: rgba(0,0,0,.18); }
.readme-box > header { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--surface); font: 500 13px ui-monospace, "Cascadia Code", Consolas, monospace; color: var(--muted); }
.readme { padding: 8px 24px 24px; color: #cfcfd8; font-size: 15px; overflow-wrap: anywhere; }
.readme > .sk-line { margin-inline: 0; }
.readme h1, .readme h2, .readme h3 { margin: 1.2em 0 .5em; color: var(--text); }
.readme h1, .readme h2 { padding-bottom: .3em; border-bottom: 1px solid var(--line); }
.readme .markdown-heading > :is(h1, h2, h3, h4) { display: block; }
.readme a.anchor { display: none; }
.readme hr { height: 1px; margin: 24px 0; border: 0; background: var(--line); }
.readme code { padding: 2px 6px; border-radius: 6px; background: var(--surface-2); }
.readme pre code { padding: 0; background: none; }
.readme a { color: var(--accent-hi); }
.readme img { display: inline; }
.readme pre { padding: 16px; border-radius: 12px; background: #0b0b10; border: 1px solid var(--line); overflow-x: auto; }
.readme code { font-size: 13px; }
.readme table { border-collapse: collapse; display: block; overflow-x: auto; }
.readme td, .readme th { border: 1px solid var(--line); padding: 6px 10px; }

/* Offscreen sections stop their looping animations (toggled by app.js). */
.paused, .paused * { animation-play-state: paused !important; }

/* View Transitions (filters/sort + modal) */
::view-transition-group(*) { animation-duration: .5s; animation-timing-function: var(--ease); }

/* Responsive */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 110px; gap: 56px; }
  .hero-visual { order: -1; width: 220px; }
  .hero-sub { margin-inline: auto; }
  .hero-cta, .status { justify-content: center; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .exp { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .nav { gap: 8px; width: calc(100% - 32px); justify-content: space-between; }
  .nav-links { display: none; }
  .hero { padding-inline: 16px; }
  .orbit { font-size: 11px; padding: 6px 10px; }
  .scroll-hint { display: none; }
  .bento { grid-template-columns: 1fr; }
  .card.featured { grid-column: auto; }
  .card.featured { grid-template-columns: 1fr; padding: 24px; }
  .card.featured .card-title { font-size: 20px; }
  .card.featured .tile { width: 44px; height: 44px; font-size: 12px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .modal-head { padding: 24px 20px; }
  .modal-content { padding: 4px 20px 20px; }
  .readme { padding: 4px 16px 16px; }
  .stat { padding: 18px; }
  .section { padding-top: 88px; }
  .cta { padding: 56px 20px; }
}
/* ---------- Chapter rail (fixed, left) ---------- */
.rail { position: fixed; left: 28px; top: 50%; z-index: 30; display: flex; flex-direction: column; align-items: center; gap: 14px; opacity: 0; transform: translate(-12px, -50%); transition: opacity .5s, transform .5s var(--ease); pointer-events: none; }
.rail.show { opacity: 1; transform: translate(0, -50%); }
.rail-num { display: flex; flex-direction: column; align-items: center; font: 700 13px var(--display); }
.rail-num small, .sc-foot small { font-size: 10px; color: var(--muted); font-weight: 500; }
.rail-ticks { display: flex; flex-direction: column; gap: 8px; }
.rail-ticks i { width: 2px; height: 14px; border-radius: 2px; background: var(--line-2); transition: height .5s var(--ease), background .4s; }
.rail-ticks i.on { height: 36px; background: var(--accent-hi); }
.rail-label { writing-mode: vertical-rl; transform: rotate(180deg); font: 600 10px var(--display); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 1180px) { .rail { display: none; } }

/* ---------- Projects: Showcase / Grid switch ---------- */
.view-switch { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.view-btn { padding: 8px 18px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: 500 14px var(--font); cursor: pointer; transition: background .3s, color .3s; }
.view-btn:hover { color: var(--text); }
.view-btn[aria-selected="true"] { background: var(--accent-strong); color: #fff; }
#projects:not(.is-grid) .toolbar, #projects:not(.is-grid) .bento { display: none; }
#projects.is-grid .showcase, .showcase:not(.ready) { display: none; }
#projects.is-grid .view-switch { margin-bottom: 24px; }

/* ---------- Showcase: pinned horizontal scroll gallery ---------- */
.showcase { --n: 4; --p: 0; position: relative; width: 100vw; margin-left: calc(50% - 50vw); height: calc(var(--n) * 100vh); }
.sc-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.sc-track { display: flex; height: 100%; will-change: transform; }
.sc-slide { --a: 0; --d: 0; position: relative; flex: 0 0 100vw; height: 100%; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 4vw; padding: 90px 7vw 90px 10vw; }
.sc-index { position: absolute; left: 6vw; top: 9vh; font: 700 clamp(140px, 21vw, 320px)/1 var(--display); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px rgba(165,180,252,.14); transform: translateX(calc(var(--d) * -14vw)); pointer-events: none; }
.sc-text { position: relative; z-index: 1; min-width: 0; opacity: var(--a); transform: translateX(calc(var(--d) * -9vw)); }
.sc-kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; font: 600 12px var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.sc-title { margin: 0; font: 700 clamp(44px, 6vw, 100px)/.98 var(--display); letter-spacing: -.045em; }
.sc-title .wd { display: inline-block; white-space: nowrap; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; vertical-align: top; }
.sc-title .ch { display: inline-block; transform: translateY(calc(max(0, 1 - (var(--a) * 1.8 - var(--cf))) * 110%)); }
.sc-tag { margin: 14px 0 0; font: italic 400 clamp(26px, 2.7vw, 42px)/1.1 "Instrument Serif", Georgia, serif; color: #c7d2fe; transform: translateX(calc(var(--d) * -4vw)); }
.sc-tag em { color: var(--accent-hi); }
.sc-desc { max-width: 460px; margin: 18px 0 0; color: var(--muted); }
.sc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.sc-visual { position: relative; display: grid; place-items: center; height: 100%; }
.portal { position: relative; width: min(38vw, 60vh); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; overflow: hidden; border: 1px solid rgba(129,140,248,.28);
  background: radial-gradient(circle at 30% 25%, rgba(129,140,248,.38), transparent 55%), radial-gradient(circle at 75% 80%, rgba(34,211,238,.22), transparent 55%), #0d0d16;
  box-shadow: 0 0 0 14px rgba(99,102,241,.04), 0 0 0 40px rgba(99,102,241,.025), 0 0 140px rgba(99,102,241,.28), inset 0 0 90px rgba(0,0,0,.65);
  transform: scale(calc(.5 + .5 * var(--a))) rotate(calc(var(--d) * -35deg)); }
.rings { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: rgba(165,180,252,.28); stroke-width: 1; transform: rotate(calc(var(--d) * 140deg)); }
.rings circle { stroke-dasharray: 2 10; transform-box: fill-box; transform-origin: center; animation: spin 50s linear infinite; }
.rings circle:nth-child(2) { stroke-dasharray: 40 18; animation-duration: 30s; animation-direction: reverse; stroke: rgba(34,211,238,.25); }
.rings circle:nth-child(3) { stroke-dasharray: 1 6; animation-duration: 20s; }
.portal-code { position: relative; margin: 0; font: clamp(10px, .95vw, 13px)/1.7 ui-monospace, "Cascadia Code", Consolas, monospace; color: #cfcfd8; opacity: calc(.25 + .75 * var(--a)); transform: translateY(calc(var(--d) * 90px)) rotate(calc(var(--d) * 35deg)); }
.portal-mono { position: absolute; bottom: 11%; padding: 6px 14px; border: 1px solid rgba(129,140,248,.4); border-radius: 999px; background: rgba(13,13,22,.85); font: 700 12px ui-monospace, Consolas, monospace; letter-spacing: .3em; color: var(--accent-hi); }
.sc-orb { position: absolute; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: #16161e; font: 600 13px var(--display); white-space: nowrap; opacity: var(--a); box-shadow: 0 12px 30px -12px rgba(0,0,0,.8); }
.sc-orb-0 { top: 16%; left: 4%; transform: translate(calc(var(--d) * -140px), calc(var(--d) * 50px)); }
.sc-orb-1 { top: 34%; right: 0; transform: translate(calc(var(--d) * -240px), calc(var(--d) * -30px)); }
.sc-orb-2 { bottom: 16%; left: 12%; transform: translate(calc(var(--d) * -80px), calc(var(--d) * -70px)); }

.sc-foot { position: absolute; left: 10vw; bottom: 6vh; z-index: 2; display: flex; align-items: center; gap: 10px; font: 600 12px var(--display); letter-spacing: .18em; text-transform: uppercase; }
.sc-clip { display: inline-block; overflow: hidden; vertical-align: bottom; }
#sc-num { display: inline-block; }
.sc-bar { position: relative; width: 120px; height: 1px; margin: 0 8px; background: var(--line-2); overflow: hidden; }
.sc-bar i { position: absolute; inset: 0; background: var(--accent-hi); transform: scaleX(var(--p)); transform-origin: left; }
#sc-name { color: var(--muted); }
.sc-hint { position: absolute; right: 7vw; bottom: 6vh; font: 600 11px var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); opacity: calc(1 - var(--p) * 4); }
.sc-hint span { display: inline-block; animation: bob 1.6s ease-in-out infinite; }
.sc-slide { contain: layout paint; }
.sc-slide:not(.on) .rings circle { animation-play-state: paused; } /* only the visible portal spins */

/* Lite mode (phones / low-core CPUs): keep the sliding chapters, drop per-letter and per-frame heavy work. */
.showcase.lite .sc-title .ch, .showcase.lite .sc-index, .showcase.lite .sc-tag,
.showcase.lite .rings, .showcase.lite .portal-code { transform: none; }
.showcase.lite .rings circle { animation: none; }
.showcase.lite .portal { transform: scale(calc(.8 + .2 * var(--a))); box-shadow: 0 0 0 10px rgba(99,102,241,.05); will-change: transform; }
.showcase.lite .sc-orb { display: none; }

@media (max-width: 860px) {
  .sc-slide { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: center; gap: 8px; padding: 84px 7vw 90px; }
  .sc-visual { order: -1; height: auto; }
  .portal { width: min(62vw, 34vh); }
  .portal-code { font-size: 9px; }
  .sc-orb { display: none; }
  .sc-index { top: 8vh; font-size: 34vw; }
  .sc-title { font-size: clamp(34px, 9vw, 56px); }
  .sc-tag { font-size: 24px; }
  .sc-desc { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .sc-actions { margin-top: 18px; }
  .sc-foot { left: 7vw; right: 84px; bottom: 3vh; }
  .sc-bar { width: 48px; flex: none; }
  #sc-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sc-hint { display: none; }
}

/* ---------- Live API pipeline ---------- */
.mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }
.pipe { padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)); }
.pipe-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.pipe-req { display: flex; align-items: center; flex: 1; min-width: 240px; height: 46px; border: 1px solid var(--line-2); border-radius: 12px; background: #0c0c12; overflow: hidden; transition: border-color .3s; }
.pipe-req:focus-within { border-color: var(--accent); }
.method { padding: 0 14px; height: 100%; display: grid; place-items: center; font: 700 13px ui-monospace, Consolas, monospace; color: #34d399; background: rgba(52,211,153,.08); border-right: 1px solid var(--line); }
.pipe-req select { flex: 1; height: 100%; padding: 0 12px; border: 0; outline: 0; background: none; color: var(--text); font: 500 14px ui-monospace, "Cascadia Code", Consolas, monospace; cursor: pointer; }
.pipe-req option { background: #16161e; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.knob { position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); transition: background .3s; }
.knob::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform .35s var(--ease), background .3s; }
.switch input:checked + .knob { background: var(--accent-strong); border-color: transparent; }
.switch input:checked + .knob::after { transform: translateX(16px); background: #fff; }
.switch input:focus-visible + .knob { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
.switch:has(input:checked) { color: var(--text); }
#pipe-send:disabled { opacity: .6; cursor: progress; }

.pipe-stage { margin: 28px 0; }
.pipe-stage svg { display: block; width: 100%; height: auto; overflow: visible; }
.edge { fill: none; stroke: var(--line-2); stroke-width: 2; stroke-dasharray: 4 6; }
.edge-lit { fill: none; stroke: var(--accent-hi); stroke-width: 2.5; stroke-linecap: round; opacity: 0; transition: opacity .6s; }
.edge-lit.on { opacity: 1; transition: none; }
.edge-lit.res { stroke: #22d3ee; }
.edge-lit.err { stroke: #f87171; }
.node-box { fill: #111118; stroke: var(--line-2); stroke-width: 1; transition: stroke .3s, fill .3s; }
.node-glow { fill: none; stroke: var(--accent); stroke-width: 1; opacity: 0; transition: opacity .3s; }
.node-icon { fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.node-title { fill: var(--text); font: 600 15px var(--display); }
.node-sub { fill: var(--muted); font: 500 11px ui-monospace, Consolas, monospace; }
.node-stat { fill: var(--accent-hi); font: 600 11px ui-monospace, Consolas, monospace; }
.node.active .node-box { stroke: var(--accent-hi); fill: #15152a; }
.node.active .node-glow { opacity: .5; animation: node-pulse 1s ease-in-out infinite; }
.node.active .node-icon, .node.ok .node-icon { stroke: var(--accent-hi); }
.node.ok .node-box { stroke: rgba(129,140,248,.6); }
.node.hit .node-box { stroke: #22d3ee; fill: #0f1d24; }
.node.hit .node-stat { fill: #22d3ee; }
.node.hit .node-icon { stroke: #22d3ee; }
.node.err .node-box { stroke: #f87171; fill: #241214; }
.node.err .node-stat { fill: #f87171; }
.node.err .node-icon { stroke: #f87171; }
@keyframes node-pulse { 50% { opacity: .15; } }
.packet { opacity: 0; transition: opacity .3s; }
.packet.on { opacity: 1; }
.packet.res circle:first-child { fill: #22d3ee; opacity: .35; }
.packet.err circle:first-child { fill: #f87171; opacity: .35; }

.pipe-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pipe-panel { min-width: 0; border: 1px solid var(--line); border-radius: 16px; background: #0c0c12; overflow: hidden; }
.pipe-panel > header { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 10px 16px; border-bottom: 1px solid var(--line); font: 500 12px ui-monospace, Consolas, monospace; color: var(--muted); }
.pipe-panel > header b.ok { color: #34d399; }
.pipe-panel > header b.err { color: #f87171; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; animation: pulse-dot 1.6s infinite; }
.pipe-logs { height: 260px; margin: 0; padding: 12px 16px; list-style: none; overflow-y: auto; font: 12px/1.8 ui-monospace, "Cascadia Code", Consolas, monospace; color: #cfcfd8; scrollbar-width: thin; }
.pipe-logs li { white-space: pre-wrap; overflow-wrap: anywhere; animation: log-in .35s var(--ease) backwards; }
.pipe-logs .t { color: #5b5b6b; margin-right: 8px; }
.pipe-logs .src { color: var(--accent-hi); margin-right: 6px; }
.pipe-logs .ok { color: #34d399; }
.pipe-logs .err { color: #f87171; }
@keyframes log-in { from { opacity: 0; transform: translateX(-8px); } }
.pipe-json { height: 260px; margin: 0; padding: 12px 16px; overflow: auto; font: 12px/1.7 ui-monospace, "Cascadia Code", Consolas, monospace; color: #cfcfd8; scrollbar-width: thin; }
.jl { animation: fade .25s ease backwards; }
.j-n { color: #5eead4; }
.pipe-metrics { margin: 16px 0 0; font-size: 13px; color: var(--muted); text-align: right; }
.pipe-metrics b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Terminal ---------- */
.term-fab { position: fixed; right: 24px; bottom: 24px; z-index: 45; width: 56px; height: 56px; border-radius: 16px; border: 1px solid var(--line-2); background: #14141c; color: var(--accent-hi); font-size: 18px; font-weight: 700; cursor: pointer; box-shadow: 0 12px 32px -10px rgba(0,0,0,.8); animation: fab-in .8s 1.5s var(--ease) backwards, fab-ping 2.6s 3s ease-out 3; transition: transform .4s var(--ease), opacity .3s, background .3s, color .3s; }
.term-fab:hover { transform: translateY(-3px); background: var(--accent-strong); color: #fff; }
.term-fab.hide { opacity: 0; transform: scale(.6); pointer-events: none; }
@keyframes fab-in { from { opacity: 0; transform: translateY(30px) scale(.8); } }
@keyframes fab-ping { 0% { box-shadow: 0 12px 32px -10px rgba(0,0,0,.8), 0 0 0 0 rgba(99,102,241,.55); } 100% { box-shadow: 0 12px 32px -10px rgba(0,0,0,.8), 0 0 0 18px rgba(99,102,241,0); } }
.term { position: fixed; right: 24px; bottom: 24px; z-index: 60; width: min(680px, calc(100vw - 48px)); height: min(440px, calc(100vh - 120px)); display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: 16px; background: rgba(10,10,15,.97); box-shadow: 0 40px 80px -20px rgba(0,0,0,.9), 0 0 0 1px rgba(99,102,241,.15); overflow: hidden; opacity: 0; transform: translateY(24px) scale(.94); transform-origin: bottom right; transition: opacity .35s var(--ease), transform .45s var(--ease); }
.term[hidden] { display: none; }
.term.open { opacity: 1; transform: none; }
.term-bar { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--line); background: #121219; cursor: grab; user-select: none; touch-action: none; }
.term-bar:active { cursor: grabbing; }
.term-title { flex: 1; font: 500 13px ui-monospace, Consolas, monospace; color: var(--muted); }
.term-title .mono { color: var(--accent-hi); margin-right: 6px; }
.term-hint { font: 11px ui-monospace, Consolas, monospace; color: #5b5b6b; padding: 2px 8px; border: 1px solid var(--line); border-radius: 6px; }
.term-x { width: 28px; height: 28px; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.term-x:hover { background: #f87171; color: #fff; }
.term-body { position: relative; flex: 1; overflow-y: auto; padding: 14px 16px; font: 13px/1.65 ui-monospace, "Cascadia Code", Consolas, monospace; color: #d4d4de; cursor: text; scrollbar-width: thin; }
.term-body .ln { white-space: pre-wrap; overflow-wrap: anywhere; animation: fade .2s ease backwards; }
.term-body a { color: var(--accent-hi); }
.term-line { display: flex; gap: 8px; align-items: center; }
.term-line input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font: inherit; caret-color: var(--accent-hi); }
.t-prompt { color: #34d399; white-space: nowrap; }
.t-cmd { color: var(--accent-hi); }
.t-k { color: #a5b4fc; font-weight: 600; }
.t-ok { color: #34d399; }
.t-err { color: #f87171; }
.t-dim { color: #6b6b7b; }
.t-logo { color: var(--accent-hi); }
.term-matrix { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .6s; }
.term-matrix.out { opacity: 0; }

@media (max-width: 760px) {
  .pipe { padding: 16px; }
  .pipe-panels { grid-template-columns: 1fr; }
  .pipe-logs, .pipe-json { height: 200px; }
  .pipe-metrics { text-align: left; }
  #pipe-send { width: 100%; }
}
@media (max-width: 640px) {
  .term { right: 8px; left: 8px; bottom: 8px; width: auto; height: 70vh; }
  .term-hint { display: none; }
  .term-fab { right: 16px; bottom: 16px; width: 50px; height: 50px; }
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .word, .w > span { transform: none; }
  .showcase { height: auto; }
  .sc-stage { position: static; height: auto; }
  .sc-track { flex-direction: column; transform: none !important; }
  .sc-slide { flex-basis: auto; min-height: 100vh; }
}
