/* =====================================================================
   s0sta.com/Web3-Smart-Contract-Projects — the Web3 page
   Loaded after style.css, so the theme, header, buttons, split headlines,
   terminal, status board, form and footer are the same as on the profile.
   This file only has the parts of the Web3 page.
   ===================================================================== */

/* ---------- Tokens and helpers ---------- */
.page-web3 {
  /* the five series, from violet to cyan along the S */
  --s1: #8b5cf6;
  --s2: #7176f2;
  --s3: #5790ee;
  --s4: #3ca9ea;
  --s5: #22c3e6;
}
.page-web3 .lead { max-width: 52ch; }
.page-web3 .btn { white-space: nowrap; }
.page-web3 .btn .ic { width: 17px; height: 17px; }
.page-web3 .section-head { margin-bottom: clamp(30px, 4vw, 52px); }
.page-web3 .section-head > div { display: grid; gap: 16px; min-width: 0; }
.pt-0 { padding-top: 0; }
.head-gap { margin-top: 16px; }
.eyebrow { font: 500 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted-d); }
.light .eyebrow { color: var(--muted-l); }
.page-web3 code { font: 500 .92em var(--mono); color: #ddd2ff; }
.page-web3 .light code { color: var(--violet-2); }

/* ---------- Header ---------- */
.brand-tag { font: 600 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 5px 7px 4px; border-radius: 7px; background: var(--ink); color: #fff; }
.nav-home { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 500; text-decoration: none; color: var(--muted-l); }
.nav-home:hover { color: var(--ink); background: rgba(22, 18, 58, .06); }
.nav-home .ic { width: 16px; height: 16px; transform: scaleX(-1); }
@media (max-width: 600px) { .nav-home span { display: none; } }

/* ---------- Hero ---------- */
.page-web3 .hero { padding-block: clamp(118px, 13vw, 168px) clamp(60px, 7vw, 100px); }
.page-web3 .pulse-dot { flex: none; }
.pill[data-state="wait"] .pulse-dot { --c: 196, 181, 253; }
.hero-title em { font-style: normal; background: linear-gradient(100deg, #b49bff 10%, #5fd6f0 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-web3 .hero-lede { max-width: 54ch; }
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, auto)); justify-content: start; gap: 14px clamp(22px, 3vw, 44px); margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line-d); }
.hero-stats div { display: flex; flex-direction: column-reverse; gap: 4px; min-width: 0; }
.hero-stats dd { font: 300 clamp(30px, 3vw, 42px)/1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.hero-stats dt { font-size: 13.5px; color: var(--muted-d); }
.page-web3 .hero-hint { opacity: .85; }
.page-web3 .hero-tip { background: rgba(22, 18, 58, .92); line-height: 1.45; color: var(--muted-d); }
.page-web3 .hero-tip b { color: var(--text-d); }
@media (max-width: 900px) { .page-web3 .hero-visual { margin-block: -18px -36px; } }
@media (max-width: 560px) { .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Split headlines: a bit smaller, the lines are longer here ---------- */
.page-web3 .split { font-size: clamp(40px, 8.4vw, 118px); }

/* ---------- dApp grid: filter and search ---------- */
.toolbar { display: grid; gap: 14px; margin-bottom: 22px; }
.tool-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; }
.seg { justify-self: start; display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; border-radius: 16px; background: rgba(22, 18, 58, .06); }
.seg button {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border: 0; border-radius: 12px; background: transparent;
  font-size: 14px; font-weight: 500; color: var(--muted-l); cursor: pointer; transition: background-color .2s, color .2s, box-shadow .2s;
}
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(22, 18, 58, .16); }
.seg b { font: 600 11.5px/1 var(--mono); padding: 4px 6px; border-radius: 999px; background: rgba(22, 18, 58, .07); }
.seg button[aria-pressed="true"] b { background: var(--ink); color: #fff; }
.seg i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted-l); }
.seg [data-filter="I"] i { background: var(--s1); }
.seg [data-filter="II"] i { background: var(--s2); }
.seg [data-filter="III"] i { background: var(--s3); }
.seg [data-filter="IV"] i { background: var(--s4); }
.seg [data-filter="V"] i { background: var(--s5); }
.search { position: relative; flex: 1 1 280px; max-width: 380px; min-width: 0; }
.search input { width: 100%; padding: 11px 14px 11px 40px; border-radius: 14px; border: 1px solid var(--line-l); background: #fff; color: var(--ink); font: 400 15px/1.4 var(--body); transition: border-color .2s, box-shadow .2s; }
.search input::placeholder { color: #8a84ad; }
.search input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(124, 58, 237, .14); }
.search .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted-l); pointer-events: none; }
.result-line { font-size: 14px; color: var(--muted-l); }
@media (max-width: 600px) { .search { max-width: none; } }

