/* Sol Village site: the game's wood, paper and gold look. Pixel art is scaled with image-rendering: pixelated. */
:root {
  --ink: #3a2c1e; --muted: #7d6c55; --line: #e2d3b0; --paper: #fdf6e3; --paper2: #f6ead0;
  --wood: #8b5a2b; --wood-d: #5a3a1c; --wood-l: #b07a43; --edge: #2a1a0c;
  --gold: #ffcf4a; --gold-d: #c98a12; --night: #1b1426; --night2: #241a33; --cream: #fff4d6;
  --hd: "Pixelify Sans", "Nunito", sans-serif;
  --tx: "Nunito", system-ui, sans-serif;
  --wrap: 1160px;
}
html[lang="th"] { --hd: "Noto Sans Thai", "Nunito", sans-serif; --tx: "Noto Sans Thai", "Nunito", sans-serif; }
html[lang="zh-Hans"] { --hd: "Noto Sans SC", sans-serif; --tx: "Nunito", "Noto Sans SC", sans-serif; }
html[lang="ko"] { --hd: "Noto Sans KR", sans-serif; --tx: "Nunito", "Noto Sans KR", sans-serif; }
html[lang="vi"] { --hd: "Nunito", sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--night); color: var(--cream); font: 17px/1.65 var(--tx); overflow-x: hidden; }
img { max-width: 100%; }
.px, .spr, .scene, .ico, .hero img, .shot img, .ca img, .panel h3 img, .brand img, .foot img { image-rendering: pixelated; }
a { color: var(--gold); }
a:hover { color: #fff; }
code { font: 600 .92em ui-monospace, Consolas, monospace; background: rgba(0,0,0,.25); padding: 1px 6px; border-radius: 3px; word-break: break-all; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 820px; }
.center { text-align: center; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
h1, h2, h3 { font-family: var(--hd); line-height: 1.2; margin: 0 0 .5em; }
.title { font-size: clamp(28px, 4vw, 42px); color: var(--gold); text-shadow: 3px 3px 0 var(--edge); letter-spacing: .5px; }
.lead { font-size: 19px; opacity: .92; max-width: 760px; margin: 0 auto 28px; }
.note { opacity: .85; font-size: 15px; margin-top: 24px; }
section { padding: 84px 0; position: relative; }
.soon { opacity: .75; }
.soon i { font-style: normal; font-size: 12px; background: rgba(255,255,255,.12); padding: 1px 6px; border-radius: 8px; margin-left: 4px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 700 17px var(--hd); text-decoration: none; cursor: pointer;
  padding: 10px 20px; border: 3px solid var(--edge); border-radius: 4px; color: #fff; text-shadow: 1px 1px 0 var(--edge); transition: transform .12s, filter .12s; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn.gold { background: linear-gradient(#ffe27a, var(--gold) 45%, var(--gold-d)); color: #3b2405; text-shadow: 1px 1px 0 #fff3b0; box-shadow: inset 0 2px 0 #fff3b0, 0 4px 0 var(--edge); }
.btn.wood { background: linear-gradient(var(--wood-l), var(--wood)); box-shadow: inset 0 2px 0 #c99560, 0 4px 0 var(--edge); }
.btn.big { font-size: 21px; padding: 13px 28px; }
.btn.small { font-size: 15px; padding: 6px 14px; }
.btn.tiny { font-size: 13px; padding: 3px 10px; border-width: 2px; background: var(--wood); }
.btn.disabled { opacity: .6; cursor: default; transform: none; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.center .cta, .hero .cta { justify-content: center; }

/* top bar */
.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 18px;
  background: linear-gradient(var(--wood-l), var(--wood)); border-bottom: 3px solid var(--edge); box-shadow: inset 0 2px 0 #c99560, 0 4px 0 rgba(0,0,0,.35); }
.brand img { height: 50px; width: auto; display: block; }
.links { display: flex; align-items: center; gap: 4px; }
.links > a:not(.btn) { color: #fff; text-decoration: none; font: 700 16px var(--hd); padding: 6px 10px; text-shadow: 1px 1px 0 var(--edge); border-radius: 3px; }
.links > a:not(.btn):hover, .links > a[aria-current] { background: rgba(0,0,0,.18); }
.links .btn { margin-left: 6px; }
.langs { position: relative; }
.langs summary { list-style: none; cursor: pointer; color: #fff; font: 700 15px var(--tx); padding: 6px 10px; border-radius: 3px; text-shadow: 1px 1px 0 var(--edge); white-space: nowrap; }
.langs summary::-webkit-details-marker { display: none; }
.langs[open] summary, .langs summary:hover { background: rgba(0,0,0,.18); }
.langs .menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--paper); border: 3px solid var(--edge); border-radius: 4px; padding: 6px; min-width: 190px;
  box-shadow: 0 6px 0 rgba(0,0,0,.35); display: grid; }
.langs .menu a { color: var(--ink); text-decoration: none; padding: 6px 10px; border-radius: 3px; font-weight: 600; }
.langs .menu a:hover { background: var(--paper2); }
.langs .menu a[aria-current] { background: var(--gold); }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 3px; background: #fff; margin: 4px 0; box-shadow: 1px 1px 0 var(--edge); }

/* hero banner */
.hero { min-height: min(86vh, 760px); padding: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; isolation: isolate; }
.hero .sky { position: absolute; inset: 0; z-index: -2; }
.hero .scene { width: 100%; height: 100%; object-fit: cover; object-position: center 65%; animation: drift 40s ease-in-out infinite alternate; transform-origin: 50% 70%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 50% 42%, rgba(27,20,38,.55), rgba(27,20,38,.15) 60%), linear-gradient(transparent 60%, var(--night)); }
@keyframes drift { from { transform: scale(1.04) translateX(-1%); } to { transform: scale(1.1) translateX(1%); } }
.hero-in { text-align: center; padding: 70px 16px 150px; max-width: 900px; }
.hero .logo { display: block; margin: 0 auto; width: min(420px, 82vw); height: auto; filter: drop-shadow(0 6px 0 rgba(0,0,0,.35)); animation: bob 4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.hero h1 { font-size: clamp(30px, 5vw, 54px); color: #fff; text-shadow: 3px 3px 0 var(--edge), 0 0 22px rgba(0,0,0,.6); margin-top: 10px; }
.hero .sub { font-size: clamp(17px, 2vw, 21px); text-shadow: 2px 2px 0 var(--edge); max-width: 720px; margin: 0 auto; background: rgba(27,20,38,.55); padding: 10px 18px; border-radius: 6px; }
/* the token's contract address, right under the hero buttons: the address and a copy button, or "coming soon" */
.hero-ca { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; max-width: 100%; margin-top: 22px;
  padding: 10px 16px; background: rgba(27,20,38,.82); border: 3px dashed var(--gold); border-radius: 6px; box-shadow: 0 4px 0 rgba(0,0,0,.35);
  position: relative; z-index: 5; }                    /* over the heroes walking along the bottom */
.hero-ca img { width: 32px; height: 32px; }
.hero-ca .lbl { font: 700 18px var(--hd); color: var(--cream); text-shadow: 2px 2px 0 var(--edge); }
.hero-ca .lbl b { color: var(--gold); }
.hero-ca code { font-size: 15px; color: #fff; background: rgba(0,0,0,.4); padding: 4px 8px; border-radius: 4px; word-break: break-all; }
.hero-ca .btn.tiny { font-size: 15px; padding: 5px 14px; background: linear-gradient(#ffe27a, var(--gold) 45%, var(--gold-d)); }
.hero-ca .when { font: 700 16px var(--hd); color: var(--night); background: var(--gold); padding: 3px 12px; border-radius: 20px; animation: casoon 2.4s ease-in-out infinite; }
@keyframes casoon { 50% { box-shadow: 0 0 14px var(--gold); } }
@media (prefers-reduced-motion: reduce) { .hero-ca .when { animation: none; } }
.badge { display: inline-block; font: 700 14px var(--hd); background: rgba(27,20,38,.75); border: 2px solid var(--gold); color: var(--gold); padding: 3px 12px; border-radius: 20px; margin: 8px 0 0; }
.motes i { position: absolute; left: var(--x); bottom: -20px; width: 6px; height: 6px; background: var(--gold); box-shadow: 0 0 10px var(--gold); opacity: 0;
  animation: rise 9s linear infinite; animation-delay: var(--d); z-index: -1; }
@keyframes rise { 10% { opacity: .9; } 90% { opacity: .7; } to { transform: translate(30px, -78vh); opacity: 0; } }
.road { position: absolute; left: 0; right: 0; bottom: 0; height: 160px; pointer-events: none; }
.walker { position: absolute; bottom: calc(14px + var(--y) * 22px); left: -160px; animation: walk var(--t) linear infinite; animation-delay: calc(var(--d) * -1); z-index: calc(3 - var(--y)); }
@keyframes walk { to { transform: translateX(calc(100vw + 320px)); } }

/* animated sprite: a 6-frame row of a 288x480 sheet (48 px cells) */
.spr { display: inline-block; width: calc(48px * var(--s)); height: calc(48px * var(--s)); background: var(--img) no-repeat;
  background-size: calc(288px * var(--s)) calc(480px * var(--s)); background-position-y: calc(-48px * var(--row) * var(--s));
  animation: frames .8s steps(6) infinite; }
@keyframes frames { from { background-position-x: 0; } to { background-position-x: calc(-288px * var(--s)); } }

/* framed screenshots and panels */
.frame { background: var(--paper); border: 4px solid var(--edge); border-radius: 4px; box-shadow: inset 0 0 0 4px var(--paper2), 0 8px 0 rgba(0,0,0,.4); }
.shot { margin: 0; padding: 8px; color: var(--ink); }
.shot img { display: block; width: 100%; height: auto; border: 2px solid var(--edge); }
.shots .shot img { aspect-ratio: 16 / 9; object-fit: cover; object-position: top; }   /* every screenshot the same size */
.shots .shot figcaption { font: 700 17px var(--hd); color: var(--ink); text-align: center; padding: 10px 4px 4px; }
.shot figcaption { font-size: 14px; padding: 8px 4px 2px; color: var(--muted); }
.token .two, .roadmap .two { align-items: stretch; }
.panel { background: rgba(27,20,38,.82); border: 3px solid var(--gold-d); border-radius: 6px; padding: 26px; box-shadow: 0 8px 0 rgba(0,0,0,.35); backdrop-filter: blur(2px); }
.panel h3 { display: flex; align-items: center; gap: 10px; color: var(--gold); font-size: 22px; margin-top: 8px; }
.panel h3 img { width: 40px; height: 40px; }
ul.ticks, ul.dots { padding: 0; list-style: none; }
ul.ticks li, ul.dots li { padding-left: 28px; position: relative; margin: 8px 0; }
ul.ticks li::before { content: "✦"; position: absolute; left: 4px; color: var(--gold); }
ul.dots li::before { content: "◆"; position: absolute; left: 6px; color: #b48cff; font-size: 13px; top: 3px; }

/* bands with PixelLab backdrops */
.band { background-size: cover; background-position: center; image-rendering: pixelated; }
.band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--night), rgba(27,20,38,.72) 18%, rgba(27,20,38,.72) 82%, var(--night)); }
.band > * { position: relative; }
.band.forest { background-image: url('../img/bg_forest.png'); }
.band.night { background: radial-gradient(ellipse at 50% 0%, #3b2a5e, var(--night) 70%); }
.band.night::before { display: none; }
.band.dungeon { background-image: url('../img/bg_dungeon.png'); }

/* what */
.what { background: linear-gradient(var(--night), var(--night2)); }

/* feature cards */
.card { background: var(--paper); color: var(--ink); border: 4px solid var(--edge); border-radius: 4px; padding: 22px 20px 16px;
  box-shadow: inset 0 0 0 4px var(--paper2), 0 8px 0 rgba(0,0,0,.4); transition: transform .2s; }
.card:hover { transform: translateY(-4px) rotate(-.4deg); }
.card .ico { width: 64px; height: 64px; display: block; margin-bottom: 8px; filter: drop-shadow(2px 3px 0 rgba(0,0,0,.25)); }
.card h3 { font-size: 21px; color: var(--wood-d); }
.card p { margin: 0; font-size: 16px; }

/* how it works */
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { position: relative; background: linear-gradient(var(--wood-l), var(--wood)); border: 4px solid var(--edge); border-radius: 4px; padding: 30px 18px 18px; text-align: center;
  box-shadow: inset 0 2px 0 #c99560, 0 8px 0 rgba(0,0,0,.4); }
.step .n { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); width: 36px; height: 36px; display: grid; place-items: center;
  background: var(--gold); color: #3b2405; border: 3px solid var(--edge); border-radius: 50%; font: 700 18px var(--hd); }
.step .ico { width: 64px; height: 64px; }
.step h3 { color: #fff; text-shadow: 2px 2px 0 var(--edge); font-size: 20px; margin-top: 6px; }
.step p { margin: 0; font-size: 15px; }
.step:not(:last-child)::after { content: "➜"; position: absolute; right: -19px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 22px; text-shadow: 2px 2px 0 var(--edge); z-index: 2; }

/* heroes showcase */
.rtabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 10px 0 22px; }
.rtab { font: 700 14px var(--hd); color: var(--rc); background: rgba(0,0,0,.35); border: 2px solid var(--rc); border-radius: 4px; padding: 6px 12px; cursor: pointer; display: grid; line-height: 1.1; }
.rtab span { color: #fff; font-size: 15px; }
.rtab[aria-selected="true"] { background: var(--rc); color: #2a1a0c; box-shadow: 0 0 18px var(--rc); }
.rtab[aria-selected="true"] span { color: #2a1a0c; }
.rrow { margin: 0 0 24px; }
.js .rrow:not([data-on]) { display: none; }
.rhead { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; border-bottom: 2px solid var(--rc); padding: 0 4px 6px; margin-bottom: 14px; }
.rhead b { color: var(--rc); font: 700 20px var(--hd); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hcard { margin: 0; background: linear-gradient(#3a2b52, #20172e); border: 3px solid var(--rc); border-radius: 8px; padding: 10px; text-align: center;
  box-shadow: 0 0 0 3px var(--edge), 0 0 22px color-mix(in srgb, var(--rc) 45%, transparent); animation: cardin .5s both; }
.hcard .stage { height: 190px; display: grid; place-items: end center; background: radial-gradient(ellipse at 50% 90%, color-mix(in srgb, var(--rc) 40%, transparent), transparent 60%); }
.hcard figcaption { display: grid; margin-top: 6px; }
.hcard figcaption b { font: 700 16px var(--hd); color: #fff; }
.hcard figcaption span { font-size: 13px; color: var(--rc); }
@keyframes cardin { from { transform: translateY(16px) scale(.9); opacity: 0; } }
.rrow[data-r="5"] .hcard { animation: cardin .5s both, glow 2.4s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 3px var(--edge), 0 0 36px var(--rc); } }

/* token */
.ca { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: rgba(0,0,0,.35); border: 2px dashed var(--gold-d); border-radius: 4px; padding: 10px 12px; margin: 14px 0; }
.ca img { width: 32px; height: 32px; }
.ca span { flex: 1; min-width: 0; }
.warn { background: rgba(192,57,43,.18); border-left: 4px solid #e2604f; padding: 10px 12px; border-radius: 3px; font-size: 15px; }

/* faq */
.qa { background: var(--paper); color: var(--ink); border: 3px solid var(--edge); border-radius: 4px; margin: 12px 0; box-shadow: 0 5px 0 rgba(0,0,0,.35); }
.qa summary { cursor: pointer; padding: 14px 44px 14px 18px; font: 700 18px var(--hd); color: var(--wood-d); list-style: none; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 16px; top: 8px; font-size: 26px; color: var(--wood); transition: transform .2s; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa > div { padding: 0 18px 16px; }
.qa a { color: var(--wood); }

.final { background: linear-gradient(var(--night), #2b1d14); }

/* footer */
.foot { background: #160f09; border-top: 3px solid var(--edge); padding: 44px 0 26px; font-size: 15px; }
.foot .wrap:first-child { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.fcol { display: flex; flex-direction: column; gap: 6px; }
.fcol b { font-family: var(--hd); color: var(--gold); }
.fcol a { color: var(--cream); text-decoration: none; opacity: .85; }
.fcol a:hover { opacity: 1; color: var(--gold); }
.fcol img { width: 141px; height: auto; }
.legal { font-size: 13px; opacity: .65; margin-top: 18px; }

/* scroll reveal (only with JS, never for reduced motion) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- docs ---------- */
html.docs body { background: #2b1d14 url('../game/bg_tile.png'); }
main.docs { display: grid; grid-template-columns: 270px minmax(0, 1fr) 210px; gap: 26px; max-width: 1340px; margin: 0 auto; padding: 26px 16px 60px; align-items: start; }
.side { position: sticky; top: 82px; max-height: calc(100vh - 100px); overflow: auto; background: var(--paper); color: var(--ink); border: 3px solid var(--edge); border-radius: 4px; padding: 12px;
  box-shadow: inset 0 0 0 3px var(--paper2), 0 6px 0 rgba(0,0,0,.4); }
.toc-all { display: grid; gap: 2px; margin-top: 10px; }
.toc-all a { display: flex; gap: 8px; align-items: baseline; color: var(--ink); text-decoration: none; padding: 6px 8px; border-radius: 3px; font-weight: 600; font-size: 15px; line-height: 1.35; }
.toc-all a .k { font: 700 12px var(--hd); color: var(--muted); min-width: 16px; }
.toc-all a:hover { background: var(--paper2); }
.toc-all a[aria-current] { background: linear-gradient(var(--wood-l), var(--wood)); color: #fff; text-shadow: 1px 1px 0 var(--edge); }
.toc-all a[aria-current] .k { color: var(--gold); }
.search { position: relative; }
.search input { width: 100%; font: 15px var(--tx); padding: 8px 10px; border: 2px solid var(--wood); border-radius: 3px; background: #fff; color: var(--ink); }
.results { display: grid; gap: 4px; margin-top: 6px; }
.results a { display: block; background: var(--paper2); color: var(--ink); text-decoration: none; padding: 6px 8px; border-radius: 3px; font-size: 14px; }
.results a b { display: block; color: var(--wood-d); }
.results a small { color: var(--muted); }
.results mark { background: #ffe27a; }
.results p { margin: 4px; font-size: 14px; color: var(--muted); }
.doc { background: var(--paper); color: var(--ink); border: 4px solid var(--edge); border-radius: 4px; padding: 30px 42px 34px; box-shadow: inset 0 0 0 4px var(--paper2), 0 8px 0 rgba(0,0,0,.4); min-width: 0; }
.doc h1 { font-size: clamp(28px, 4vw, 40px); color: var(--wood-d); }
.doc h2 { font-size: 26px; color: var(--wood); margin-top: 1.6em; padding-bottom: 6px; border-bottom: 3px dashed var(--line); }
.doc h3 { font-size: 20px; color: var(--wood-d); margin-top: 1.3em; }
.doc a { color: #8a4b12; }
.doc .anchor { opacity: 0; margin-left: -.9em; padding-right: .2em; text-decoration: none; color: var(--muted); }
.doc h2:hover .anchor, .doc h3:hover .anchor { opacity: 1; }
.doc code { background: var(--paper2); color: #6b3d10; }
.doc img { image-rendering: pixelated; }
.doc blockquote { margin: 1em 0; padding: 8px 16px; border-left: 4px solid var(--wood-l); background: var(--paper2); }
.tablewrap { overflow-x: auto; margin: 1em 0; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; }
.doc th { background: linear-gradient(var(--wood-l), var(--wood)); color: #fff; text-shadow: 1px 1px 0 var(--edge); text-align: left; font-family: var(--hd); }
.doc th, .doc td { border: 2px solid #d9c7a0; padding: 7px 10px; }
.doc tr:nth-child(even) td { background: var(--paper2); }
.callout { border: 2px solid; border-radius: 4px; padding: 4px 16px; margin: 1.2em 0; }
.callout.warn { border-color: #d9534f; background: #fdecea; }
.callout.warn::before { content: "⚠"; float: left; margin: 10px 10px 0 -4px; color: #c0392b; font-size: 20px; }
.callout.tip { border-color: #2e8b57; background: #eaf7ef; }
.callout.note { border-color: #c9a227; background: #fff8dc; }
.crumb { font-size: 14px; margin: 0 0 6px; color: var(--muted); }
.crumb a { color: var(--muted); }
.sidebtn { display: none; margin-bottom: 12px; }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; }
.pn a { display: grid; text-decoration: none; background: var(--paper2); border: 2px solid var(--line); border-radius: 4px; padding: 10px 14px; color: var(--wood-d); font-weight: 700; }
.pn a:hover { border-color: var(--wood); }
.pn small { color: var(--muted); font-weight: 600; }
.pn .next { text-align: right; }
.onpage { position: sticky; top: 82px; display: grid; gap: 4px; font-size: 14px; }
.onpage b { font-family: var(--hd); color: var(--gold); margin-bottom: 4px; }
.onpage a { color: var(--cream); opacity: .8; text-decoration: none; }
.onpage a:hover { opacity: 1; color: var(--gold); }

/* ---------- small screens ---------- */
@media (max-width: 1180px) {
  main.docs { grid-template-columns: 250px minmax(0, 1fr); }
  .onpage { display: none; }
}
@media (max-width: 980px) {
  .burger { display: block; }
  .links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--wood); border-bottom: 3px solid var(--edge); padding: 8px 16px 14px; display: none; }
  .links.open { display: flex; }
  .links .btn { margin: 6px 0 0; }
  .langs .menu { position: static; margin-top: 6px; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 30px 18px; }
  .step:not(:last-child)::after { display: none; }
  .two { grid-template-columns: 1fr; }
  .foot .wrap:first-child { grid-template-columns: 1fr 1fr; }
  main.docs { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; position: static; max-height: none; }
  .side.open { display: block; }
  .sidebtn { display: inline-flex; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  section { padding: 60px 0; }
  .grid3, .grid2, .steps { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .hcard .stage { height: 140px; }
  .hcard .spr { --s: 3 !important; }
  .doc { padding: 20px 16px; }
  .pn { grid-template-columns: 1fr; }
  .foot .wrap:first-child { grid-template-columns: 1fr; }
  .hero-in { padding-bottom: 130px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  .walker { display: none; }
}
