/* Home hero: moving wall of tool cards with live micro-demos. Tokens from explore.css. */
.xh-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: clamp(22px, 3vw, 34px); }
.hwall { position: relative; }
.hwall.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; height: min(720px, 82vh); overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); }
.hwall.cols .hw-track { display: flex; flex-direction: column; gap: 12px; animation: hwUp 46s linear infinite; }
.hwall.cols .hw-dup { display: contents; }
.hwall.cols .l1 .hw-track { animation-name: hwDown; animation-duration: 54s; }
.hwall.cols .l2 .hw-track { animation-duration: 40s; }
.hwall.cols .l1 { padding-top: 60px; }
@keyframes hwUp { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 6px)); } }
@keyframes hwDown { from { transform: translateY(calc(-50% - 6px)); } to { transform: translateY(0); } }
.hwall.rows { display: grid; gap: 12px; margin-inline: calc(var(--pad) * -1); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.hwall.rows .hw-track { display: flex; gap: 12px; width: max-content; animation: hwLeft 48s linear infinite; }
.hwall.rows .hw-dup { display: contents; }
.hwall.rows .l1 .hw-track { animation-name: hwRight; animation-duration: 56s; }
.hwall.rows .hw-t { width: 228px; flex: none; }
@keyframes hwLeft { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 6px)); } }
@keyframes hwRight { from { transform: translateX(calc(-50% - 6px)); } to { transform: translateX(0); } }
.hw-lane:hover .hw-track, .hwall.off .hw-track, .hwall.off .hw-v *, .hwall.off .hw-v { animation-play-state: paused !important; }
.hwall.calm .hw-track { animation: none !important; }
.hwall.calm.cols { overflow-y: auto; }

/* card */
.hw-t { position: relative; display: block; flex: none; border: 1px solid var(--rule); border-radius: 2px; background: var(--bg-2); color: var(--paper); text-decoration: none; overflow: hidden;
  opacity: 0; transform: translateY(18px); transition: border-color .3s, transform .5s var(--e), background .3s, opacity .8s var(--e); transition-delay: 0s, 0s, 0s, calc(var(--n) * 40ms); }
