/* Vibecoder Skills. Plain CSS, no build step. */

/* ---------- Tokens ---------- */
:root {
  --eo: cubic-bezier(.16, 1, .3, 1);
  --sp: cubic-bezier(.34, 1.56, .64, 1);
  /* Forest (default) */
  --paper: #E8ECE4; --ink: #0F2419; --acc: #A8E63C; --acc-d: #A8E63C; --acc-l: #3E8E1F; --on-acc: #0F2419;
  --surface: #F4F6F1; --text2: #24372C; --mute: #4D5F53; --mute-d: #9DB1A3; --text2-d: #C3D1C6;
  --surface-d: #163226; --deep: #0A1A12; --ink-2: #1E3B2D; --ink-3: #2C4B3B;
  --chip-ref: #D3DCCF; --soft: #DCE3D7; --track: #D6DDD1;
  /* Derived lines and washes */
  --ln: color-mix(in srgb, var(--ink) 14%, transparent);
  --ln-s: color-mix(in srgb, var(--ink) 8%, transparent);
  --ln-l: color-mix(in srgb, var(--ink) 12%, transparent);
  --ln-h: color-mix(in srgb, var(--ink) 16%, transparent);
  --ln-m: color-mix(in srgb, var(--ink) 22%, transparent);
  --dl: color-mix(in srgb, var(--paper) 12%, transparent);
  --dl-s: color-mix(in srgb, var(--paper) 8%, transparent);
  --dl-m: color-mix(in srgb, var(--paper) 26%, transparent);
}
[data-pal="signal"] {
  --paper: #F0F0EE; --ink: #121212; --acc: #FF4A1C; --acc-d: #FF4A1C; --acc-l: #FF4A1C; --on-acc: #121212;
  --surface: #FAFAF8; --text2: #2B2B29; --mute: #5C5C59; --mute-d: #A3A39E; --text2-d: #C9C9C4;
  --surface-d: #1B1B1A; --deep: #0A0A0A; --ink-2: #2A2A28; --ink-3: #3A3A38;
  --chip-ref: #D9D9D4; --soft: #E6E6E2; --track: #E2E2DE;
}
[data-pal="plum"] {
  --paper: #F1EBE8; --ink: #271420; --acc: #FF9F68; --acc-d: #FF9F68; --acc-l: #D9622B; --on-acc: #271420;
  --surface: #FAF6F4; --text2: #3D2A34; --mute: #6A5560; --mute-d: #B9A4AE; --text2-d: #D9C8CF;
  --surface-d: #33202B; --deep: #1C0E17; --ink-2: #3A2532; --ink-3: #4A3240;
  --chip-ref: #E2D6D9; --soft: #E7DEDD; --track: #E4DADA;
}
[data-pal="cobalt"] {
  --paper: #E9EBEF; --ink: #13161C; --acc: #3355FF; --acc-d: #8FA2FF; --acc-l: #3355FF; --on-acc: #FFFFFF;
  --surface: #F6F7F9; --text2: #2A2F38; --mute: #58606C; --mute-d: #A1A8B4; --text2-d: #C6CBD4;
  --surface-d: #1C2029; --deep: #0B0D12; --ink-2: #262B36; --ink-3: #363C49;
  --chip-ref: #D6D9E0; --soft: #DEE1E7; --track: #DCDFE5;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'Instrument Sans', system-ui, sans-serif; min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text2); }
.dark a:not(.cta) { color: var(--paper); }
.dark a:not(.cta):hover { color: var(--acc-d); }
.onacc a:not(.cta) { color: var(--on-acc); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.dark :focus-visible { outline-color: var(--paper); }
.onacc :focus-visible { outline-color: var(--on-acc); }
.disp { font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-optical-sizing: auto; }
.mono { font-family: 'Martian Mono', ui-monospace, monospace; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.wrap { max-width: 1280px; margin: 0 auto; padding-left: clamp(20px, 5vw, 64px); padding-right: clamp(20px, 5vw, 64px); }
.btn { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; padding: 0; margin: 0; -webkit-tap-highlight-color: transparent; }
.skip { position: absolute; left: 12px; top: -64px; z-index: 100; background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 999px; text-decoration: none; transition: top 200ms var(--eo); }
.skip:focus { top: 12px; color: var(--paper); }

/* ---------- Header and footer ---------- */
.hdr { padding-top: 18px; padding-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: inherit; }
.mark { position: relative; width: 16px; height: 16px; border-radius: 5px; background: var(--ink); }
.mark::after { content: ''; position: absolute; left: 5px; top: 5px; width: 6px; height: 6px; border-radius: 2px; background: var(--acc); }
.brand-t { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.nav { display: flex; align-items: center; gap: clamp(6px, 2vw, 26px); flex-wrap: wrap; font-size: 15px; font-weight: 500; }
.navlink { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; text-decoration: none; color: inherit; }
.navlink::after { content: ''; position: absolute; left: 4px; right: 4px; bottom: 9px; height: 2px; border-radius: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 280ms var(--eo); }
.navlink:hover::after { transform: scaleX(1); }
.navlink.on::after { transform: scaleX(1); background: var(--acc-l); }
.dark .navlink.on::after { background: var(--acc-d); }
.pals { display: inline-flex; align-items: center; margin-left: 4px; }
.pal-b { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.pal-b span { display: block; width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, var(--c1) 50%, var(--c2) 50%); box-shadow: 0 0 0 1px var(--ln-m); transition: transform 320ms var(--sp), box-shadow 260ms var(--eo); }
.pal-b:hover span { transform: scale(1.15); }
.pal-b[aria-pressed="true"] span { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.foot { background: var(--ink); color: var(--paper); overflow: hidden; }
.foot-in { padding-top: clamp(72px, 9vw, 112px); padding-bottom: 40px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; align-items: flex-start; }
.foot-note { margin: 0; max-width: 520px; font-size: 15px; line-height: 1.6; color: var(--text2-d); }
.foot-nav { display: grid; grid-template-columns: repeat(2, auto); gap: 0 36px; font-size: 15px; }
.foot-by { margin: 44px 0 0; font-size: 12px; color: var(--mute-d); }
.foot-word { margin: 48px 0 0; font-size: clamp(44px, 9.6vw, 138px); font-weight: 800; letter-spacing: -.055em; line-height: .85; }

/* ---------- Type and layout ---------- */
.h1 { margin: 0; font-size: clamp(56px, 10.4vw, 150px); line-height: .92; letter-spacing: -.045em; font-weight: 800; }
.h1.s { font-size: clamp(56px, 9vw, 132px); }
.h2 { margin: 0; font-size: clamp(44px, 6.4vw, 92px); line-height: .95; letter-spacing: -.04em; font-weight: 800; }
.h2.s { font-size: clamp(40px, 5.6vw, 80px); }
.lede { margin: 0; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--text2); }
.lede-l { margin: 22px 0 0; font-size: 19px; line-height: 1.55; color: var(--text2); max-width: 640px; }
.sh { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.sh .n { font-size: 14px; color: var(--mute); }
.sec { padding-top: clamp(96px, 12vw, 160px); padding-bottom: clamp(96px, 12vw, 160px); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
.dark-band { background: var(--ink); color: var(--paper); }
.dark-band .lede-l { color: var(--mute-d); }
.acc-band { background: var(--acc); color: var(--on-acc); }
.acc-band .lede-l { color: var(--on-acc); }
.acc-band .sh .n { color: var(--on-acc); }
.dot { display: inline-block; width: .15em; height: .15em; border-radius: 50%; margin-left: .03em; background: var(--acc-l); animation: pop 700ms var(--sp) 560ms both; }
.dark .dot { background: var(--acc-d); }
.dot.still { animation: none; }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.rise { display: inline-block; animation: rise 900ms var(--eo) both; }
@keyframes rise { from { opacity: 0; transform: translateY(.35em); } to { opacity: 1; transform: none; } }
.fadein { animation: fadein 900ms var(--eo) both; }
@keyframes fadein { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 800ms var(--eo), transform 800ms var(--eo); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Buttons and chips ---------- */
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 16px; transition: background-color 260ms var(--eo), color 260ms var(--eo), transform 160ms var(--eo); }
.cta:active { transform: scale(.97); }
.cta-ink { background: var(--ink); color: var(--paper); }
.cta-ink:hover { background: var(--ink-2); color: var(--paper); }
.cta-ghost { border: 1px solid var(--ink); color: var(--ink); }
.cta-ghost:hover { background: var(--ink); color: var(--paper); }
.cta-ghost.in { background: var(--ink); color: var(--paper); }
.cta-light { background: var(--paper); color: var(--ink); }
.cta-light:hover { background: var(--surface); color: var(--ink); }
.cta-acc { background: var(--acc); color: var(--on-acc); }
.cta-acc:hover { background: var(--paper); color: var(--ink); }
.cta .arr { transition: transform 260ms var(--eo); }
.cta:hover .arr { transform: translateX(4px); }
.cta .arr-ne { transition: transform 260ms var(--eo); }
.cta:hover .arr-ne { transform: translate(3px, -3px); }
.mag { transition: transform 520ms var(--sp), background-color 260ms var(--eo), color 260ms var(--eo); }
.cmd { display: flex; align-items: center; gap: 12px; background: var(--ink); color: var(--paper); border-radius: 14px; padding: 6px 6px 6px 16px; max-width: 100%; }
.cmd .p { font-size: 13px; color: var(--acc-d); }
.cmd code { font-family: 'Martian Mono', ui-monospace, monospace; font-size: 12.5px; white-space: nowrap; overflow-x: auto; flex: 1; min-width: 0; padding: 10px 0; }
.copy { min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 13px; font-weight: 600; flex: none; transition: transform 160ms var(--eo), background-color 260ms var(--eo); }
.copy:hover { background: var(--surface); }
.copy:active { transform: scale(.96); }
.ccopy { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--ln-m); font-size: 13px; font-weight: 600; transition: background-color 260ms var(--eo), color 260ms var(--eo), border-color 260ms var(--eo); }
.ccopy:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tchip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.t-skill { background: var(--acc); color: var(--on-acc); }
.t-library { border: 1px solid var(--ink); color: var(--ink); }
.t-tool { background: var(--ink); color: var(--paper); }
.t-reference { background: var(--chip-ref); color: var(--ink); }
.t-inv { background: var(--ink); color: var(--paper); }
.pill { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--ln-m); font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; transition: background-color 260ms var(--eo), color 260ms var(--eo), border-color 260ms var(--eo); }
.pill:hover { border-color: var(--ink); }
.pill.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pill .ct { font-family: 'Martian Mono', ui-monospace, monospace; font-size: 11px; opacity: .72; }
.seg { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); background: var(--track); border-radius: 999px; padding: 4px; }
.seg-hl { position: absolute; display: block; top: 4px; bottom: 4px; left: 4px; border-radius: 999px; background: var(--ink); transition: transform 440ms var(--sp); }
.seg-i { position: relative; z-index: 1; min-height: 44px; padding: 0 16px; font-size: 14px; font-weight: 600; color: var(--text2); white-space: nowrap; transition: color 260ms var(--eo); }
.seg-i.on { color: var(--paper); }
.seg.dk { background: var(--ink-2); }
.seg.dk .seg-hl { background: var(--paper); }
.seg.dk .seg-i { color: var(--mute-d); padding: 0 12px; font-size: 13.5px; }
.seg.dk .seg-i.on { color: var(--ink); }

/* ---------- Home ---------- */
.hero { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(80px, 10vw, 140px); }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(40px, 6vw, 88px); align-items: center; margin-top: clamp(44px, 6vw, 80px); }
.hero-copy { display: flex; flex-direction: column; gap: 32px; max-width: 540px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.count { margin: 0; font-size: 12px; color: var(--mute); }
.hfan { position: relative; display: block; width: 100%; height: 460px; }
.hcard { position: absolute; left: 50%; top: 50%; width: 260px; height: 340px; margin: -170px 0 0 -130px; border-radius: 22px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; text-align: left; transition: transform 680ms var(--eo); box-shadow: 0 1px 0 rgba(0, 0, 0, .05), 0 24px 48px -28px rgba(0, 0, 0, .45); }
.hc-ink { background: var(--ink); color: var(--paper); }
.hc-acc { background: var(--acc); color: var(--on-acc); }
.hc-paper { background: var(--surface); color: var(--ink); border: 1px solid var(--ln-l); }
.hc-mute { color: var(--mute-d); }
.hc-body { color: var(--text2-d); }
.hc-top { display: flex; justify-content: space-between; align-items: center; }
.hc-mid { display: flex; flex-direction: column; gap: 10px; }
.hc-name { font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.hc-desc { font-size: 14px; line-height: 1.45; }
.hc1 { transform: rotate(-8deg) translate(-72px, 12px); }
.hc2 { transform: rotate(-2.5deg) translate(-24px, -4px); }
.hc3 { transform: rotate(3deg) translate(26px, 4px); }
.hc4 { transform: rotate(9deg) translate(76px, 18px); }
.hfan:hover .hc1, .hfan.open .hc1 { transform: rotate(-15deg) translate(-188px, 34px); }
.hfan:hover .hc2, .hfan.open .hc2 { transform: rotate(-5deg) translate(-64px, -8px); }
.hfan:hover .hc3, .hfan.open .hc3 { transform: rotate(5deg) translate(64px, -8px); }
.hfan:hover .hc4, .hfan.open .hc4 { transform: rotate(15deg) translate(188px, 34px); }
.marqbox { border-top: 1px solid var(--ln); border-bottom: 1px solid var(--ln); overflow: hidden; padding: 24px 0; }
.marq { display: flex; width: max-content; animation: marq 70s linear infinite; }
.marqbox:hover .marq { animation-play-state: paused; }
.marq span { display: inline-flex; align-items: center; gap: 32px; padding-right: 32px; font-size: 14px; white-space: nowrap; color: var(--text2); }
.marq span::before { content: ''; width: 7px; height: 7px; border-radius: 2px; background: var(--acc-l); }
@keyframes marq { to { transform: translateX(-50%); } }
.demo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 20px; margin-top: clamp(44px, 5vw, 64px); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(40px, 6vw, 88px); align-items: center; }
.mock-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mock-col { display: flex; flex-direction: column; gap: 10px; }
.mini-mock { border-radius: 18px; padding: 22px; min-height: 190px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }

/* ---------- Cards ---------- */
.cg { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card { position: relative; display: flex; flex-direction: column; gap: 12px; min-height: 250px; padding: 24px; border-radius: 24px; background: var(--surface); color: var(--ink); border: 1px solid var(--ln-s); transition: transform 320ms var(--eo), box-shadow 320ms var(--eo), border-color 320ms var(--eo); }
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -30px rgba(0, 0, 0, .4); border-color: var(--ln-h); }
.card.span2 { grid-column: span 2; }
.card.ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.card.acc { background: var(--acc); color: var(--on-acc); border-color: transparent; }
.cg .card { animation: cardin 560ms var(--eo) both; }
.noanim .card, .noanim .lrow { animation: none; }
@keyframes cardin { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
.ch { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 26px; }
.ctags { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cstars { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; }
.cname { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.cname-t { font-weight: 700; letter-spacing: -.02em; line-height: 1.05; text-align: left; color: inherit; text-decoration: none; }
.card a.stretch, .card .btn.stretch { color: inherit; text-decoration: none; }
.stretch::after { content: ''; position: absolute; inset: 0; border-radius: 24px; }
.stretch:focus-visible { outline: none; }
.stretch:focus-visible::after { outline: 2px solid var(--ink); outline-offset: 3px; }
.card.ink .stretch:focus-visible::after { outline-color: var(--paper); }
.cwhat { margin: 0; font-size: 15px; line-height: 1.5; }
.cbest { margin: 0; font-size: 15px; line-height: 1.5; }
.cfoot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lift { position: relative; z-index: 2; }
.go { flex: none; transition: transform 260ms var(--eo); }
.card:hover .go { transform: translate(3px, -3px); }
.mut { opacity: .72; }
.mut2 { opacity: .86; }
.card.acc .mut, .card.acc .mut2 { opacity: 1; }
.clamp3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.clamp1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.card.ink .t-library { border-color: var(--paper); color: var(--paper); }
.card.ink .t-tool { background: var(--paper); color: var(--ink); }
.card.ink .t-reference { background: var(--ink-3); color: var(--paper); }
.card.acc .t-skill { background: var(--ink); color: var(--paper); }
.card.ink .cmd { background: var(--ink-2); }
.card.ink .ccopy { border-color: var(--dl-m); }
.card.ink .ccopy:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ---------- Catalog ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 14px 32px; margin-top: 32px; }
.legend > span { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text2); }
.filters { margin-top: clamp(48px, 6vw, 72px); display: flex; flex-direction: column; gap: 18px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ctrl { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.search-w { position: relative; display: block; flex: 1 1 320px; max-width: 460px; }
.search-w svg { position: absolute; left: 18px; top: 17px; color: var(--mute); pointer-events: none; }
.search { min-height: 52px; border-radius: 999px; border: 1px solid var(--ln-m); background: var(--surface); padding: 0 20px 0 48px; font: inherit; font-size: 15px; width: 100%; color: var(--ink); transition: border-color 260ms var(--eo), box-shadow 260ms var(--eo); }
.search:focus { border-color: var(--ink); box-shadow: 0 0 0 4px var(--ln-s); outline: none; }
.search:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.search::placeholder { color: var(--mute); }
.segs { display: flex; flex-wrap: wrap; gap: 10px; margin-left: auto; }
.shelf-h { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 40px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--ln); }
.shelf-t { margin: 0; font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.shelf-b { margin: 10px 0 0; font-size: 16px; line-height: 1.5; color: var(--text2); max-width: 640px; }
#results { margin-top: 32px; min-height: 200px; }
.empty { margin: 32px 0 0; font-size: 17px; color: var(--text2); }
.addb { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ln-m); flex: none; transition: background-color 260ms var(--eo), color 260ms var(--eo), border-color 260ms var(--eo), transform 360ms var(--sp); }
.addb:hover { border-color: var(--ink); }
.addb .i-chk { display: none; }
.addb.in { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: rotate(360deg); }
.addb.in .i-chk { display: block; }
.addb.in .i-plus { display: none; }
.card.ink .addb { border-color: var(--dl-m); }
.card.ink .addb:hover { border-color: var(--paper); }
.card.ink .addb.in { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.card.acc .addb.in { background: var(--ink); color: var(--paper); }
.lst { border-bottom: 1px solid var(--ln); }
.lrow { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1.2fr) minmax(0, 2fr) 110px 90px 44px; align-items: center; column-gap: 20px; padding: 18px 0; border-top: 1px solid var(--ln); transition: background-color 260ms var(--eo); animation: cardin 560ms var(--eo) both; }
.lrow:hover { background: var(--ln-s); }
.lrow .stretch::after { border-radius: 0; }
.l-name { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.l-name .cname-t { font-size: 19px; letter-spacing: -.015em; line-height: 1.15; }
.l-what { font-size: 15px; line-height: 1.45; color: var(--text2); }
.l-num, .l-stars { font-size: 12px; }
.l-num { color: var(--mute); }
.ov { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: flex-end; }
.ov-bg { position: absolute; inset: 0; width: 100%; height: 100%; background: color-mix(in srgb, var(--ink) 46%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: ovin 320ms var(--eo) both; cursor: default; }
.drawer { position: relative; width: min(580px, 100%); height: 100%; overflow-y: auto; background: var(--paper); color: var(--ink); padding: 24px clamp(22px, 4vw, 44px) 48px; box-shadow: -30px 0 60px -30px rgba(0, 0, 0, .45); animation: drin 560ms var(--eo) both; outline: none; }
@keyframes ovin { from { opacity: 0; } to { opacity: 1; } }
@keyframes drin { from { transform: translateX(100%); } to { transform: none; } }
.ov.out .ov-bg { animation: ovout 260ms var(--eo) both; }
.ov.out .drawer { animation: drout 300ms var(--eo) both; }
@keyframes ovout { from { opacity: 1; } to { opacity: 0; } }
@keyframes drout { from { transform: none; } to { transform: translateX(100%); } }
.dtop { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dbtns { display: flex; gap: 8px; }
.dbody { margin-top: 40px; animation: dbin 420ms var(--eo) both; }
@keyframes dbin { from { opacity: 0; translate: 16px 0; } to { opacity: 1; translate: 0 0; } }
.ibtn { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ln-m); transition: background-color 260ms var(--eo), color 260ms var(--eo); }
.ibtn:hover { background: var(--ink); color: var(--paper); }
.d-title { margin: 22px 0 0; font-size: clamp(38px, 5vw, 56px); font-weight: 800; letter-spacing: -.035em; line-height: .98; }
.d-box { margin-top: 28px; padding: 20px 22px; border-radius: 18px; background: var(--soft); }
.more { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 56px; padding: 12px 0; border-top: 1px solid var(--ln-l); text-align: left; transition: padding 260ms var(--eo); }
.more:hover { padding-left: 6px; }
.tray { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 50; width: min(780px, calc(100% - 24px)); background: var(--ink); color: var(--paper); border-radius: 24px; box-shadow: 0 28px 60px -24px rgba(0, 0, 0, .6); animation: trayin 620ms var(--sp) both; overflow: hidden; }
@keyframes trayin { from { translate: 0 160%; } to { translate: 0 0; } }
.tbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 14px 14px 20px; }
.tsum { flex: 1 1 200px; min-width: 0; font-size: 14px; line-height: 1.4; color: var(--text2-d); }
.tbtns { display: flex; flex-wrap: wrap; gap: 8px; }
.tbtn { min-height: 44px; padding: 0 16px; border-radius: 999px; font-size: 13px; font-weight: 600; transition: background-color 260ms var(--eo), color 260ms var(--eo); }
.tbtn.solid { background: var(--acc); color: var(--on-acc); }
.tbtn.ghost { border: 1px solid var(--dl-m); color: var(--paper); }
.tbtn.ghost:hover { background: var(--paper); color: var(--ink); }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 8px; border-radius: 999px; background: var(--acc); color: var(--on-acc); font-family: 'Martian Mono', ui-monospace, monospace; font-size: 13px; font-weight: 600; }
.badge.bump { animation: bump 420ms var(--sp); }
@keyframes bump { from { transform: scale(.6); } to { transform: none; } }
.tpanel { max-height: 280px; overflow-y: auto; padding: 8px 20px 4px; border-bottom: 1px solid var(--dl); }
.titem { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--dl-s); }
.titem:last-child { border-bottom: 0; }
.tpad { padding-bottom: 120px; }

/* ---------- Motion lab ---------- */
.lg { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); grid-auto-flow: dense; gap: 20px; }
.lab { border-radius: 24px; background: var(--surface-d); border: 1px solid var(--dl-s); padding: 26px; display: flex; flex-direction: column; gap: 18px; min-height: 330px; animation: cardin 560ms var(--eo) both; }
.lab.span2 { grid-column: span 2; }
.lab.full { grid-column: 1 / -1; }
.lab-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; }
.lab-h h3 { margin: 0; font-size: 16px; font-weight: 600; }
.lab-h .hint { font-size: 11px; color: var(--mute-d); }
.stage { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 190px; position: relative; }
.credit { font-size: 12.5px; line-height: 1.5; color: var(--mute-d); margin: 0; }
.mini { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--dl-m); font-size: 13px; font-weight: 600; color: var(--text2-d); transition: background-color 260ms var(--eo), color 260ms var(--eo), border-color 260ms var(--eo); }
.mini:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.mini:disabled { opacity: .4; cursor: default; }
.mini:disabled:hover { background: none; color: var(--text2-d); border-color: var(--dl-m); }
.glide { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--ink-2); border-radius: 999px; padding: 4px; width: 100%; max-width: 400px; }
.glide-hl { position: absolute; display: block; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 4); border-radius: 999px; background: var(--paper); transition: transform 420ms var(--sp); }
.glide-item { position: relative; z-index: 1; min-height: 44px; padding: 0 6px; font-size: 14px; font-weight: 600; color: var(--mute-d); transition: color 260ms var(--eo); }
.glide-item.on { color: var(--ink); }
.flaps { display: flex; gap: 6px; }
.flap { width: 44px; height: 62px; border-radius: 9px; background: var(--deep); color: var(--paper); display: flex; align-items: center; justify-content: center; font-family: 'Martian Mono', ui-monospace, monospace; font-size: 26px; font-weight: 600; position: relative; overflow: hidden; box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .06), 0 2px 0 rgba(0, 0, 0, .4); }
.flap::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, .7); }
.fa { display: inline-block; animation: flipa 150ms var(--eo); }
.fb { display: inline-block; animation: flipb 150ms var(--eo); }
@keyframes flipa { from { transform: rotateX(75deg); opacity: .35; } to { transform: none; opacity: 1; } }
@keyframes flipb { from { transform: rotateX(75deg); opacity: .35; } to { transform: none; opacity: 1; } }
.digits { display: flex; align-items: flex-start; font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-weight: 700; font-size: 64px; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--paper); }
.dcol { display: block; height: 1em; overflow: hidden; }
.dstrip { display: flex; flex-direction: column; transition: transform 1000ms var(--eo); }
.dstrip span { display: block; height: 1em; text-align: center; }
.dsep { display: inline-block; width: .28em; color: var(--mute-d); }
.dsep.hide { visibility: hidden; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.chip { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--dl-m); font-size: 13px; font-weight: 600; color: var(--text2-d); transition: background-color 260ms var(--eo), color 260ms var(--eo), border-color 260ms var(--eo); }
.chip:hover { border-color: var(--paper); color: var(--paper); }
.chip.on { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.cap { margin: 0; font-size: 11px; color: var(--mute-d); min-height: 1.5em; }
.tg { width: 76px; height: 44px; border-radius: 999px; background: var(--ink-3); position: relative; transition: background-color 420ms var(--eo); }
.tg.on { background: var(--acc-d); }
.tg-k { position: absolute; top: 4px; left: 4px; width: 36px; height: 36px; border-radius: 50%; background: var(--paper); transition: transform 440ms var(--sp); box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.tg.on .tg-k { transform: translateX(32px); }
.acc-i { border-top: 1px solid var(--dl); }
.acc-i:last-child { border-bottom: 1px solid var(--dl); }
.acc-b { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 52px; text-align: left; font-size: 15px; font-weight: 600; color: var(--paper); }
.acc-plus { flex: none; transition: transform 340ms var(--eo); }
.acc-i.open .acc-plus { transform: rotate(45deg); }
.acc-p { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 380ms var(--eo); }
.acc-i.open .acc-p { grid-template-rows: 1fr; }
.acc-p > div { overflow: hidden; visibility: hidden; transition: visibility 0s 380ms; }
.acc-i.open .acc-p > div { visibility: visible; transition-delay: 0s; }
.acc-p p { margin: 0 0 16px; font-size: 14px; line-height: 1.55; color: var(--mute-d); }
.scr { font-family: 'Martian Mono', ui-monospace, monospace; font-size: 20px; font-weight: 500; color: var(--paper); white-space: pre; text-align: center; margin: 0; }
.scr .hot { color: var(--acc-d); }
.rot { font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-weight: 700; font-size: 32px; line-height: 1.15; letter-spacing: -.02em; color: var(--paper); text-align: center; margin: 0; }
.rot-win { display: inline-block; height: 1.15em; overflow: hidden; vertical-align: bottom; }
.rot-strip { display: flex; flex-direction: column; transition: transform 640ms var(--eo); }
.rot-strip span { display: block; height: 1.15em; color: var(--acc-d); }
.ld-row { display: flex; gap: 40px; align-items: flex-end; justify-content: center; flex-wrap: wrap; }
.ld-item { display: flex; flex-direction: column; align-items: center; gap: 14px; font-size: 11px; color: var(--mute-d); }
.ld-orbit { display: block; width: 48px; height: 48px; border-radius: 50%; border: 3px solid var(--dl); border-top-color: var(--acc-d); animation: spin 900ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ld-wave { display: flex; gap: 5px; align-items: center; height: 48px; }
.ld-wave i { display: block; width: 6px; height: 100%; border-radius: 3px; background: var(--paper); animation: wave 1s var(--eo) infinite; }
.ld-wave i:nth-child(2) { animation-delay: .1s; }
.ld-wave i:nth-child(3) { animation-delay: .2s; }
.ld-wave i:nth-child(4) { animation-delay: .3s; }
.ld-wave i:nth-child(5) { animation-delay: .4s; }
@keyframes wave { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.ld-blocks { display: grid; grid-template-columns: repeat(2, 20px); gap: 6px; }
.ld-blocks i { display: block; width: 20px; height: 20px; border-radius: 5px; background: var(--acc-d); animation: blk 1.2s ease-in-out infinite; }
.ld-blocks i:nth-child(2) { animation-delay: .15s; }
.ld-blocks i:nth-child(3) { animation-delay: .45s; }
.ld-blocks i:nth-child(4) { animation-delay: .3s; }
@keyframes blk { 0%, 100% { opacity: .25; transform: scale(.78); } 50% { opacity: 1; transform: none; } }
.tr { font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-weight: 700; font-size: 30px; line-height: 1.15; letter-spacing: -.02em; color: var(--paper); text-align: center; margin: 0; }
.tr span { display: inline-block; margin-right: .22em; }
.tr.play span { animation: trin 760ms var(--eo) both; }
@keyframes trin { from { opacity: 0; transform: translateY(.5em); filter: blur(5px); } to { opacity: 1; transform: none; filter: none; } }
.toast { position: absolute; left: 8%; right: 8%; bottom: 14px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--paper); color: var(--ink); box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .6); transition: transform 440ms var(--sp), opacity 300ms var(--eo); animation: tin 560ms var(--sp) both; }
.toast.leave { animation: tout 260ms var(--eo) both; }
.toast .d { width: 10px; height: 10px; border-radius: 50%; background: var(--acc); flex: none; }
.toast .t { font-size: 14.5px; font-weight: 600; }
.toast .w { margin-left: auto; font-size: 11px; color: var(--mute); }
@keyframes tin { from { translate: 0 34px; opacity: 0; } to { translate: 0 0; opacity: 1; } }
@keyframes tout { from { translate: 0 0; opacity: 1; } to { translate: 0 16px; opacity: 0; } }
.like { position: relative; width: 88px; height: 88px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--dl-m); transition: border-color 260ms var(--eo); }
.like:hover { border-color: var(--paper); }
.like svg { position: relative; z-index: 1; }
.like svg path { fill: transparent; stroke: var(--paper); transition: fill 220ms var(--eo), stroke 220ms var(--eo); }
.like.on svg path { fill: var(--acc-d); stroke: var(--acc-d); }
.like.pulse svg { animation: heart 560ms var(--sp); }
@keyframes heart { 0% { transform: scale(.55); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
.bdw { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.bd { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--acc-d); opacity: 0; }
.like.on.pulse .bd { animation: burst 640ms var(--eo) both; }
@keyframes burst { 0% { opacity: 1; transform: translateY(-10px) scale(1); } 100% { opacity: 0; transform: translateY(-54px) scale(.3); } }
.sbtn { min-width: 196px; min-height: 52px; padding: 0 22px; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 10px; transition: background-color 320ms var(--eo), transform 160ms var(--eo); }
.sbtn:active { transform: scale(.97); }
.sbtn.done { background: var(--acc-d); color: var(--ink); }
.spin { display: block; width: 18px; height: 18px; border: 2px solid var(--ln-m); border-top-color: var(--ink); border-radius: 50%; animation: spin 700ms linear infinite; }
.chk path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw 440ms var(--eo) 80ms forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.einput { width: 100%; min-height: 52px; border-radius: 14px; border: 1.5px solid var(--dl-m); background: var(--ink-2); color: var(--paper); padding: 0 16px; font: inherit; font-size: 15px; transition: border-color 260ms var(--eo); }
.einput::placeholder { color: var(--mute-d); }
.einput.bad { border-color: var(--acc-d); }
.einput.good { border-color: var(--paper); }
.einput.shake { animation: shake 420ms var(--eo); }
@keyframes shake { 10%, 90% { translate: -1px 0; } 20%, 80% { translate: 3px 0; } 30%, 50%, 70% { translate: -6px 0; } 40%, 60% { translate: 6px 0; } }
.field { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.field > span { font-size: 11px; color: var(--mute-d); }
.fmsg { margin: 0; font-size: 13.5px; color: var(--text2-d); min-height: 1.4em; }
.srow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--ink-2); animation: sin 520ms var(--sp) both; }
.srow.leave { animation: sout 240ms var(--eo) both; }
.srow .sq { width: 10px; height: 10px; border-radius: 3px; background: var(--acc-d); flex: none; }
.srow .st { display: flex; align-items: center; gap: 12px; min-width: 0; }
.srow .sn { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
@keyframes sin { from { opacity: 0; translate: 0 14px; scale: .96; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes sout { from { opacity: 1; scale: 1; } to { opacity: 0; scale: .94; } }
.xb { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--mute-d); flex: none; transition: background-color 260ms var(--eo), color 260ms var(--eo); }
.xb:hover { background: var(--paper); color: var(--ink); }
.magbtn { min-height: 56px; padding: 0 28px; border-radius: 999px; background: var(--acc-d); color: var(--on-acc); font-size: 15px; font-weight: 700; transition: transform 520ms var(--sp); }
[data-pal="cobalt"] .magbtn, [data-pal="cobalt"] .tg.on { color: var(--ink); }
.magzone { width: 100%; min-height: 190px; display: flex; align-items: center; justify-content: center; }
.tilt { width: 260px; border-radius: 22px; padding: 22px; background: var(--paper); color: var(--ink); transition: transform 520ms var(--eo), box-shadow 520ms var(--eo); box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .7); }
.tilt.live { transition: transform 90ms linear, box-shadow 320ms var(--eo); }
.pg { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 32px 48px; align-items: center; }
.pg-col { display: flex; flex-direction: column; gap: 24px; }
.pg-lab { display: flex; flex-direction: column; gap: 10px; }
.pg-lab .l { display: flex; justify-content: space-between; font-size: 11px; color: var(--mute-d); }
.pg-lab .l b { font-weight: 400; color: var(--paper); font-size: 12px; }
.pg-range { width: 100%; accent-color: var(--acc-d); height: 28px; }
.pg-track { position: relative; height: 64px; border-radius: 999px; background: var(--ink-2); }
.pg-track.sm { height: 40px; }
.pg-puck { position: absolute; top: 8px; left: 8px; width: 48px; height: 48px; border-radius: 50%; background: var(--acc-d); }
.pg-puck.ghost { top: 6px; left: 6px; width: 28px; height: 28px; background: var(--dl-m); }
.pg svg { width: 100%; max-width: 420px; align-self: center; color: var(--paper); }
.pg-curve { fill: none; stroke: var(--acc-d); stroke-width: 3; stroke-linecap: round; }
.pg-h { fill: var(--paper); }
.cmd.dk { background: var(--ink-2); }

/* ---------- How it's built ---------- */
.frame { border-radius: 24px; overflow: hidden; background: var(--surface); border: 1px solid var(--ln-h); box-shadow: 0 40px 80px -50px rgba(0, 0, 0, .5); }
.fbar { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--ln-s); }
.fdot { width: 10px; height: 10px; border-radius: 50%; background: var(--ln-m); }
.fbody { position: relative; height: 540px; container-type: inline-size; }
@container (max-width: 760px) { .mfan { display: none; } .craft { padding: 32px 28px; } }
.layer { position: absolute; inset: 0; transition: opacity 560ms var(--eo), transform 680ms var(--eo); }
.layer.hide { opacity: 0; transform: scale(.965); pointer-events: none; }
.ai { background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%); color: #EEF2FF; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 18px; padding: 36px; font-family: system-ui, -apple-system, sans-serif; }
.rg { border-radius: 10px; }
.rg-on { outline: 2px dashed #FDE68A; outline-offset: 7px; animation: rgp 1.3s ease-in-out infinite; }
.ai.rg-on { outline-offset: -14px; border-radius: 0; }
@keyframes rgp { 0%, 100% { outline-color: #FDE68A; } 50% { outline-color: rgba(253, 230, 138, .35); } }
.tile { flex: 1 1 140px; max-width: 180px; padding: 16px; border-radius: 14px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.craft { background: var(--paper); color: var(--ink); display: flex; align-items: center; padding: 44px 48px; overflow: hidden; }
.mfan { position: absolute; right: 56px; top: 50%; width: 200px; height: 260px; margin-top: -130px; }
.mcard { position: absolute; inset: 0; border-radius: 18px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 18px 36px -24px rgba(0, 0, 0, .5); }
.built-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 44px; }
#tells { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 8px; }
.tell { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; width: 100%; align-content: start; padding: 18px 16px; border-radius: 18px; text-align: left; transition: background-color 260ms var(--eo); }
.tell:hover, .tell.on { background: var(--surface); }
.tell .n { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--ln-m); font-family: 'Martian Mono', ui-monospace, monospace; font-size: 11px; transition: background-color 260ms var(--eo), color 260ms var(--eo); }
.tell.on .n { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tell .b { display: flex; flex-direction: column; gap: 6px; }
.tell .tt { font-size: 20px; font-weight: 700; letter-spacing: -.015em; }
.tell .ln { font-size: 14px; line-height: 1.45; transition: opacity 260ms var(--eo); }
.ln.dim { opacity: .66; }
.rc { border-top: 1.5px solid var(--on-acc); }
.rc:last-child { border-bottom: 1.5px solid var(--on-acc); }
.rc-b { width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1.1fr) minmax(0, 1.6fr) 28px; gap: 20px; align-items: center; padding: 22px 0; text-align: left; color: var(--on-acc); }
.rc-name { display: block; font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; transition: transform 260ms var(--eo); }
.rc-b:hover .rc-name { transform: translateX(4px); }
.rc-by { display: block; margin-top: 6px; font-size: 11px; }
.rc-what { font-size: 16px; line-height: 1.5; }
.rc-plus { transition: transform 340ms var(--eo); justify-self: end; }
.rc.open .rc-plus { transform: rotate(45deg); }
.rc-p { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 420ms var(--eo); }
.rc.open .rc-p { grid-template-rows: 1fr; }
.rc-p > div { overflow: hidden; visibility: hidden; transition: visibility 0s 420ms; }
.rc.open .rc-p > div { visibility: visible; transition-delay: 0s; }
.rc-in { padding: 0 0 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px 40px; align-items: start; }
.rc-in p { margin: 0; font-size: 15px; line-height: 1.55; }
.code { margin: 0; padding: 20px 22px; border-radius: 16px; background: var(--ink); color: var(--paper); font-family: 'Martian Mono', ui-monospace, monospace; font-size: 12.5px; line-height: 1.7; white-space: pre; overflow-x: auto; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 44px; margin-top: clamp(44px, 5vw, 64px); }
.step { border-top: 1.5px solid var(--ink); padding-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.step .big { font-size: 72px; font-weight: 800; line-height: .9; letter-spacing: -.04em; }
.step h3 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.step p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--text2); }
.cta-band { margin-top: clamp(56px, 7vw, 96px); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding: 32px clamp(24px, 3vw, 40px); border-radius: 28px; background: var(--ink); color: var(--paper); }
.cta-band p { margin: 0; font-size: clamp(18px, 2vw, 23px); line-height: 1.4; max-width: 640px; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .lrow { grid-template-columns: minmax(0, 1fr) 44px; row-gap: 6px; }
  .lrow .l-num, .lrow .l-type, .lrow .l-stars { display: none; }
  .lrow .l-name { grid-column: 1; grid-row: 1; }
  .lrow .l-add { grid-column: 2; grid-row: 1; }
  .lrow .l-what { grid-column: 1 / span 2; grid-row: 2; }
  .rc-b { grid-template-columns: 32px minmax(0, 1fr) 24px; row-gap: 6px; }
  .rc-what { grid-column: 2; grid-row: 2; }
  .rc-plus { grid-column: 3; grid-row: 1; }
  .fbody { height: 600px; }
  .segs { margin-left: 0; }
}
@media (max-width: 700px) {
  .hfan { height: 360px; }
  .hcard { width: 190px; height: 260px; margin: -130px 0 0 -95px; padding: 18px; }
  .hc-name { font-size: 24px; }
  .hfan:hover .hc1, .hfan.open .hc1 { transform: rotate(-12deg) translate(-96px, 24px); }
  .hfan:hover .hc2, .hfan.open .hc2 { transform: rotate(-4deg) translate(-34px, -6px); }
  .hfan:hover .hc3, .hfan.open .hc3 { transform: rotate(4deg) translate(34px, -6px); }
  .hfan:hover .hc4, .hfan.open .hc4 { transform: rotate(12deg) translate(96px, 24px); }
}
@media (max-width: 760px) { .lab.span2 { grid-column: auto; } }
@media (max-width: 620px) { .card.span2 { grid-column: auto; } }
@media (max-width: 440px) { .flap { width: 36px; height: 52px; font-size: 21px; } .flaps { gap: 4px; } .digits { font-size: 52px; } .craft { padding: 32px 24px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
