/* SKILL. Black display case, white type, and one thing in colour: the cards. A skill card is a trading card with real
   foil; the more a skill is used, the rarer its card (base, foil, holo). Everything else stays quiet. */
/* Fonts are served from this site and preloaded by every page, so text never re-flows after the first paint. */
@font-face { font-family: 'Mona Sans'; font-style: normal; font-weight: 200 900; font-stretch: 75% 125%; font-display: swap;
  src: url(/fonts/mona-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Mona Sans'; font-style: normal; font-weight: 200 900; font-stretch: 75% 125%; font-display: swap;
  src: url(/fonts/mona-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Martian Mono'; font-style: normal; font-weight: 300 600; font-stretch: 75% 112.5%; font-display: swap;
  src: url(/fonts/martian-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* page switches crossfade; the top bar stays put */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; animation-timing-function: cubic-bezier(.16, 1, .3, 1); }

:root {
  --black: #000;
  --raise: #0f0f11;
  --raise-2: #17171a;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --white: #fff;
  --text: #f1f1f3;
  --dim: #9a9aa2;
  --faint: #5d5d65;
  --up: #34c759;
  --down: #ff453a;
  --f-ice: #7df9ff;
  --f-lilac: #b79cff;
  --f-pink: #ff86dc;
  --f-gold: #ffe27a;
  --f-mint: #7cffb2;
  --foil: linear-gradient(115deg, var(--f-pink), var(--f-gold) 18%, var(--f-mint) 36%, var(--f-ice) 54%, var(--f-lilac) 72%, var(--f-pink) 90%);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --sans: 'Mona Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Martian Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --wrap: 1200px;
  --gut: 24px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--black); color: var(--text);
  font: 400 17px/1.55 var(--sans); font-stretch: 100%;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--f-ice); color: #000; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100% - var(--gut) * 2); margin-inline: auto; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { margin: 0; font-weight: 800; font-stretch: 125%; letter-spacing: -.035em; line-height: .98; color: var(--white); text-wrap: balance; }
p { margin: 0; }
.dim { color: var(--dim); }
.mono { font-family: var(--mono); font-stretch: 87.5%; }
.num { font-variant-numeric: tabular-nums; }

/* ---- top bar ------------------------------------------------------------------------------------------------------- */
.bar { view-transition-name: bar; position: sticky; top: 0; z-index: 40; background: rgba(0, 0, 0, .72); backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.bar.scrolled { border-bottom-color: var(--line); }
.bar .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 9px; justify-self: start; font-weight: 800; font-stretch: 125%; font-size: 21px; letter-spacing: -.04em; color: var(--white); }
.logo img { width: 26px; height: 26px; }
.nav { display: flex; gap: 30px; font-size: 15px; }
.nav a { color: var(--dim); position: relative; padding: 6px 0; transition: color .2s; }
.nav a::after { content: ''; position: absolute; left: 50%; right: 50%; bottom: 0; height: 1px; background: var(--white); transition: left .35s var(--ease), right .35s var(--ease); }
.nav a:hover, .nav a[aria-current='page'] { color: var(--white); }
.nav a:hover::after, .nav a[aria-current='page']::after { left: 0; right: 0; }
.bar .end { justify-self: end; display: flex; align-items: center; gap: 14px; }
.token { font-size: 13px; color: var(--dim); display: none; align-items: center; gap: 8px; }
.token.on { display: inline-flex; }
.token b { color: var(--white); font-weight: 600; }
.menu { display: none; }

/* ---- buttons ------------------------------------------------------------------------------------------------------- */
.btn {
  --h: 46px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 24px; border-radius: 980px; border: 1px solid var(--white); cursor: pointer;
  background: var(--white); color: #000; font-weight: 600; font-size: 15px; letter-spacing: -.01em; overflow: hidden; isolation: isolate;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.btn::before { content: ''; position: absolute; inset: -2px; z-index: -1; background: var(--foil); background-size: 200% 100%; opacity: 0; transition: opacity .35s var(--ease), background-position 1.2s var(--ease); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 40px -12px rgba(183, 156, 255, .55); }
.btn:hover::before { opacity: 1; background-position: 100% 0; }
.btn:active { transform: translateY(1px) scale(.985); }
.btn.ghost { background: transparent; color: var(--white); border-color: var(--line-2); }
.btn.ghost::before { background: var(--white); transform: translateX(-101%); opacity: 1; transition: transform .45s var(--ease); }
.btn.ghost:hover { color: #000; box-shadow: none; }
.btn.ghost:hover::before { transform: none; }
.btn.small { --h: 38px; padding: 0 18px; font-size: 14px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn[disabled]::before { display: none; }
.link { color: var(--white); background: linear-gradient(currentColor, currentColor) 50% 100% / 0 1px no-repeat; transition: background-size .35s var(--ease); padding-bottom: 2px; }
.link:hover { background-size: 100% 1px; }

/* ---- the skill card ------------------------------------------------------------------------------------------------- */
.card { --w: 252px; --px: .5; --py: .5; --rx: 0deg; --ry: 0deg; --s: 1; --hue: 220;
  display: block; text-align: left; width: var(--w); aspect-ratio: 63 / 88; perspective: 900px; flex: none; -webkit-tap-highlight-color: transparent; container-type: inline-size; }
.card-in {
  position: relative; width: 100%; height: 100%; border-radius: 5.5cqw; overflow: hidden; isolation: isolate;
  transform: rotateX(var(--rx)) rotateY(var(--ry)) scale(var(--s));
  background:
    linear-gradient(160deg, hsl(var(--hue) 34% 22%), hsl(var(--hue) 28% 9%) 55%, hsl(calc(var(--hue) + 40) 30% 7%));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 0 0 1px rgba(255, 255, 255, .07) inset,
              0 30px 60px -28px rgba(0, 0, 0, .9), 0 14px 30px -18px hsl(var(--hue) 70% 40% / .35);
  transition: box-shadow .4s var(--ease);
}
/* a GPU layer only while it's moving: dozens of permanent ones made Chrome drop cards */
.card:hover .card-in, .card.live .card-in { will-change: transform; }
.card:hover .card-in { box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 0 0 1px rgba(255, 255, 255, .12) inset,
  0 40px 80px -30px rgba(0, 0, 0, .95), 0 24px 60px -24px hsl(var(--hue) 80% 55% / .5); }
.card-art { position: absolute; left: 6.5%; right: 6.5%; top: 5%; height: 50%; border-radius: 3cqw; overflow: hidden; background: hsl(var(--hue) 30% 12%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }
.card-art img { width: 100%; height: 100%; object-fit: cover; }
.card-art .gen { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 900; font-stretch: 125%; font-size: 34cqw; letter-spacing: -.06em; color: rgba(255, 255, 255, .92);
  background: radial-gradient(120% 90% at 30% 20%, hsl(var(--hue) 90% 62%), hsl(calc(var(--hue) + 60) 80% 40%) 45%, hsl(calc(var(--hue) + 120) 70% 18%)); }
.card-lv { position: absolute; top: 7.5%; right: 10%; z-index: 2; font: 700 4.3cqw/1 var(--sans); font-stretch: 125%; padding: .45em .6em; border-radius: 99px; background: rgba(0, 0, 0, .62); color: var(--white); letter-spacing: -.01em; }
.card-body { position: absolute; left: 7.5%; right: 7.5%; top: 58%; bottom: 5%; display: flex; flex-direction: column; }
.card-name { font-weight: 800; font-stretch: 125%; font-size: 7.4cqw; line-height: 1.05; letter-spacing: -.03em; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-tick { font-size: 4.8cqw; color: rgba(255, 255, 255, .58); margin-top: .25em; font-weight: 600; }
.card-text { margin-top: .7em; font-size: 4.7cqw; line-height: 1.38; color: rgba(255, 255, 255, .78); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-text b { color: var(--white); font-weight: 600; }
.card-stats { margin-top: auto; display: flex; justify-content: space-between; gap: 8px; font-size: 4.5cqw; color: rgba(255, 255, 255, .6); border-top: 1px solid rgba(255, 255, 255, .1); padding-top: .65em; }
.card-stats b { color: var(--white); font-weight: 700; }
/* foil: base cards only catch the light; foil cards have a shimmering frame; holo cards are foil all over */
.card-foil, .card-glare { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; }
.card-glare { z-index: 3; mix-blend-mode: overlay; opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s .4s;
  background: radial-gradient(farthest-corner circle at calc(var(--px) * 100%) calc(var(--py) * 100%), rgba(255, 255, 255, .55), rgba(255, 255, 255, .08) 32%, rgba(0, 0, 0, .35) 90%); }
.card:hover .card-glare, .card.live .card-glare { opacity: 1; visibility: visible; transition: opacity .4s var(--ease); }
.card-foil { z-index: 2; mix-blend-mode: color-dodge; opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s .4s;
  background-image: repeating-linear-gradient(110deg, var(--f-pink) 0%, var(--f-gold) 6%, var(--f-mint) 12%, var(--f-ice) 18%, var(--f-lilac) 24%, var(--f-pink) 30%),
                    repeating-linear-gradient(-45deg, rgba(0, 0, 0, .55) 0 2px, transparent 2px 5px);
  background-size: 320% 320%, 100% 100%; background-blend-mode: hard-light;
  background-position: calc(var(--px) * 100%) calc(var(--py) * 100%), 0 0; filter: brightness(.62) contrast(1.6) saturate(1.3); }
.r-foil .card-foil, .r-holo .card-foil, .card:hover .card-foil, .card.live .card-foil { visibility: visible; transition: opacity .4s var(--ease); }
.r-foil .card-foil { opacity: .55; -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); padding: 3.2%; }
.r-holo .card-foil { opacity: .5; }
.r-holo:hover .card-foil, .r-holo.live .card-foil { opacity: .9; }
.r-foil:hover .card-foil, .r-foil.live .card-foil { opacity: .95; }
.card-rare { position: absolute; z-index: 4; left: 50%; top: 55.2%; transform: translate(-50%, -50%); font: 700 3.6cqw/1 var(--sans); font-stretch: 125%; letter-spacing: .02em; padding: .5em .8em; border-radius: 99px; color: #000; background: var(--foil); background-size: 300% 100%; display: none; }
.r-holo .card-rare, .r-foil .card-rare { display: block; }
.r-foil .card-rare { background: #e8e8ee; }
.card.building .card-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .22) 50%, transparent 70%); background-size: 250% 100%; animation: sheen 1.8s linear infinite; }
@keyframes sheen { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.card.small { --w: 58px; }
.card.small .card-body, .card.small .card-lv, .card.small .card-rare { display: none; }
.card.small .card-art { top: 6%; left: 7%; right: 7%; height: 62%; }

/* ---- home: hero ---------------------------------------------------------------------------------------------------- */
.hero { position: relative; padding: clamp(44px, 7vh, 88px) 0 0; text-align: center; overflow: clip; }
.hero h1 { font-size: clamp(44px, 6.3vw, 92px); max-width: 13.5ch; margin-inline: auto; }
.hero .lede { margin: 22px auto 0; max-width: 46ch; font-size: clamp(17px, 1.6vw, 20px); color: var(--dim); line-height: 1.5; }
.hero .cta { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.stage { --glow: 200; position: relative; margin: clamp(40px, 6vh, 72px) auto 0; width: min(1120px, 100%); height: 560px; }
.stage::before { content: ''; position: absolute; inset: -120px -200px -60px; z-index: -1; pointer-events: none; transition: background 1.6s var(--ease);
  background: radial-gradient(50% 55% at 62% 45%, hsl(var(--glow) 80% 45% / .16), transparent 70%), radial-gradient(30% 40% at 18% 55%, hsl(calc(var(--glow) + 40) 80% 50% / .12), transparent 70%); }
.hand { position: absolute; left: 0; top: 40px; width: 340px; height: 440px; }
.hand .card { position: absolute; left: 40px; top: 20px; --w: 236px; transition: transform .9s var(--ease), opacity .6s var(--ease); }
.hand .card:nth-child(1) { transform: rotate(-11deg) translate(-26px, 18px); }
.hand .card:nth-child(2) { transform: rotate(-3deg) translate(8px, 0); }
.hand .card:nth-child(3) { transform: rotate(6deg) translate(44px, 10px); }
.hand .card.lift { transform: rotate(0deg) translate(80px, -36px) scale(1.04); z-index: 5; }
.hand .card.gone { opacity: 0; transform: rotate(0deg) translate(360px, 240px) scale(.25); }
.chat {
  position: absolute; right: 0; top: 0; width: min(720px, 100%); height: 540px; text-align: left; display: flex; flex-direction: column;
  border-radius: 22px; background: linear-gradient(180deg, #121215, #0b0b0d); box-shadow: 0 0 0 1px var(--line) inset, 0 60px 120px -40px rgba(0, 0, 0, .9), 0 0 120px -30px rgba(125, 249, 255, .08);
}
.chat-top { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--dim); }
.chat-top i { width: 11px; height: 11px; border-radius: 50%; background: #2a2a2e; display: inline-block; }
.chat-top .who { color: var(--white); font-weight: 600; margin-left: 6px; }
.chat-top .eq { margin-left: auto; font-size: 13px; }
.chat-log { flex: 1; overflow: hidden; padding: 24px 24px 8px; display: flex; flex-direction: column; gap: 16px; justify-content: flex-end; }
.msg { max-width: 82%; font-size: 15.5px; line-height: 1.55; opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.msg.in { opacity: 1; transform: none; }
.msg.me { align-self: flex-end; background: #232327; padding: 10px 16px; border-radius: 18px 18px 6px 18px; color: var(--white); }
.msg.ai { align-self: flex-start; color: var(--text); }
.use { align-self: flex-start; width: min(520px, 100%); border-radius: 14px; background: var(--raise-2); box-shadow: 0 0 0 1px var(--line) inset; overflow: hidden; opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.use.in { opacity: 1; transform: none; }
.use-head { display: flex; align-items: center; gap: 12px; padding: 10px 14px; font-size: 14px; }
.use-head .card { --w: 26px; }
.use-head .card .card-body, .use-head .card .card-lv, .use-head .card .card-rare { display: none; }
.use-head .card .card-art { inset: 8%; height: auto; }
.use-head b { color: var(--white); font-weight: 600; }
.use-head .t { margin-left: auto; color: var(--faint); font-size: 13px; font-variant-numeric: tabular-nums; }
.use.running .use-head b { background: linear-gradient(90deg, var(--dim) 30%, var(--white) 50%, var(--dim) 70%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 1.4s linear infinite; }
.use pre { margin: 0; padding: 12px 16px 14px; border-top: 1px solid var(--line); font: 400 12px/1.65 var(--mono); font-stretch: 87.5%; color: #c9c9d1; max-height: 0; overflow: hidden; transition: max-height .8s var(--ease); white-space: pre; }
.use.open pre { max-height: 220px; }
.k { color: #8fb8ff; } .s { color: #b5f2c2; } .n { color: var(--f-gold); }
.chat-foot { padding: 14px 16px 16px; }
.ask { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 14px; border-radius: 16px; background: #1a1a1d; box-shadow: 0 0 0 1px var(--line) inset; }
.tray { display: flex; gap: 6px; align-items: center; min-height: 36px; }
.tray .card { --w: 26px; animation: snap .7s var(--ease); }
.tray .card .card-body, .tray .card .card-lv, .tray .card .card-rare { display: none; }
.tray .card .card-art { inset: 8%; height: auto; }
.tray .card .card-foil { opacity: .9; visibility: visible; }
@keyframes snap { from { transform: translateY(-30px) scale(1.8) rotate(-10deg); opacity: 0; } to { transform: none; opacity: 1; } }
.ask .ph { flex: 1; color: var(--faint); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ask .send { width: 34px; height: 34px; border-radius: 50%; background: var(--white); display: grid; place-items: center; flex: none; }
.caret::after { content: ''; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -.15em; background: currentColor; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---- home: sections ------------------------------------------------------------------------------------------------- */
.section { padding: clamp(80px, 12vw, 150px) 0 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(32px, 4.2vw, 56px); max-width: 16ch; }
.section-head p { color: var(--dim); max-width: 42ch; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); counter-reset: step; }
.steps li { background: var(--black); padding: 34px 32px 38px; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line-2) inset; font-weight: 700; font-size: 14px; color: var(--white); margin-bottom: 26px; }
.steps h3 { font-size: 23px; letter-spacing: -.025em; line-height: 1.15; }
.steps p { margin-top: 12px; color: var(--dim); font-size: 16px; }
.works { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--dim); font-size: 15px; justify-content: center; }
.works b { color: var(--white); font-weight: 600; }
.feed { margin-top: 64px; border-top: 1px solid var(--line); }
.feed-row { display: grid; grid-template-columns: 110px 1fr 1fr 90px 110px; gap: 16px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 15px; animation: rowin .7s var(--ease); }
@keyframes rowin { from { background: rgba(125, 249, 255, .07); } to { background: transparent; } }
.feed-row .t { color: var(--white); font-weight: 700; }
.feed-row .tool { font-family: var(--mono); font-stretch: 87.5%; font-size: 13px; color: var(--text); }
.feed-row .ok { color: var(--up); } .feed-row .bad { color: var(--down); }
.feed-row .ago, .feed-row .ms { color: var(--dim); text-align: right; font-variant-numeric: tabular-nums; }
.feed-empty { padding: 28px 4px; color: var(--dim); border-bottom: 1px solid var(--line); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 40px 28px; justify-items: center; }
.grid .card { width: 100%; max-width: 272px; }
.empty { padding: 60px 0; text-align: center; color: var(--dim); }
.empty .btn { margin-top: 22px; }
.closing { text-align: center; padding: clamp(100px, 14vw, 180px) 0; }
.closing h2 { font-size: clamp(40px, 6vw, 84px); max-width: 14ch; margin-inline: auto; }
.closing .cta { margin-top: 34px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- footer -------------------------------------------------------------------------------------------------------- */
.foot { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--faint); font-size: 14px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.foot nav { display: flex; gap: 24px; flex-wrap: wrap; }
.foot a:hover { color: var(--white); }

/* ---- skills page --------------------------------------------------------------------------------------------------- */
.page-head { padding: 72px 0 40px; }
.page-head h1 { font-size: clamp(40px, 5.6vw, 76px); }
.page-head p { margin-top: 18px; color: var(--dim); max-width: 52ch; font-size: 18px; }
.tools-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 44px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 28px; }
.tabs button { background: none; border: 0; padding: 14px 0; cursor: pointer; color: var(--dim); font-size: 15px; position: relative; }
.tabs button::after { content: ''; position: absolute; left: 50%; right: 50%; bottom: -1px; height: 2px; background: var(--white); transition: left .35s var(--ease), right .35s var(--ease); }
.tabs button[aria-selected='true'] { color: var(--white); }
.tabs button[aria-selected='true']::after { left: 0; right: 0; }
.tabs button:hover { color: var(--white); }
#examples-wrap.lead { padding-top: 0; }
#examples-wrap.lead .section-head h2 { font-size: clamp(26px, 2.6vw, 34px); }
.search { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-radius: 12px; background: var(--raise); box-shadow: 0 0 0 1px var(--line) inset; margin-bottom: 10px; }
.search input { background: none; border: 0; outline: 0; width: 220px; font-size: 15px; }
.search input::placeholder { color: var(--faint); }

/* ---- one skill ----------------------------------------------------------------------------------------------------- */
.skill-top { display: grid; grid-template-columns: auto 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; padding: 64px 0 24px; }
.skill-top .card { --w: clamp(260px, 26vw, 340px); }
.skill-top h1 { font-size: clamp(40px, 5vw, 72px); }
.skill-top .tick { margin-top: 12px; font-size: 18px; color: var(--dim); display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px; border-radius: 99px; font-size: 13px; font-weight: 600; box-shadow: 0 0 0 1px var(--line-2) inset; color: var(--text); }
.pill.build { color: #000; background: var(--foil); background-size: 300% 100%; animation: drift 6s linear infinite; box-shadow: none; }
.pill.ex { color: var(--dim); }
@keyframes drift { to { background-position: 300% 0; } }
.skill-top .idea { margin-top: 22px; font-size: clamp(19px, 1.8vw, 23px); line-height: 1.45; color: var(--text); max-width: 34ch; }
.skill-top .cta { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.stats { margin-top: 40px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 620px; }
.stats div { padding-right: 16px; }
.stats b { display: block; font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; font-stretch: 112%; letter-spacing: -.03em; color: var(--white); }
.stats span { font-size: 14px; color: var(--dim); }
.ca { margin-top: 26px; display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--dim); background: none; border: 0; padding: 0; cursor: pointer; }
.ca { max-width: 100%; }
.ca code { font-family: var(--mono); font-stretch: 87.5%; color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca:hover code { color: var(--white); }
.block { padding: clamp(72px, 9vw, 120px) 0 0; }
.block > .wrap > h2, .block h2.t { font-size: clamp(30px, 3.4vw, 46px); }
.block .sub { margin-top: 14px; color: var(--dim); max-width: 60ch; }
.install { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.install > div, .skill-top > div { min-width: 0; }
.seg { max-width: 100%; }
.urlbox { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px; border-radius: 16px; background: var(--raise); box-shadow: 0 0 0 1px var(--line-2) inset; }
.urlbox code { flex: 1; font: 400 14px/1.4 var(--mono); font-stretch: 87.5%; color: var(--white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.install ol { margin: 26px 0 0; padding-left: 22px; color: var(--text); }
.install ol li { margin: 0 0 10px; padding-left: 4px; }
.install ol li::marker { color: var(--faint); font-variant-numeric: tabular-nums; }
.install kbd, .install em { font-style: normal; font-weight: 600; color: var(--white); font-family: inherit; }
.install pre { margin: 14px 0 0; padding: 14px 16px; border-radius: 12px; background: var(--raise); box-shadow: 0 0 0 1px var(--line) inset; font: 400 12.5px/1.6 var(--mono); font-stretch: 87.5%; overflow-x: auto; color: var(--text); }
.toolsl { display: grid; gap: 12px; }
.toolc { padding: 20px 22px; border-radius: 16px; background: var(--raise); box-shadow: 0 0 0 1px var(--line) inset; }
.toolc h3 { font: 600 15px/1.3 var(--mono); font-stretch: 87.5%; letter-spacing: 0; color: var(--white); }
.toolc p { margin-top: 8px; color: var(--dim); font-size: 15px; }
.toolc .args { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.toolc .args span { font: 400 12px/1 var(--mono); font-stretch: 87.5%; padding: 6px 9px; border-radius: 8px; background: var(--raise-2); color: var(--text); }
.toolc .args span i { font-style: normal; color: var(--faint); }

/* try it */
.try { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.try form { padding: 28px; background: var(--raise); display: flex; flex-direction: column; gap: 18px; }
.field { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { font-size: 14px; color: var(--dim); display: flex; justify-content: space-between; gap: 10px; }
.try .field label b { color: var(--white); font-weight: 600; font-family: var(--mono); font-stretch: 87.5%; font-size: 13px; }
.field label span { text-align: right; }
.input, .field input, .field textarea, .field select {
  width: 100%; border: 0; border-radius: 12px; background: var(--black); box-shadow: 0 0 0 1px var(--line-2) inset; padding: 12px 14px; font-size: 15px; outline: 0; transition: box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { box-shadow: 0 0 0 1px var(--white) inset; }
.field textarea { resize: vertical; min-height: 92px; line-height: 1.45; }
.field .hint { font-size: 13px; color: var(--faint); }
.try .out { position: relative; background: #070708; padding: 22px 24px; min-height: 360px; display: flex; flex-direction: column; }
.try .out-head { display: flex; justify-content: space-between; font-size: 13px; color: var(--dim); margin-bottom: 14px; }
.try .out pre { margin: 0; font: 400 12.5px/1.65 var(--mono); font-stretch: 87.5%; white-space: pre-wrap; word-break: break-word; color: #d6d6de; overflow: auto; max-height: 520px; }
.try .out .wait { margin: auto; color: var(--faint); text-align: center; max-width: 30ch; }
.seg { align-self: flex-start; display: inline-flex; padding: 3px; border-radius: 99px; background: var(--black); box-shadow: 0 0 0 1px var(--line-2) inset; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 99px; cursor: pointer; font-size: 13.5px; color: var(--dim); font-family: var(--mono); font-stretch: 87.5%; }
.seg button[aria-pressed='true'] { background: var(--white); color: #000; }

/* the build: live or replayed */
.live { margin-top: 32px; border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); background: #070708; }
.live-top { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--dim); flex-wrap: wrap; }
.live-top .state { color: var(--white); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.live-top .state.on::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--f-mint); box-shadow: 0 0 12px var(--f-mint); }
.live-top select { margin-left: auto; background: var(--raise); border: 0; border-radius: 10px; padding: 7px 10px; box-shadow: 0 0 0 1px var(--line-2) inset; font-size: 13px; }
.live-body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); height: 620px; }
.code { position: relative; overflow: auto; padding: 18px 0; border-right: 1px solid var(--line); font: 400 12.5px/1.7 var(--mono); font-stretch: 87.5%; counter-reset: ln; }
.code .ln { display: block; padding: 0 18px 0 58px; position: relative; white-space: pre; color: #cfcfd6; min-height: 1.7em; }
.code .ln::before { counter-increment: ln; content: counter(ln); position: absolute; left: 0; width: 40px; text-align: right; color: #3c3c43; }
.code .cur { display: inline-block; width: 7px; height: 1.2em; vertical-align: -.2em; background: var(--f-ice); animation: blink 1s steps(1) infinite; }
.code .cm { color: #6b6b74; } .code .kw { color: #ff86dc; } .code .st { color: #b5f2c2; } .code .nm { color: var(--f-gold); } .code .fn { color: #8fb8ff; }
.code .empty { color: var(--faint); padding: 0 24px; font-family: var(--sans); font-size: 15px; }
.log { overflow: auto; padding: 18px 18px 30px; display: flex; flex-direction: column; gap: 14px; font-size: 14.5px; }
.ev { line-height: 1.5; animation: rowin .6s var(--ease); }
.ev.say { color: var(--text); }
.ev.look, .ev.call, .ev.file { color: var(--dim); font-size: 13.5px; display: flex; gap: 8px; }
.ev.look::before { content: '↗'; color: var(--faint); }
.ev.file::before { content: '●'; color: var(--f-ice); font-size: 9px; line-height: 2.2; }
.ev.test { border-radius: 12px; background: var(--raise); box-shadow: 0 0 0 1px var(--line) inset; padding: 12px 14px; font-size: 13.5px; }
.ev.test .h { font-weight: 600; color: var(--white); display: flex; gap: 8px; align-items: center; }
.ev.test .h .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--up); }
.ev.test.fail .h .dot { background: var(--down); }
.ev.test .r { margin-top: 8px; font: 400 11.5px/1.6 var(--mono); font-stretch: 87.5%; color: var(--dim); word-break: break-word; }
.ev.test .r b { color: var(--text); font-weight: 400; }
.ev.ship { padding: 16px; border-radius: 14px; color: #000; background: var(--foil); background-size: 200% 100%; font-weight: 600; }
.ev.stop { color: var(--down); }
.ev.start { color: var(--faint); font-size: 13px; }
.versions { margin-top: 28px; border-top: 1px solid var(--line); }
.versions div { display: grid; grid-template-columns: 70px 1fr 140px; gap: 16px; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
.versions b { color: var(--white); }
.versions span:last-child { color: var(--dim); text-align: right; }
.source { margin-top: 32px; border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); background: #070708; }
.source .code { max-height: 640px; border-right: 0; }

/* ---- launch -------------------------------------------------------------------------------------------------------- */
.launch { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(40px, 6vw, 96px); padding: 64px 0 120px; align-items: start; }
.launch h1 { font-size: clamp(40px, 5vw, 68px); }
.launch .lede { margin-top: 18px; color: var(--dim); font-size: 18px; max-width: 48ch; }
.launch form { margin-top: 40px; display: flex; flex-direction: column; gap: 22px; }
.launch .row { display: grid; grid-template-columns: 1fr 180px; gap: 16px; }
.ideas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.ideas button { border: 0; border-radius: 99px; padding: 7px 13px; font-size: 13.5px; cursor: pointer; background: var(--raise); box-shadow: 0 0 0 1px var(--line) inset; color: var(--dim); transition: color .2s, box-shadow .2s; }
.ideas button:hover { color: var(--white); box-shadow: 0 0 0 1px var(--line-2) inset; }
.field .drop { justify-content: flex-start; font-size: 15px; }
.drop { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 14px; border: 1px dashed var(--line-2); cursor: pointer; transition: border-color .2s, background .2s; }
.drop.over, .drop:hover { border-color: var(--white); background: var(--raise); }
.drop img, .drop .ph { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--raise-2); flex: none; }
.drop span { color: var(--dim); font-size: 15px; }
.drop b { color: var(--white); font-weight: 600; }
.summary { border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 8px; font-size: 15px; color: var(--dim); }
.summary div { display: flex; justify-content: space-between; }
.summary b { color: var(--white); font-weight: 600; }
.status { min-height: 1.5em; font-size: 15px; color: var(--dim); }
.status.bad { color: var(--down); } .status.good { color: var(--up); }
.preview { position: sticky; top: 104px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.preview .card { --w: 340px; }
.preview > p { font-size: 14px; color: var(--faint); text-align: center; max-width: 30ch; }

/* ---- how ----------------------------------------------------------------------------------------------------------- */
.prose { max-width: 720px; padding-bottom: 40px; }
.prose h2 { font-size: clamp(28px, 3vw, 40px); margin: 72px 0 18px; }
.prose p, .prose li { color: #c9c9cf; font-size: 18px; line-height: 1.65; }
.prose p + p { margin-top: 16px; }
.prose ul { padding-left: 22px; margin: 16px 0 0; }
.prose li { margin-bottom: 10px; }
.prose b { color: var(--white); font-weight: 600; }
.prose a { text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; }
.qa { border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { cursor: pointer; list-style: none; padding: 22px 0; font-size: 19px; font-weight: 600; color: var(--white); display: flex; justify-content: space-between; gap: 20px; }
.qa summary::after { content: '+'; color: var(--dim); font-weight: 400; transition: transform .35s var(--ease); }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa details p { padding: 0 0 22px; color: var(--dim); font-size: 17px; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; z-index: 90; padding: 12px 18px; border-radius: 12px; background: var(--white); color: #000; font-size: 14px; font-weight: 600; transition: opacity .3s var(--ease), transform .3s var(--ease); pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.skel { border-radius: 10px; background: linear-gradient(90deg, var(--raise) 30%, var(--raise-2) 50%, var(--raise) 70%); background-size: 250% 100%; animation: sheen 1.6s linear infinite; }

/* ---- small screens ------------------------------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .stage { height: auto; display: flex; flex-direction: column; align-items: center; gap: 0; }
  .hand { position: relative; left: auto; top: auto; width: 300px; height: 300px; }
  .hand .card { --w: 180px; left: 60px; top: 10px; }
  .chat { position: relative; right: auto; top: auto; margin-top: -40px; z-index: 2; }
  .install, .try, .live-body { grid-template-columns: minmax(0, 1fr); }
  .live-body { height: auto; }
  .code { max-height: 460px; border-right: 0; border-bottom: 1px solid var(--line); }
  .log { max-height: 420px; }
  .launch { grid-template-columns: 1fr; }
  .preview { position: static; order: -1; }
  .preview .card { --w: 260px; }
}
@media (max-width: 760px) {
  :root { --gut: 16px; }
  body { font-size: 16px; }
  .bar .wrap { grid-template-columns: auto 1fr auto; height: 58px; }
  .nav { display: none; }
  .nav.open { display: flex; position: absolute; top: 58px; left: 0; right: 0; flex-direction: column; gap: 0; background: #000; border-bottom: 1px solid var(--line); padding: 8px var(--gut) 16px; }
  .nav.open a { padding: 14px 0; font-size: 17px; color: var(--white); border-bottom: 1px solid var(--line); }
  .nav.open a::after { display: none; }
  .menu { display: grid; place-items: center; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; justify-self: end; grid-column: 3; }
  .bar .end { display: none; }
  .hero h1 { font-size: clamp(40px, 11vw, 56px); }
  .chat { height: 500px; border-radius: 18px; }
  .chat-log { padding: 18px 16px 6px; }
  .msg { font-size: 14.5px; max-width: 90%; }
  .steps { grid-template-columns: 1fr; }
  .feed-row { grid-template-columns: 1fr 1fr auto; }
  .feed-row .ago, .feed-row .ms:not(:last-child) { display: none; }
  .feed-row .res { display: none; }
  .skill-top { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding-top: 40px; }
  .skill-top h1 { font-size: clamp(34px, 10vw, 48px); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  .skill-top .tick, .skill-top .cta { justify-content: center; }
  .skill-top .idea { margin-inline: auto; }
  .skill-top > div { width: 100%; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 0; margin-inline: auto; }
  .launch .row { grid-template-columns: 1fr; }
  .search input { width: 140px; }
  .versions div { grid-template-columns: 54px 1fr; }
  .versions span:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