.hwall.in .hw-t { opacity: 1; transform: none; }
.hw-t:hover, .hw-t:focus-visible { border-color: var(--c); background: #16130F; outline: none; }
.hw-t:hover .hw-go, .hw-t:focus-visible .hw-go { opacity: 1; transform: none; color: var(--c); }
.hw-t::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--e); }
.hw-t:hover::after { transform: none; }
.hw-m { display: grid; gap: 3px; padding: 11px 13px 13px; }
.hw-f { display: flex; align-items: center; gap: 6px; font: 500 9.5px/1 var(--m); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.hw-f i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.hw-m b { margin-top: 3px; font: 800 17px/1.05 var(--f); font-stretch: 75%; letter-spacing: .01em; text-transform: uppercase; }
.hw-m small { color: var(--dim); font-size: 12.5px; line-height: 1.35; }
.hw-go { position: absolute; right: 12px; bottom: 12px; font-size: 15px; opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .4s var(--e), color .3s; }

/* demo area */
.hw-v { position: relative; display: block; height: 118px; overflow: hidden; background: #0E0C0B; border-bottom: 1px solid var(--rule); }
.hw-v span, .hw-v i { position: absolute; display: block; }
.hw-v i { font-style: normal; }
/* shared "picture": an abstract scene, no photos */
.e-pic, .d-pic, .r-pic, .m-pic, .w-pic, .u-hd, .i-f { background: radial-gradient(60% 70% at 70% 30%, #F2B26B 0%, transparent 60%), radial-gradient(70% 60% at 20% 90%, #2E5B8C 0%, transparent 70%), linear-gradient(160deg, #3A2350, #E06A3A 55%, #F4C27A); }

/* image generator: blur -> sharp, prompt typing */
.v-gen .g-blob { width: 90px; height: 90px; border-radius: 50%; filter: blur(22px); opacity: .9; animation: gBlob 6s ease-in-out infinite; }
.v-gen .b1 { background: #FF4A1C; left: 10%; top: -10%; } .v-gen .b2 { background: #5B8DEF; left: 45%; top: 30%; animation-delay: -2s; } .v-gen .b3 { background: #F4C27A; left: 70%; top: -20%; animation-delay: -4s; }
@keyframes gBlob { 50% { transform: translate(18px, 14px) scale(1.2); } }
.v-gen .g-sharp { inset: 0; background: radial-gradient(40% 50% at 65% 40%, #F4C27A, transparent 60%), linear-gradient(170deg, #1B2A44, #3A2350 50%, #E06A3A); opacity: 0; animation: gSharp 6s ease-in-out infinite; }
@keyframes gSharp { 0%, 45% { opacity: 0; } 60%, 88% { opacity: 1; } 100% { opacity: 0; } }
.v-gen .g-type { left: 10px; right: 10px; bottom: 9px; padding: 5px 7px; background: rgba(11, 10, 9, .78); border: 1px solid var(--rule); font: 500 10px/1.2 var(--m); color: var(--paper); white-space: nowrap; overflow: hidden; }
.v-gen .g-type em { display: inline-block; font-style: normal; overflow: hidden; vertical-align: bottom; width: 0; animation: gType 6s steps(30) infinite; border-right: 1px solid var(--c); }
@keyframes gType { 0% { width: 0; } 40%, 100% { width: 100%; } }

/* image editor: one region changes */
.v-edit .e-pic { inset: 0; }
.v-edit .e-zone { left: 0; right: 0; top: 0; height: 52%; background: linear-gradient(180deg, #5B3FD8, #C77DDB); mix-blend-mode: color; opacity: 0; animation: eZone 5s ease-in-out infinite; }
@keyframes eZone { 0%, 30% { opacity: 0; } 50%, 85% { opacity: .95; } 100% { opacity: 0; } }
.v-edit .e-cur { width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; left: 20%; top: 20%; animation: eCur 5s ease-in-out infinite; }
@keyframes eCur { 0% { transform: translate(0, 0); } 30% { transform: translate(110px, 10px); } 50% { transform: translate(60px, 24px); } 100% { transform: translate(0, 0); } }
.v-edit .e-say { left: 10px; bottom: 9px; padding: 4px 7px; background: rgba(11, 10, 9, .8); font: 500 10px/1 var(--m); color: var(--paper); }

/* image to prompt: scan + lines */
.v-dec .d-pic { left: 10px; top: 12px; bottom: 12px; width: 42%; overflow: hidden; }
.v-dec .d-scan { left: 0; right: 0; height: 2px; background: var(--c); box-shadow: 0 0 12px var(--c); animation: dScan 3s ease-in-out infinite; }
@keyframes dScan { 0%, 100% { top: 0; } 50% { top: calc(100% - 2px); } }
.v-dec .d-lines { left: calc(42% + 22px); right: 12px; top: 16px; bottom: 16px; }
.v-dec .d-lines i { position: relative; height: 6px; margin-bottom: 10px; background: var(--rule-2); transform-origin: left; animation: dLine 3s ease-out infinite; }
.v-dec .d-lines i:nth-child(1) { width: 92%; } .v-dec .d-lines i:nth-child(2) { width: 70%; animation-delay: .2s; } .v-dec .d-lines i:nth-child(3) { width: 84%; animation-delay: .4s; background: var(--c); } .v-dec .d-lines i:nth-child(4) { width: 60%; animation-delay: .6s; } .v-dec .d-lines i:nth-child(5) { width: 76%; animation-delay: .8s; }
@keyframes dLine { 0% { transform: scaleX(0); } 40%, 100% { transform: scaleX(1); } }

/* upscaler: blocky vs sharp with a sliding divider */
.v-up .u-px { inset: 0; background: repeating-conic-gradient(#3A2350 0 25%, #4A2C5E 0 50%) 0 0 / 22px 22px, linear-gradient(160deg, #3A2350, #E06A3A 55%, #F4C27A); background-blend-mode: soft-light; filter: saturate(.7) contrast(1.1); }
.v-up .u-hd { inset: 0; clip-path: inset(0 0 0 50%); animation: uClip 4.4s ease-in-out infinite; }
.v-up .u-bar { top: 0; bottom: 0; width: 2px; left: 50%; background: #fff; box-shadow: 0 0 10px rgba(255, 255, 255, .6); animation: uBar 4.4s ease-in-out infinite; }
@keyframes uClip { 0%, 100% { clip-path: inset(0 0 0 75%); } 50% { clip-path: inset(0 0 0 22%); } }
@keyframes uBar { 0%, 100% { left: 75%; } 50% { left: 22%; } }
.v-up .u-tag { right: 8px; top: 8px; padding: 3px 6px; background: rgba(11, 10, 9, .8); font: 500 10px/1 var(--m); color: var(--c); }

/* restore: black and white -> colour wipe */
.v-res .r-pic { inset: 0; }
.v-res .r-bw { filter: grayscale(1) contrast(.85) brightness(.9) sepia(.25); }
.v-res .r-col { clip-path: inset(0 100% 0 0); animation: rWipe 4.6s cubic-bezier(.6, 0, .3, 1) infinite; }
.v-res .r-bar { top: 0; bottom: 0; width: 2px; background: var(--c); left: 0; animation: rBar 4.6s cubic-bezier(.6, 0, .3, 1) infinite; }
@keyframes rWipe { 0%, 10% { clip-path: inset(0 100% 0 0); } 55%, 85% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 100% 0 0); } }
@keyframes rBar { 0%, 10% { left: 0; opacity: 1; } 55% { left: 100%; opacity: 1; } 56%, 100% { opacity: 0; left: 100%; } }

/* object remover: brush erases the object */
.v-rm .m-pic { inset: 0; }
.v-rm .m-obj { width: 34px; height: 34px; left: 56%; top: 38%; border-radius: 50%; background: #0B0A09; box-shadow: 0 0 0 3px rgba(255, 255, 255, .15); animation: mObj 4.4s ease-in-out infinite; }
.v-rm .m-brush { height: 30px; left: 40%; top: 40%; width: 0; border-radius: 15px; background: rgba(255, 74, 28, .55); animation: mBrush 4.4s ease-in-out infinite; }
@keyframes mBrush { 0%, 15% { width: 0; opacity: 1; } 45% { width: 90px; opacity: 1; } 60%, 100% { width: 90px; opacity: 0; } }
@keyframes mObj { 0%, 50% { opacity: 1; transform: scale(1); } 62%, 88% { opacity: 0; transform: scale(.6); } 100% { opacity: 1; transform: scale(1); } }

/* passport: crop marks snap onto a head */
.v-pass .p-bg { inset: 0; background: linear-gradient(#DCE6F0, #C9D6E3); }
.v-pass .p-head { width: 40px; height: 48px; left: calc(50% - 20px); top: 22px; border-radius: 50% 50% 46% 46%; background: #6B4A3A; }
.v-pass .p-body { width: 92px; height: 50px; left: calc(50% - 46px); top: 78px; border-radius: 46px 46px 0 0; background: #2B3550; }
.v-pass .p-c { width: 16px; height: 16px; border: 2px solid var(--c); animation: pSnap 3.6s var(--e) infinite; }
.v-pass .c1 { left: calc(50% - 44px); top: 12px; border-right: 0; border-bottom: 0; } .v-pass .c2 { left: calc(50% + 28px); top: 12px; border-left: 0; border-bottom: 0; }
.v-pass .c3 { left: calc(50% - 44px); bottom: 8px; border-right: 0; border-top: 0; } .v-pass .c4 { left: calc(50% + 28px); bottom: 8px; border-left: 0; border-top: 0; }
@keyframes pSnap { 0% { transform: scale(2.4); opacity: 0; } 30%, 80% { transform: scale(1); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }

/* watermark: the sparkle fades away */
.v-wm .w-pic { inset: 0; }
.v-wm .w-star { right: 14px; bottom: 8px; font-size: 26px; color: rgba(255, 255, 255, .85); animation: wStar 4s ease-in-out infinite; }
@keyframes wStar { 0%, 35% { opacity: 1; transform: scale(1); } 55%, 85% { opacity: 0; transform: scale(.4) rotate(90deg); } 100% { opacity: 1; transform: scale(1); } }
.v-wm .w-sweep { top: 0; bottom: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .25), transparent); animation: wSweep 4s ease-in-out infinite; }
@keyframes wSweep { 0%, 30% { transform: translateX(-120%); } 60%, 100% { transform: translateX(300%); } }

/* video: film strip + playhead */
.v-vid .v-strip { top: 18px; left: 0; display: flex; gap: 6px; animation: vRun 6s linear infinite; }
.v-vid .v-strip i { position: relative; width: 64px; height: 80px; border: 1px solid var(--rule-2); background: linear-gradient(160deg, #1B2A44, #5B8DEF); }
.v-vid .v-strip i:nth-child(even) { background: linear-gradient(160deg, #3A2350, #E06A3A); }
@keyframes vRun { to { transform: translateX(-280px); } }
.v-vid .v-head { top: 10px; bottom: 10px; left: 50%; width: 2px; background: var(--c); box-shadow: 0 0 10px var(--c); }

/* image to video: frames fan out from one still */
.v-i2v .i-f { width: 70px; height: 86px; left: calc(50% - 35px); top: 16px; border: 1px solid rgba(255, 255, 255, .25); animation: iFan 4s var(--e) infinite; }
.v-i2v .f2 { animation-name: iFan2; opacity: .7; } .v-i2v .f3 { animation-name: iFan3; opacity: .45; }
@keyframes iFan2 { 0%, 20% { transform: none; } 50%, 85% { transform: translateX(42px) rotate(6deg); } 100% { transform: none; } }
@keyframes iFan3 { 0%, 20% { transform: none; } 50%, 85% { transform: translateX(-42px) rotate(-6deg); } 100% { transform: none; } }
@keyframes iFan { 50% { transform: scale(1.04); } }
.v-i2v .i-play { left: calc(50% - 10px); top: 48px; width: 0; height: 0; border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); }

/* audio to text: waveform + words */
.v-a2t .a-wave, .v-voc .o-wave { left: 12px; right: 12px; top: 18px; height: 46px; display: flex; align-items: center; gap: 3px; }
.v-a2t .a-wave i, .v-voc .o-wave i { position: relative; flex: 1; height: 100%; background: var(--c); border-radius: 1px; transform: scaleY(.15); animation: aBar 1.2s ease-in-out infinite; animation-delay: calc(var(--k) * -73ms); }
@keyframes aBar { 50% { transform: scaleY(1); } }
.v-a2t .a-words { left: 12px; right: 12px; bottom: 12px; display: flex; flex-wrap: wrap; gap: 4px; font: 500 11px/1 var(--m); }
.v-a2t .a-words i { position: relative; color: var(--paper); opacity: 0; animation: aWord 4.8s ease-out infinite; }
.v-a2t .a-words i:nth-child(2) { animation-delay: .35s; } .v-a2t .a-words i:nth-child(3) { animation-delay: .7s; } .v-a2t .a-words i:nth-child(4) { animation-delay: 1.05s; } .v-a2t .a-words i:nth-child(5) { animation-delay: 1.4s; color: var(--c); } .v-a2t .a-words i:nth-child(6) { animation-delay: 1.75s; }
@keyframes aWord { 0% { opacity: 0; transform: translateY(5px); } 8%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* text to speech: text -> rings */
.v-tts .t-lines { left: 14px; top: 34px; width: 40%; }
.v-tts .t-lines i { position: relative; height: 6px; margin-bottom: 9px; background: var(--rule-2); }
.v-tts .t-lines i:nth-child(2) { width: 80%; } .v-tts .t-lines i:nth-child(3) { width: 60%; }
.v-tts .t-ring { right: 34px; top: calc(50% - 10px); width: 20px; height: 20px; border: 2px solid var(--c); border-radius: 50%; animation: tRing 2.4s ease-out infinite; opacity: 0; }
.v-tts .r2 { animation-delay: .8s; } .v-tts .r3 { animation-delay: 1.6s; }
@keyframes tRing { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(4); opacity: 0; } }
.v-tts .t-dot { right: 40px; top: calc(50% - 4px); width: 8px; height: 8px; border-radius: 50%; background: var(--c); }

/* vocal remover: one wave splits into two */
.v-voc .o-wave { top: calc(50% - 18px); height: 36px; }
.v-voc .o-top { animation: oUp 4s var(--e) infinite; } .v-voc .o-bot { animation: oDown 4s var(--e) infinite; }
.v-voc .o-bot i { background: #F1EDE4; }
@keyframes oUp { 0%, 20% { transform: none; } 50%, 85% { transform: translateY(-24px); } 100% { transform: none; } }
@keyframes oDown { 0%, 20% { transform: none; opacity: .0; } 50%, 85% { transform: translateY(24px); opacity: 1; } 100% { transform: none; opacity: 0; } }
.v-voc .o-l { left: 12px; font: 500 9.5px/1 var(--m); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.v-voc .l1 { top: 6px; } .v-voc .l2 { bottom: 6px; }

/* chat with pdf: highlighted line + citation */
.v-chat .c-page { left: 14px; top: 12px; bottom: -6px; width: 44%; padding: 12px 10px; background: #F1EDE4; }
.v-chat .c-page i { position: relative; height: 5px; margin-bottom: 8px; background: #CFC8BA; }
.v-chat .c-page i:nth-child(2) { width: 70%; } .v-chat .c-page i.hl { background: #CFC8BA; animation: cHl 4s ease-in-out infinite; }
@keyframes cHl { 0%, 35% { background: #CFC8BA; } 50%, 90% { background: var(--c); box-shadow: 0 0 0 3px rgba(217, 161, 59, .3); } 100% { background: #CFC8BA; } }
.v-chat .c-q { right: 10px; top: 16px; max-width: 46%; padding: 6px 8px; background: var(--paper); color: #0B0A09; font: 600 10.5px/1.25 var(--f); animation: cPop 4s var(--e) infinite; }
.v-chat .c-cite { right: 10px; top: 62px; padding: 4px 7px; border: 1px solid var(--c); color: var(--c); font: 500 10px/1 var(--m); animation: cPop 4s var(--e) infinite; animation-delay: .6s; }
@keyframes cPop { 0% { opacity: 0; transform: translateY(6px); } 12%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* pdf tools: pages merge into a stack */
.v-pdf .f-pg { width: 52px; height: 68px; top: 18px; left: calc(50% - 26px); background: #F1EDE4; border: 1px solid #CFC8BA; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .6); }
.v-pdf .f-pg::before { content: ""; position: absolute; left: 8px; right: 8px; top: 10px; height: 26px; background: repeating-linear-gradient(#CFC8BA 0 3px, transparent 3px 7px); }
.v-pdf .g1 { animation: fA 4s var(--e) infinite; } .v-pdf .g2 { animation: fB 4s var(--e) infinite; } .v-pdf .g3 { animation: fC 4s var(--e) infinite; }
@keyframes fA { 0%, 15% { transform: translateX(-64px) rotate(-8deg); } 50%, 85% { transform: translate(-4px, -4px); } 100% { transform: translateX(-64px) rotate(-8deg); } }
@keyframes fB { 0%, 15% { transform: none; } 50%, 85% { transform: none; } 100% { transform: none; } }
@keyframes fC { 0%, 15% { transform: translateX(64px) rotate(8deg); } 50%, 85% { transform: translate(4px, 4px); } 100% { transform: translateX(64px) rotate(8deg); } }
.v-pdf .f-tag { left: 0; right: 0; bottom: 8px; text-align: center; font: 500 9.5px/1 var(--m); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }

/* agent desk: mail sorts into lanes */
.v-agent .ag-lane { left: 46%; right: 12px; height: 22px; border: 1px dashed var(--rule-2); }
.v-agent .l1 { top: 14px; } .v-agent .l2 { top: 47px; } .v-agent .l3 { top: 80px; }
.v-agent .l1::after, .v-agent .l2::after, .v-agent .l3::after { position: absolute; right: 6px; top: 6px; font: 500 9px/1 var(--m); letter-spacing: .06em; color: var(--mute); }
.v-agent .l1::after { content: "IMPORTANT"; } .v-agent .l2::after { content: "BILLS"; } .v-agent .l3::after { content: "PROMOS"; }
.v-agent .ag-m { left: 14px; top: 47px; width: 30px; height: 20px; background: var(--paper); border: 1px solid #CFC8BA; opacity: 0; }
.v-agent .ag-m::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom right, transparent 48%, #CFC8BA 50%, transparent 52%), linear-gradient(to bottom left, transparent 48%, #CFC8BA 50%, transparent 52%); }
.v-agent .m1 { animation: agM1 4.8s var(--e) infinite; } .v-agent .m2 { animation: agM2 4.8s var(--e) infinite; animation-delay: 1.2s; }
.v-agent .m3 { animation: agM3 4.8s var(--e) infinite; animation-delay: 2.4s; } .v-agent .m4 { animation: agM1 4.8s var(--e) infinite; animation-delay: 3.6s; background: var(--c); }
@keyframes agM1 { 0% { opacity: 0; transform: none; } 10% { opacity: 1; transform: none; } 40%, 80% { opacity: 1; transform: translate(70px, -33px) scale(.7); } 100% { opacity: 0; transform: translate(70px, -33px) scale(.7); } }
@keyframes agM2 { 0% { opacity: 0; transform: none; } 10% { opacity: 1; } 40%, 80% { opacity: 1; transform: translate(70px, 0) scale(.7); } 100% { opacity: 0; transform: translate(70px, 0) scale(.7); } }
@keyframes agM3 { 0% { opacity: 0; transform: none; } 10% { opacity: 1; } 40%, 80% { opacity: 1; transform: translate(70px, 33px) scale(.7); } 100% { opacity: 0; transform: translate(70px, 33px) scale(.7); } }

/* ai friends: bubbles */
.v-fr .fr-b { max-width: 70%; padding: 6px 9px; font: 500 10.5px/1.25 var(--f); opacity: 0; animation: frB 6s var(--e) infinite; }
.v-fr .b1 { left: 12px; top: 12px; background: var(--bg-3); color: var(--paper); border: 1px solid var(--rule); }
.v-fr .b2 { right: 12px; top: 46px; background: var(--paper); color: #0B0A09; animation-delay: 1.2s; }
.v-fr .b3 { left: 12px; top: 82px; display: flex; gap: 4px; padding: 8px 10px; background: var(--bg-3); border: 1px solid var(--rule); animation-delay: 2.4s; }
.v-fr .b3 i { position: relative; width: 5px; height: 5px; border-radius: 50%; background: var(--c); animation: frDot 1s ease-in-out infinite; }
.v-fr .b3 i:nth-child(2) { animation-delay: .15s; } .v-fr .b3 i:nth-child(3) { animation-delay: .3s; }
@keyframes frB { 0% { opacity: 0; transform: translateY(8px) scale(.96); } 8%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes frDot { 50% { transform: translateY(-3px); opacity: .5; } }

/* the outline wordmark, drawn in and swept with light */
.xh-mark { display: block; width: 100%; height: auto; margin-top: clamp(28px, 4vw, 56px); overflow: visible; user-select: none; }
.xh-mark text { font: 900 200px/1 var(--f); font-stretch: 62%; letter-spacing: -2px; text-transform: uppercase; }
.xh-mark .mk-line { fill: transparent; stroke: var(--rule-2); stroke-width: 1.2; stroke-dasharray: 1400; stroke-dashoffset: 1400; transition: stroke-dashoffset 3.2s cubic-bezier(.6, .05, .2, 1); }
.xh-mark.in .mk-line { stroke-dashoffset: 0; }
.xh-mark .mk-glow { fill: transparent; stroke: url(#mkSweep); stroke-width: 1.8; opacity: 0; transition: opacity 1s 2.4s; }
.xh-mark.in .mk-glow { opacity: 1; }
.xh-mark .mk-fill { fill: var(--bg-3); opacity: 0; transition: opacity 1.4s 2.2s; }
.xh-mark.in .mk-fill { opacity: .55; }
.xh-mark:hover .mk-fill { opacity: .9; transition-delay: 0s; }

@media (max-width: 980px) { .hwall.rows { margin-top: 18px; } }
@media (prefers-reduced-motion: reduce) {
  .hw-v *, .hw-v { animation: none !important; }
  .hw-t { opacity: 1; transform: none; transition: none; }
  .xh-mark .mk-line { stroke-dashoffset: 0; transition: none; }
}

/* ───────────── home tool cards ───────────── */
.tc-tabs { position: relative; display: flex; gap: clamp(14px, 2.2vw, 30px); margin: 0 0 clamp(18px, 2.4vw, 28px); border-bottom: 1px solid var(--rule); overflow-x: auto; scrollbar-width: none; }
.tc-tabs::-webkit-scrollbar { display: none; }
.tc-tabs button { position: relative; flex: none; padding: 12px 0 14px; border: 0; background: none; color: var(--mute); font: 600 14px/1 var(--f); letter-spacing: .01em; cursor: pointer; transition: color .25s; }
.tc-tabs button:hover { color: var(--dim); }
.tc-tabs button.on { color: var(--paper); }
.tc-tabs sup { margin-left: 4px; font: 500 10px/1 var(--m); color: var(--mute); }
.tc-ink { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--sig); transition: transform .5s var(--e), width .5s var(--e), background .3s; }
.tcg { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tc { min-width: 0; opacity: 0; transform: translateY(16px); transition: opacity .7s var(--e), transform .7s var(--e); transition-delay: calc(var(--d, 0) * 50ms); }
.tcg.in .tc { opacity: 1; transform: none; }
.tc.hide { display: none; }
.tc a { position: relative; display: flex; flex-direction: column; height: 100%; padding: 20px 20px 0; border: 1px solid var(--rule); border-radius: 2px; background: linear-gradient(180deg, #14110F, var(--bg-2)); color: var(--paper); text-decoration: none; overflow: hidden; isolation: isolate;
  transition: border-color .35s, transform .45s var(--e), box-shadow .45s var(--e); }
.tc a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--c) 14%, transparent), transparent 60%); opacity: 0; transition: opacity .45s; }
.tc a:hover, .tc a:focus-visible { border-color: color-mix(in srgb, var(--c) 70%, transparent); transform: translateY(-4px); box-shadow: 0 22px 44px -30px rgba(0, 0, 0, .9), 0 0 0 1px color-mix(in srgb, var(--c) 25%, transparent); outline: none; }
.tc a:hover::before, .tc a:focus-visible::before { opacity: 1; }
.tc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.tc-ic { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--rule-2); border-radius: 2px; background: var(--bg); color: var(--paper); transition: background .35s, border-color .35s, color .35s; }
.tc-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tc-ic svg * { stroke-dasharray: 90; stroke-dashoffset: 90; }
.tcg.in .tc-ic svg * { animation: tcDraw 1.4s var(--e) both; animation-delay: calc(var(--d, 0) * 50ms + .25s); }
.tc a:hover .tc-ic svg * { animation: tcDraw .9s var(--e) both; }
@keyframes tcDraw { from { stroke-dashoffset: 90; } to { stroke-dashoffset: 0; } }
.tc a:hover .tc-ic, .tc a:focus-visible .tc-ic { background: var(--c); border-color: var(--c); color: #0B0A09; }
.tc-tag { padding: 5px 7px; border: 1px solid var(--rule); border-radius: 2px; font: 500 9.5px/1 var(--m); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.tc-fam { display: flex; align-items: center; gap: 7px; font: 500 10px/1 var(--m); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.tc-fam i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.tc-name { margin: 8px 0 6px; font: 700 20px/1.15 var(--f); letter-spacing: -.005em; }
.tc-say { flex: 1; color: var(--dim); font-size: 14px; line-height: 1.5; }
.tc-flow { display: flex; align-items: center; gap: 10px; margin: 18px -20px 0; padding: 13px 20px; border-top: 1px solid var(--rule); font: 500 11px/1.2 var(--m); letter-spacing: .03em; color: var(--mute); }
.tc-flow > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-flow em { position: relative; flex: 1; min-width: 26px; height: 1px; background: var(--rule-2); }
.tc-flow em::after { content: ""; position: absolute; right: -1px; top: -3px; width: 6px; height: 6px; border-top: 1px solid var(--rule-2); border-right: 1px solid var(--rule-2); transform: rotate(45deg); }
.tc-flow em i { position: absolute; left: 0; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--c); opacity: 0; }
.tc a:hover .tc-flow em i, .tc a:focus-visible .tc-flow em i { animation: tcRun 1.2s ease-in-out infinite; }
@keyframes tcRun { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 5px); opacity: 0; } }
.tc-out { color: var(--paper); transition: color .3s; }
.tc a:hover .tc-out { color: var(--c); }
@media (max-width: 1100px) { .tcg { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .tcg { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .tc a { padding: 16px 16px 0; }
  .tc-top { margin-bottom: 12px; }
  .tc-name { font-size: 18px; }
  .tc-say { font-size: 13.5px; }
  .tc-flow { margin: 14px -16px 0; padding: 11px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .tc { opacity: 1; transform: none; transition: none; }
  .tc-ic svg * { stroke-dasharray: none; stroke-dashoffset: 0; animation: none !important; }
}