/* ---------- dApp cards ---------- */
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 16px; }
.app {
  --c: var(--s1);
  position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0;
  padding: 22px 22px 20px; border-radius: 24px; background: #fff; color: var(--ink);
  border: 1px solid var(--line-l); box-shadow: 0 1px 0 rgba(22, 18, 58, .04);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.app:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 45%, transparent); box-shadow: 0 22px 44px -28px rgba(46, 26, 120, .45); }
.app:focus { outline: none; }
.app[data-series="II"] { --c: var(--s2); }
.app[data-series="III"] { --c: var(--s3); }
.app[data-series="IV"] { --c: var(--s4); }
.app[data-series="V"] { --c: var(--s5); }
.app.is-flash { animation: flash 1.6s ease; }
@keyframes flash { 0%, 100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0); } 25% { box-shadow: 0 0 0 6px rgba(124, 58, 237, .35); } }
.app-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.app-ic {
  display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 14px;
  background: color-mix(in srgb, var(--c) 14%, #fff); color: color-mix(in srgb, var(--c) 70%, #16123a);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 26%, transparent);
  transition: transform .3s ease;
}
.app-ic svg { width: 24px; height: 24px; }
.app:hover .app-ic { transform: rotate(-6deg) scale(1.06); }
.app-id { display: grid; gap: 1px; min-width: 0; }
.app-no { font: 500 13px/1.2 var(--mono); color: var(--muted-l); }
.app-series { font-size: 13px; color: var(--muted-l); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-live { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 8px; border-radius: 999px; background: rgba(22, 18, 58, .05); font-size: 12.5px; font-weight: 600; color: var(--muted-l); white-space: nowrap; }
.app-live i { width: 8px; height: 8px; border-radius: 50%; background: #b9b4d6; }
.app[data-state="wait"] .app-live i { animation: blinkdot 1s ease-in-out infinite; }
.app[data-state="ok"] .app-live { color: #0f7a55; background: rgba(52, 211, 153, .14); }
.app[data-state="ok"] .app-live i { background: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, .18); }
.app[data-state="warn"] .app-live { color: #8a5a00; background: rgba(251, 191, 36, .18); }
.app[data-state="warn"] .app-live i { background: #f59e0b; }
.app[data-state="down"] .app-live { color: #b4233c; background: rgba(251, 113, 133, .14); }
.app[data-state="down"] .app-live i { background: #e11d48; }
.app[data-state="none"] .app-live { display: none; }
@keyframes blinkdot { 50% { opacity: .3; } }
.app-title { font: 400 23px/1.18 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.app-text { font-size: 15.5px; line-height: 1.55; color: var(--muted-l); }
.app-skills { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.app-skills li { font-size: 12.5px; font-weight: 550; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-l); color: #3b3566; }
.app-meta { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 10px 22px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-l); }
.app-meta div { display: grid; gap: 3px; min-width: 0; }
.app-meta dt { font-size: 12px; color: var(--muted-l); }
.app-meta dd { font: 500 15px/1.3 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.addr { text-decoration: none; border-bottom: 1px dashed currentColor; }
.addr:hover { color: var(--violet-2); }
.lvl { display: inline-flex; gap: 3px; height: 15px; align-items: flex-end; }
.lvl i { width: 5px; border-radius: 2px; background: rgba(22, 18, 58, .14); }
.lvl i:nth-child(1) { height: 5px; }
.lvl i:nth-child(2) { height: 7px; }
.lvl i:nth-child(3) { height: 9px; }
.lvl i:nth-child(4) { height: 11px; }
.lvl i:nth-child(5) { height: 13px; }
.lvl i:nth-child(6) { height: 15px; }
.lvl i.on { background: var(--c); }
.app-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.app-code { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 600; text-decoration: none; color: var(--muted-l); }
.app-code:hover { color: var(--ink); }
.app-code .ic { width: 16px; height: 16px; }

/* the big platforms: dark cards inside the light part */
.app.is-platform {
  background: radial-gradient(120% 90% at 100% 0%, rgba(34, 195, 230, .16), transparent 55%), radial-gradient(90% 80% at 0% 100%, rgba(124, 58, 237, .22), transparent 60%), var(--night-2);
  color: var(--text-d); border-color: rgba(196, 181, 253, .18);
}
.app.is-platform:hover { border-color: rgba(34, 195, 230, .5); box-shadow: 0 26px 50px -26px rgba(15, 12, 38, .8); }
.is-platform .app-ic { background: rgba(34, 195, 230, .14); color: #8ce7f8; box-shadow: inset 0 0 0 1px rgba(34, 195, 230, .3); }
.is-platform .app-no, .is-platform .app-series, .is-platform .app-text, .is-platform .app-meta dt, .is-platform .app-code { color: var(--muted-d); }
.is-platform .app-code:hover { color: var(--text-d); }
.is-platform .app-skills li { border-color: var(--line-d2); color: #dcd6ff; }
.is-platform .app-meta { border-color: var(--line-d); }
.is-platform .lvl i { background: rgba(255, 255, 255, .16); }
.is-platform .lvl i.on { background: linear-gradient(to top, #7c3aed, #22c3e6); }
.is-platform .addr:hover { color: var(--cyan); }
.is-platform .app-live { background: rgba(255, 255, 255, .07); color: var(--muted-d); }
.is-platform[data-state="ok"] .app-live { color: #8ff0c9; background: rgba(52, 211, 153, .14); }
.is-platform[data-state="warn"] .app-live { color: #fde68a; background: rgba(251, 191, 36, .14); }
.is-platform[data-state="down"] .app-live { color: #fecdd3; background: rgba(251, 113, 133, .16); }
.is-platform .btn-ink { background: var(--paper); color: var(--ink); }
.is-platform .btn-ink:hover { background: #fff; }
.is-platform :focus-visible { outline-color: var(--lilac); }
.badge { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font: 600 12px/1.2 var(--mono); color: #8ce7f8; background: rgba(34, 195, 230, .12); border: 1px solid rgba(34, 195, 230, .28); }
.apps-empty { padding: 40px 20px; border-radius: 24px; border: 1px dashed var(--line-l); text-align: center; color: var(--muted-l); display: grid; gap: 14px; justify-items: center; }

/* cards come in after a filter change */
.app.is-in { animation: cardin .42s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 26ms); }
@keyframes cardin { from { opacity: 0; transform: translateY(12px) scale(.985); } }

/* ---------- Series path ---------- */
.path { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 1081px) {
  .path-n1 { grid-template-columns: minmax(0, 340px); }
  .path-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .path-n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .path-n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.step {
  --c: var(--s1);
  position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; height: 100%;
  padding: 20px 18px 18px; border-radius: 22px; background: #fff; border: 1px solid var(--line-l); color: var(--ink);
  text-decoration: none; cursor: pointer; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.step:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 50%, transparent); box-shadow: 0 18px 36px -26px rgba(46, 26, 120, .45); }
.step[data-series="II"] { --c: var(--s2); }
.step[data-series="III"] { --c: var(--s3); }
.step[data-series="IV"] { --c: var(--s4); }
.step[data-series="V"] { --c: var(--s5); }
.step-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.step-roman { font: 300 40px/1 var(--display); letter-spacing: -.04em; color: var(--c); }
.step-range { font: 500 13px var(--mono); color: var(--muted-l); text-align: end; }
.step-name { font: 500 17px/1.25 var(--display); letter-spacing: -.01em; }
.step-text { font-size: 14px; line-height: 1.5; color: var(--muted-l); }
.step-bar { margin-top: auto; padding-top: 10px; display: grid; gap: 6px; }
.step-bar > span { font: 500 13px var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.step-track { display: block; width: 100%; height: 8px; }
.step-bg { fill: rgba(22, 18, 58, .08); }
.step-fill { fill: var(--c); }
.path-note { margin-top: 14px; font-size: 13.5px; color: var(--muted-l); }
@media (max-width: 1080px) { .path { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 680px) { .path { grid-template-columns: 1fr; } }

/* ---------- Method ---------- */
.method-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.mlist { list-style: none; padding: 0; margin-top: 34px; display: grid; counter-reset: m; }
.mlist li { counter-increment: m; position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 16px; padding-block: 18px; border-top: 1px solid var(--line-d); }
.mlist li::before {
  content: counter(m, decimal-leading-zero); grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  font: 500 14px var(--mono); color: #ddd2ff; background: rgba(167, 139, 250, .14); box-shadow: inset 0 0 0 1px rgba(167, 139, 250, .25);
}
.mlist h3 { font: 400 20px/1.3 var(--display); letter-spacing: -.01em; }
.mlist p { color: var(--muted-d); font-size: 15.5px; }
.method-side { position: sticky; top: 112px; display: grid; gap: 16px; }
.page-web3 .term-body { font-size: 13px; line-height: 1.85; }
.term-body .tl { display: block; }
.term-body .tw { color: #fff; }
.term-note { font-size: 13.5px; color: var(--muted-d); }
.stack { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.stack li { font: 500 12.5px/1.2 var(--mono); padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line-d2); color: #dcd6ff; }
@media (max-width: 900px) { .method-grid { grid-template-columns: 1fr; } .method-side { position: static; } }

/* ---------- Live status of every dApp ---------- */
.page-web3 .st-board { margin-top: 8px; }
.st-again { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-d2); background: transparent; color: var(--text-d); font-size: 13.5px; font-weight: 500; cursor: pointer; transition: border-color .2s, background-color .2s; }
.st-again:hover { border-color: var(--lilac); background: rgba(196, 181, 253, .08); }
.st-again[disabled] { opacity: .6; cursor: progress; }
.st-again .ic { width: 15px; height: 15px; }
.tiles { list-style: none; padding: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 196px), 1fr)); gap: 8px; }
.tile { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; padding: 11px 13px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line-d); text-decoration: none; transition: border-color .2s, background-color .2s; }
.tile:hover { border-color: var(--line-d2); background: rgba(255, 255, 255, .05); }
.tile-dot { width: 10px; height: 10px; border-radius: 50%; background: #4b4675; }
.tile[data-state="wait"] .tile-dot { animation: blinkdot 1s ease-in-out infinite; }
.tile[data-state="ok"] .tile-dot { background: var(--ok); box-shadow: 0 0 0 4px rgba(52, 211, 153, .14); }
.tile[data-state="warn"] .tile-dot { background: var(--warn); box-shadow: 0 0 0 4px rgba(251, 191, 36, .14); }
.tile[data-state="down"] .tile-dot { background: var(--down); box-shadow: 0 0 0 4px rgba(251, 113, 133, .14); }
.tile-name { font: 500 14px/1.3 var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-name small { color: var(--muted-d); font-weight: 400; margin-right: 6px; }
.tile-ms { font: 500 12.5px var(--mono); color: var(--muted-d); font-variant-numeric: tabular-nums; }
.page-web3 .st-note { padding: 0 24px 18px; }
@media (max-width: 560px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; }
  .tile { grid-template-columns: 10px minmax(0, 1fr); padding: 10px 11px; }
  .tile-ms { display: none; }
  .page-web3 .st-banner { padding: 16px 18px; }
  .page-web3 .st-note { padding: 0 18px 16px; }
}

/* ---------- Try a dApp ---------- */
.flow { list-style: none; padding: 0; position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.flow::before { content: ""; position: absolute; top: 31px; left: 10%; right: 10%; height: 2px; background: linear-gradient(90deg, var(--s1), var(--s5)); opacity: .55; }
.flow::after { content: ""; position: absolute; top: 27px; left: 10%; width: 10px; height: 10px; border-radius: 50%; background: #eafcff; box-shadow: 0 0 14px 4px rgba(34, 195, 230, .7); animation: packet 5.5s cubic-bezier(.6, 0, .4, 1) infinite; }
@keyframes packet { 0% { left: 10%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { left: calc(90% - 10px); opacity: 0; } }
.flow li { position: relative; display: grid; align-content: start; justify-items: center; gap: 10px; text-align: center; min-width: 0; }
.flow-n { position: relative; z-index: 1; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 20px; background: var(--night-2); border: 1px solid var(--line-d2); color: var(--lilac); box-shadow: 0 0 0 6px var(--night); }
.flow-n svg { width: 26px; height: 26px; }
.flow h3 { font: 500 16.5px/1.3 var(--display); }
.flow p { font-size: 14px; color: var(--muted-d); max-width: 22ch; }
.start { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.start div { padding: 20px; border-radius: 20px; border: 1px solid var(--line-d); background: rgba(255, 255, 255, .025); display: grid; gap: 6px; align-content: start; }
.start b { font: 500 13px var(--mono); color: var(--cyan); }
.start h3 { font: 500 17px/1.3 var(--display); }
.start p { font-size: 14.5px; color: var(--muted-d); }
@media (max-width: 980px) {
  .flow { grid-template-columns: 1fr; gap: 0; }
  .flow::before { top: 31px; bottom: 31px; left: 30px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--s1), var(--s5)); }
  .flow::after { display: none; }
  .flow li { grid-template-columns: 62px minmax(0, 1fr); justify-items: start; text-align: left; gap: 2px 16px; padding-bottom: 18px; }
  .flow-n { grid-row: span 2; }
  .flow h3 { align-self: end; }
  .flow p { max-width: none; }
  .start { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) { .start { grid-template-columns: 1fr; } }

/* ---------- Work with me: offers and the request form ---------- */
.p-work {
  background:
    radial-gradient(80% 60% at 0% 0%, rgba(124, 58, 237, .22), transparent 60%),
    radial-gradient(60% 50% at 100% 100%, rgba(8, 145, 178, .2), transparent 60%),
    var(--night);
}
.work-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.offers { list-style: none; padding: 0; margin-top: 30px; display: grid; gap: 10px; }
.offer { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--line-d); background: rgba(255, 255, 255, .03); transition: border-color .2s; }
.offer:hover { border-color: var(--line-d2); }
.offer-ic { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: rgba(167, 139, 250, .15); color: var(--lilac); }
.offer-copy { min-width: 0; }
.offer-title { font: 500 17px/1.3 var(--display); }
.offer-text { margin-top: 2px; font-size: 14.5px; color: var(--muted-d); }
.offer .chip-btn { white-space: nowrap; }
.work-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: 14.5px; color: var(--muted-d); }
.work-note .ic { margin-top: 3px; color: var(--cyan); }
.p-work .form-card { scroll-margin-top: 100px; }
@media (max-width: 900px) { .work-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .offer { grid-template-columns: 40px minmax(0, 1fr); }
  .offer-ic { width: 40px; height: 40px; padding: 10px; }
  .offer .chip-btn { grid-column: 1 / -1; justify-self: start; }
}

/* ---------- More from s0sta ---------- */
.more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.more-card { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; min-height: 210px; padding: clamp(22px, 3vw, 32px); border-radius: var(--r-l); text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
.more-card:hover { transform: translateY(-3px); }
.more-me { background: var(--paper); color: var(--ink); }
.more-me:hover { box-shadow: 0 26px 50px -30px rgba(196, 181, 253, .5); }
.more-me :focus-visible, .more-me:focus-visible { outline-color: var(--lilac); }
.more-hacks { background: linear-gradient(155deg, #221a5c 0%, #0c3a4e 100%); border: 1px solid var(--line-d); color: var(--text-d); }
.more-hacks:hover { box-shadow: 0 26px 50px -30px rgba(34, 195, 230, .45); }
.more-card .eyebrow { margin-bottom: 10px; }
.more-me .eyebrow { color: var(--muted-l); }
.more-title { font: 400 clamp(24px, 2.4vw, 32px)/1.15 var(--display); letter-spacing: -.025em; }
.more-text { margin-top: 8px; font-size: 15.5px; opacity: .85; max-width: 40ch; }
.more-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 600; font-size: 14.5px; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.more-go .ic { width: 16px; height: 16px; }
.mc-photo { width: clamp(96px, 12vw, 132px); height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 22px; box-shadow: 0 18px 34px -18px rgba(22, 18, 58, .6); }
.mc-art { width: clamp(110px, 14vw, 160px); height: auto; filter: drop-shadow(0 20px 26px rgba(5, 3, 25, .5)); }
@media (max-width: 900px) { .more { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .more-card { grid-template-columns: 1fr; } .mc-photo, .mc-art { order: -1; } }

/* ---------- Footer ---------- */
.page-web3 .footer-note { max-width: 60ch; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  .flow::after { display: none; }
}
