/* One footer for every makina.fun page (React app, Directory, static Market pages).
   A floating panel, the header's partner: brand + tagline + two buttons beside three link columns, and a huge
   "makina" cropped by the panel's bottom edge (letters power on as it scrolls into view and light like keys under
   the pointer). Below the panel, one quiet line: copyright, network, contact. Literal colours (DESIGN.md §4.1) so
   it renders the same where the token variables are not defined. */
footer.site-footer{position:relative;display:block;max-width:none;margin:64px 0 0;padding:0 0 18px;border:0;color:#f2efea;font:400 16px/1.55 'DM Sans',DM,sans-serif}
.site-footer a{color:#d2cdc6;font-size:14px;text-decoration:none;transition:color .16s cubic-bezier(.2,.8,.2,1)}
.site-footer a:hover{color:#fb866a}
.site-footer a:focus-visible{outline:2px solid #f2efea;outline-offset:3px;border-radius:4px}
.site-footer ul{list-style:none;margin:0;padding:0}
.site-footer li{margin:0;padding:0}

/* The panel: raised surface, hairline border, a warm light in the top-right corner. overflow:clip (not hidden) so
   the wordmark's view timeline still follows the page scroll. */
.site-footer-panel{position:relative;overflow:clip;border:1px solid #2c2927;border-radius:20px;background:radial-gradient(90% 120% at 100% 0%,rgba(242,100,61,.10),transparent 55%),linear-gradient(180deg,#151311 0%,#110f0c 100%);box-shadow:inset 0 1px 0 rgba(242,239,234,.05)}
.site-footer-top{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,2fr);gap:48px;padding:36px 40px 8px}

.site-footer-head{display:flex;flex-direction:column;align-items:flex-start;gap:14px}
.site-footer-head .site-brand{display:block;width:132px;max-width:100%}
.site-footer-head .site-brand img{display:block;width:100%;height:auto}
.site-footer-head p{max-width:30ch;margin:0;color:#aaa59e;font:400 15px/1.55 'DM Sans',DM,sans-serif}
.site-footer-general{display:flex;gap:8px;flex-wrap:wrap}
.site-footer .site-footer-general a{display:inline-flex;align-items:center;min-height:36px;padding:0 14px;border:1px solid #3a3530;border-radius:10px;background:rgba(242,239,234,.03);color:#f2efea;font-weight:600;font-size:13px;transition:border-color .16s cubic-bezier(.2,.8,.2,1),background-color .16s cubic-bezier(.2,.8,.2,1)}
.site-footer .site-footer-general a:hover{border-color:#f2643d;background:#25140b;color:#f2efea}

.site-footer-content{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.site-footer .site-footer-group{display:block}
.site-footer .site-footer-group ul{display:flex;flex-direction:column;align-items:flex-start}
.site-footer .site-footer-group h2{margin:0 0 10px;color:#7d7872;font:600 11.5px/1 'DM Sans',DM,sans-serif;letter-spacing:.1em;text-transform:uppercase}
.site-footer-content a{position:relative;display:inline-flex;align-items:center;min-height:30px;max-width:100%;padding:0;overflow-wrap:anywhere}
.site-footer-content a::after{content:"";position:absolute;left:0;right:0;bottom:5px;height:1px;background:#f2643d;transform:scaleX(0);transform-origin:left;transition:transform .22s cubic-bezier(.2,.8,.2,1)}
.site-footer-content a:hover::after{transform:scaleX(1)}

/* The wordmark: full panel width, cropped by the panel's bottom edge, soft light-to-dark fill and a fine outline. */
.site-footer-plate{position:relative;height:calc(clamp(64px,19vw,300px) * .56);margin-top:8px;overflow:hidden}
.site-footer-word{display:block;font:700 clamp(64px,19vw,300px)/.9 'Space Grotesk',Space,sans-serif;letter-spacing:-.045em;text-align:center;white-space:nowrap;color:transparent}
.site-footer .site-footer-key{width:auto;margin:0}
.site-footer-key{display:inline-block;background-image:linear-gradient(180deg,rgba(242,239,234,.24) 0%,rgba(242,239,234,.09) 45%,rgba(242,239,234,.01) 75%);-webkit-background-clip:text;background-clip:text;-webkit-text-stroke:1px rgba(242,239,234,.2);transition:color .28s cubic-bezier(.2,.8,.2,1),-webkit-text-stroke-color .28s cubic-bezier(.2,.8,.2,1),transform .28s cubic-bezier(.2,.8,.2,1)}
.site-footer-key:hover{color:#f2643d;-webkit-text-stroke-color:#f2643d;transform:translateY(-8px);transition-duration:.12s}
.site-footer-key:active{color:#ff7a52;transform:translateY(-2px)}
.site-footer-key:hover+.site-footer-key,.site-footer-key:has(+.site-footer-key:hover){-webkit-text-stroke-color:rgba(242,100,61,.55);transform:translateY(-3px)}
/* Power-on: as the panel scrolls into view, the letters switch on one after another (an orange glow, then back),
   like a machine's indicator lights. Scroll-driven (never loops); without scroll timelines the wordmark is still. */
.site-footer-key:nth-child(2){--i:1}.site-footer-key:nth-child(3){--i:2}.site-footer-key:nth-child(4){--i:3}.site-footer-key:nth-child(5){--i:4}.site-footer-key:nth-child(6){--i:5}.site-footer-key:nth-child(7){--i:6}.site-footer-key:nth-child(8){--i:7}
@supports (animation-timeline:view()){.site-footer-key{animation:site-footer-boot linear backwards;animation-timeline:view();animation-range:entry calc(5% + var(--i,0) * 7%) entry calc(40% + var(--i,0) * 9%)}}
@keyframes site-footer-boot{0%{opacity:.15}55%{opacity:1;color:rgba(242,100,61,.9);-webkit-text-stroke-color:#f2643d;text-shadow:0 0 34px rgba(242,100,61,.45)}100%{opacity:1;color:transparent;text-shadow:none}}
@keyframes site-footer-boot-soft{from{opacity:.3}to{opacity:1}}

.site-footer-bottom{display:flex;justify-content:space-between;align-items:center;gap:8px 24px;flex-wrap:wrap;padding:14px 8px 0;color:#7d7872;font-size:13px}
.site-footer-bottom p{display:flex;align-items:center;flex-wrap:wrap;gap:6px 16px;margin:0;font-size:13px}
.site-footer-network{display:inline-flex;align-items:center;gap:8px;color:#aaa59e}
.site-footer-network i{width:6px;height:6px;border-radius:50%;background:#7fc7b6;box-shadow:0 0 0 3px rgba(127,199,182,.14)}
.site-footer-bottom nav{display:flex;gap:20px}
.site-footer-bottom a{display:inline-flex;align-items:center;min-height:30px;padding:0;color:#aaa59e;font-size:13px}
body[data-market-section] footer.site-footer{margin:64px var(--market-gutter) 0}

@media(max-width:900px){.site-footer-top{grid-template-columns:1fr;gap:28px;padding:28px 24px 4px}}
@media(max-width:700px){footer.site-footer{margin-top:44px}.site-footer-panel{border-radius:16px}.site-footer-top{padding:24px 20px 4px}.site-footer-content{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 16px}.site-footer .site-footer-group:last-child{grid-column:1/-1}.site-footer .site-footer-group:last-child ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:16px}.site-footer-plate{height:calc(26vw * .56)}.site-footer-word{font-size:26vw}.site-footer-content a,.site-footer-bottom a{min-height:44px}.site-footer .site-footer-general a{min-height:40px}.site-footer-bottom{flex-direction:column;align-items:center;gap:2px;text-align:center}.site-footer-bottom p{justify-content:center;gap:2px 14px}.site-footer-bottom nav{justify-content:center;width:auto}body[data-market-section] footer.site-footer{margin-top:44px}}
@media(hover:none){.site-footer-key{transition:none}}
@media(prefers-reduced-motion:reduce){.site-footer-key{animation-name:site-footer-boot-soft}.site-footer a,.site-footer-general a,.site-footer-key,.site-footer-content a::after{transition:none}.site-footer-key:hover,.site-footer-key:active,.site-footer-key:hover+.site-footer-key,.site-footer-key:has(+.site-footer-key:hover){transform:none}}
