/* MrWeb Silk theme styles */
:root, [data-theme="dark"] {
  --bg: #121019;
  --bg2: #19151f;
  --card: rgba(32, 27, 42, 0.72);
  --card-solid: #1c1824;
  --text: #efeaf2;
  --muted: #a69fb3;
  --line: rgba(214, 208, 232, 0.14);
  --red: #ff5a44;
  --red-ink: #ffffff;
  --red-fill: #e23d2a;
  --teal: #3cc0dc;
  --gold: #f5b545;
  --spider: #2b2535;
  --spider-edge: rgba(214, 208, 232, 0.55);
  --glow: radial-gradient(1200px 700px at 22% 30%, rgba(120, 100, 170, 0.18), transparent 60%);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #eef1f2;
  --bg2: #e6eaec;
  --card: rgba(255, 255, 255, 0.7);
  --card-solid: #f8fafa;
  --text: #191b22;
  --muted: #5b626e;
  --line: rgba(25, 27, 34, 0.12);
  --red: #e5412f;
  --red-ink: #ffffff;
  --red-fill: #d9381f;
  --teal: #1593ad;
  --gold: #d48d17;
  --spider: #1c1b22;
  --spider-edge: rgba(25, 27, 34, 0.0);
  --glow: radial-gradient(1200px 700px at 22% 30%, rgba(255, 255, 255, 0.9), transparent 60%);
  color-scheme: light;
}
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Vazirmatn, Tahoma, sans-serif; -webkit-font-smoothing: antialiased; }
.site { position: relative; min-height: 100vh; background: var(--glow); font-size: 17px; line-height: 1.9; overflow-x: clip; }
.silk-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
main, .nav, .foot { position: relative; z-index: 2; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.red { color: var(--red); }
.muted { color: var(--muted); }
.kicker { display: inline-block; font-size: 14px; font-weight: 700; color: var(--teal); letter-spacing: 0; }

/* nav */
.nav { position: fixed; top: 16px; inset-inline: 16px; z-index: 30; display: flex; align-items: center; gap: 28px;
  padding: 8px 12px 8px 10px; border-radius: 20px; background: color-mix(in oklab, var(--bg) 62%, transparent);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); max-width: 1180px; margin: 0 auto; }
.brand { display: flex; align-items: center; padding: 2px 6px; border-radius: 12px; }
.brand img { height: 46px; width: auto; display: block; }
[data-theme="dark"] .brand { background: rgba(255,255,255,0.92); }
.nav nav { display: flex; gap: 4px; flex: 1; }
.nav nav a { padding: 6px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--muted); transition: color .2s, background .2s; }
.nav nav a:hover { color: var(--text); background: var(--line); }
.theme-btn { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--line); overflow: hidden; }
.theme-btn span { display: grid; }

/* spider */
.spider-rig { position: fixed; top: 0; z-index: 25; width: 64px; pointer-events: none; }
.spider-thread { position: absolute; top: 0; left: 31.5px; width: 1px; background: linear-gradient(var(--spider-edge), color-mix(in oklab, var(--text) 45%, transparent)); }
.spider-btn { position: absolute; left: 0; width: 64px; height: 64px; pointer-events: auto; cursor: grab; transition: transform .25s; }
.spider-btn:hover { transform: scale(1.08); }
.spider-btn:active { cursor: grabbing; }
.spider-head, .spider-body { fill: var(--spider); stroke: var(--spider-edge); stroke-width: 0.8; }
.spider-mark { fill: var(--red); }
.spider-eye { fill: var(--gold); }
.leg { stroke: var(--spider); stroke-width: 2.4; }
[data-theme="dark"] .leg { stroke: #cfc8dd; stroke-width: 1.7; }
.legs g:first-child { animation: wiggle 2.6s ease-in-out infinite; transform-origin: 0 8px; }
.legs g:last-child .l2, .legs g:last-child .l4 { animation: wiggle2 3.1s ease-in-out infinite; transform-origin: 0 8px; }
@keyframes wiggle { 50% { transform: scale(-1, 1) rotate(-4deg); } }
@keyframes wiggle2 { 50% { transform: rotate(5deg); } }

/* hero */
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 140px 7vw 60px; max-width: 1340px; margin: 0 auto; position: relative; }
.hero-copy { max-width: 720px; }
.hero h1 { font-weight: 900; font-size: clamp(64px, 10.5vw, 168px); line-height: 1.25; margin: 4px 0 18px; white-space: nowrap; }
.hero h1 .ch, .hero h1 .red { display: inline-block; }
.hero h1 .red { margin-inline-start: 0.22em; }
.lead { font-size: clamp(19px, 1.8vw, 24px); line-height: 1.8; margin: 0; font-weight: 400; }
.lead b { font-weight: 900; color: var(--red); }
.cta { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 16px; font-weight: 700; font-size: 16px; transition: transform .2s, background .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--red-fill); color: var(--red-ink); box-shadow: 0 10px 30px -10px var(--red); }
.btn.ghost { border: 1px solid var(--line); background: var(--card); backdrop-filter: blur(8px); }
.hint { position: absolute; bottom: 34px; inset-inline-start: 7vw; margin: 0; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.hint-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 var(--teal); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--teal) 70%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }

/* blocks */
.sect { max-width: 1180px; margin: 0 auto; padding: 120px 7vw 80px; }
.heading { margin-bottom: 48px; position: relative; display: inline-block; }
.heading h2, .contact-title, .modal h2 { font-weight: 900; font-size: clamp(40px, 6vw, 76px); line-height: 1.1; margin: 6px 0 0; }
.silk-underline { display: block; width: 100%; height: 18px; margin-top: 6px; }
.silk-underline path { fill: none; stroke: var(--red); stroke-width: 2.4; stroke-linecap: round; }

.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: end; }
.about-text p { font-size: 20px; margin: 0 0 12px; max-width: 34ch; }
.about-figures { display: flex; gap: 40px; justify-content: flex-end; }
.about-figures div { display: flex; flex-direction: column; }
.about-figures b { font-size: 56px; font-weight: 900; line-height: 1; color: var(--teal); }
.about-figures span { color: var(--muted); font-size: 15px; margin-top: 8px; }
.skill-thread { position: relative; margin-top: 40px; direction: ltr; }
.skill-thread svg { position: absolute; inset: 0; overflow: visible; }
.skill-silk { fill: none; stroke: color-mix(in oklab, var(--text) 45%, transparent); stroke-width: 1.2; }
.knot { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.knot-dot { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px color-mix(in oklab, var(--gold) 25%, transparent); transition: transform .2s; }
.knot:hover .knot-dot { transform: scale(1.35); }
.knot-label { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-family: Archivo, sans-serif; font-weight: 600; font-size: 15px; }

/* works */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.chip { position: relative; padding: 8px 18px; border-radius: 999px; font-size: 15px; font-weight: 500; border: 1px solid var(--line); background: var(--card); }
.chip span { position: relative; z-index: 1; }
.chip.on { color: var(--red-ink); border-color: transparent; }
.chip.on { background: var(--red-fill); }
.works-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 64px 28px; }
.work-slot { position: relative; padding-top: 44px; }
.hang-thread { position: absolute; top: 0; left: 50%; width: 1px; height: 46px; background: color-mix(in oklab, var(--text) 40%, transparent); }
.hang-thread::before { content: ""; position: absolute; top: -3px; left: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.work-card { display: block; width: 100%; text-align: right; border-radius: 22px; padding: 10px; background: var(--card); border: 1px solid var(--line); backdrop-filter: blur(10px); transition: box-shadow .3s; }
.work-card:hover { box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); }
.work-meta { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 8px 4px; }
.work-meta h3 { margin: 0; font-size: 22px; font-weight: 900; }
.work-meta span { font-size: 14px; color: var(--muted); }

.thumb { aspect-ratio: 4 / 3; border-radius: 14px; background: linear-gradient(135deg, var(--a), var(--b)); padding: 18px 18px 0; overflow: hidden; position: relative; }
.thumb::after { content: ""; position: absolute; inset: 0; background: repeating-conic-gradient(from 0deg at 85% 15%, rgba(255,255,255,.08) 0 2deg, transparent 2deg 22deg); }
.thumb-browser { height: 100%; background: #fbfbfc; border-radius: 10px 10px 0 0; box-shadow: 0 10px 30px rgba(0,0,0,.25); overflow: hidden; position: relative; z-index: 1; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.work-card:hover .thumb-browser { transform: translateY(-8px); }
.thumb-bar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; background: #eceef1; }
.thumb-bar i { width: 7px; height: 7px; border-radius: 50%; background: #c9ccd3; }
.thumb-bar span { margin-inline-start: auto; font-family: Archivo, sans-serif; font-size: 14px; color: #8a8f99; }
.thumb-page { padding: 16px; color: #1b1d24; }
.tp-hero b { display: block; font-size: 22px; font-weight: 900; color: var(--a); }
.tp-hero em { display: block; height: 7px; border-radius: 4px; background: #e2e4e9; margin-top: 8px; width: 80%; }
.tp-hero em.short { width: 50%; }
.tp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.tp-grid span { height: 46px; border-radius: 8px; background: color-mix(in oklab, var(--a) 18%, #f1f2f4); }
.tp-grid span:nth-child(2) { background: color-mix(in oklab, var(--b) 22%, #f1f2f4); }
.thumb-big { aspect-ratio: auto; height: 100%; min-height: 340px; }
.thumb-big .tp-hero b { font-size: 40px; }
.thumb-big .tp-grid span { height: 110px; }
.thumb-big .tp-grid + .tp-grid span { height: 70px; }

.modal { position: fixed; inset: 0; z-index: 60; direction: rtl; font-family: Vazirmatn, sans-serif; color: var(--text); line-height: 1.9; background: var(--bg2); overflow-y: auto; display: grid; place-items: center; padding: 90px 7vw 50px; }
.web-burst { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.web-burst line, .web-burst polyline { fill: none; stroke: color-mix(in oklab, var(--text) 16%, transparent); stroke-width: 1; }
.modal-close { position: fixed; top: 22px; left: 22px; width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); z-index: 2; transition: transform .2s; }
.modal-close:hover { transform: rotate(90deg); }
.modal-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; max-width: 1180px; width: 100%; align-items: stretch; }
.modal-copy dl { margin: 28px 0; display: grid; gap: 16px; }
.modal-copy dt { font-size: 14px; color: var(--muted); }
.modal-copy dd { margin: 0; font-size: 18px; font-weight: 500; }
.modal-copy dd.result { font-size: 26px; font-weight: 900; color: var(--red); }
.stack { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; padding: 0; margin: 0; }
.stack li { font-family: Archivo, sans-serif; font-weight: 600; font-size: 14px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); }
.modal-nav { display: flex; gap: 10px; margin-top: 36px; }
.modal-nav button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 14px; border: 1px solid var(--line); font-size: 15px; font-weight: 500; background: var(--card); }
.modal-nav button:hover { border-color: var(--red); color: var(--red); }

/* courses */
.courses { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.course { border-bottom: 1px solid var(--line); }
.course-row { width: 100%; display: grid; grid-template-columns: 70px 1fr auto 44px; align-items: center; gap: 16px; padding: 26px 4px; text-align: right; transition: padding .3s, color .3s; }
.course-row:hover { padding-inline-start: 18px; }
.course-row:hover .course-title, .course.open .course-title { color: var(--red); }
.course-no { font-size: 44px; font-weight: 900; color: color-mix(in oklab, var(--text) 22%, transparent); line-height: 1; }
.course-title { font-size: clamp(22px, 2.6vw, 32px); font-weight: 900; transition: color .3s; }
.course-meta { font-size: 15px; color: var(--muted); }
.course-plus { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--line); }
.course-body { overflow: hidden; }
.lessons { list-style: none; margin: 0; padding: 0 86px 30px 0; display: flex; flex-wrap: wrap; gap: 10px; position: relative; }
.lessons li { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 15px; }
.bead { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* contact */
.contact { min-height: 90vh; display: flex; flex-direction: column; justify-content: center; }
.contact-title { font-size: clamp(48px, 8vw, 110px); line-height: 1.12; margin: 10px 0 18px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.clink { display: inline-flex; align-items: center; gap: 12px; padding: 16px 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); font-family: Archivo, sans-serif; font-weight: 600; font-size: 17px; backdrop-filter: blur(10px); transition: transform .2s, border-color .2s; }
.clink:hover { transform: translateY(-3px); border-color: var(--red); }
.clink svg { color: var(--red); }
.clink.icon-only { padding: 16px; }
.foot { text-align: center; padding: 30px; font-size: 14px; color: var(--muted); }
.toast { font-family: Vazirmatn, sans-serif !important; direction: rtl; }

@media (max-width: 900px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .modal-inner { grid-template-columns: 1fr; }
  .about-figures { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .nav { gap: 8px; top: 10px; inset-inline: 10px; }
  .nav nav { overflow-x: auto; }
  .nav nav a { padding: 6px 9px; font-size: 14px; white-space: nowrap; }
  .brand img { height: 36px; }
  .hero { padding-top: 330px; justify-content: flex-start; }
  .works-grid { grid-template-columns: 1fr; }
  .course-row { grid-template-columns: 44px 1fr 40px; }
  .course-meta { display: none; }
  .course-no { font-size: 32px; }
  .lessons { padding-right: 0; }
  .knot-label { font-size: 14px; }
  .knot:nth-of-type(even) .knot-label { top: -40px; }
  .skill-thread { margin-top: 64px; }
}
@media (max-width: 520px) {
  .nav { flex-wrap: wrap; row-gap: 6px; padding: 8px; }
  .nav nav { order: 3; flex-basis: 100%; justify-content: space-between; }
  .theme-btn { margin-inline-start: auto; }
  .hero { padding-top: 360px; }
}

/* services */
.service { border-bottom: 1px solid var(--line); }
.service-row { width: 100%; display: grid; grid-template-columns: 64px 1fr 44px; align-items: center; gap: 20px; padding: 26px 4px; text-align: right; transition: padding .3s; }
.service-row:hover { padding-inline-start: 18px; }
.service-icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; color: var(--red); background: var(--card); border: 1px solid var(--line); transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.service-row:hover .service-icon, .service.open .service-icon { transform: rotate(-8deg) scale(1.06); }
.service-head { display: flex; flex-direction: column; }
.service-title { font-size: clamp(24px, 2.8vw, 34px); font-weight: 900; line-height: 1.4; transition: color .3s; }
.service-row:hover .service-title, .service.open .service-title { color: var(--red); }
.service-line { font-size: 16px; color: var(--muted); }
.service-body { padding: 0 88px 30px 0; }
.service-body .lessons { padding: 0; }
.service-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.btn.sm { padding: 10px 20px; font-size: 15px; border-radius: 14px; }
@media (max-width: 760px) {
  .service-row { grid-template-columns: 52px 1fr 40px; gap: 14px; }
  .service-icon { width: 52px; height: 52px; border-radius: 16px; }
  .service-body { padding-right: 0; }
}

/* thumb variants */
.tp-chat { display: flex; flex-direction: column; gap: 8px; }
.tp-chat b { font-size: 18px; font-weight: 900; color: var(--a); margin-bottom: 2px; }
.bub { display: block; height: 22px; width: 62%; border-radius: 12px 12px 12px 4px; background: #e9ecf0; }
.bub.out { align-self: flex-end; width: 48%; border-radius: 12px 12px 4px 12px; background: color-mix(in oklab, var(--a) 30%, #fff); }
.bub.short { width: 38%; }
.bub.btns { display: flex; gap: 6px; background: none; height: 24px; width: 70%; }
.bub.btns i { flex: 1; border-radius: 8px; border: 1.5px solid color-mix(in oklab, var(--a) 55%, #fff); }
.thumb-page.tp-dark { background: #17141d; height: 100%; }
.tp-code { display: flex; flex-direction: column; gap: 9px; font-family: Archivo, monospace; font-size: 14px; color: #cfc8dd; }
.tp-code span { display: flex; gap: 6px; align-items: center; font-style: normal; }
.tp-code i { display: inline-block; height: 8px; border-radius: 4px; font-style: normal; }
.tp-code i.k { width: 26px; background: var(--b); }
.tp-code i.f { width: 40px; background: var(--a); }
.tp-code i.s { width: 90px; background: #3a3446; }
.tp-code i.s.short { width: 50px; }
.tp-code .ind { padding-left: 18px; }
.tp-code .ind2 { padding-left: 36px; }
.tp-code .ok { color: #7fd6a4; font-weight: 600; margin-top: 4px; }
.thumb-big .tp-chat .bub { height: 40px; }
.thumb-big .tp-chat b { font-size: 34px; }
.thumb-big .tp-code { font-size: 18px; gap: 18px; }
.thumb-big .tp-code i { height: 12px; }


/* ---------- WordPress theme additions ---------- */
.admin-bar .nav { top: 48px; }
.admin-bar .spider-rig { top: 32px; }
.nav nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav nav li { margin: 0; }
.nav nav a { display: block; }
.brand .custom-logo-link { display: block; }
.brand .custom-logo { height: 46px; width: auto; display: block; }
.theme-btn .i-moon { display: none; }
[data-theme="light"] .theme-btn .i-sun { display: none; }
[data-theme="light"] .theme-btn .i-moon { display: block; }
.theme-btn svg { animation: iconIn .45s cubic-bezier(.3,1.4,.5,1); }
@keyframes iconIn { from { transform: translateY(-14px) rotate(-40deg); opacity: 0; } }
.skip-link { position: absolute; right: -9999px; top: 8px; z-index: 100; background: var(--red-fill); color: #fff; padding: 8px 16px; border-radius: 10px; }
.skip-link:focus { right: 16px; }

/* entrance */
.hero .kicker, .hero .lead, .hero .cta, .hero .hint { animation: fadeUp .8s cubic-bezier(.2,.7,.2,1) both; }
.hero .kicker { animation-delay: .2s; }
.hero .lead { animation-delay: 1s; }
.hero .cta { animation-delay: 1.2s; }
.hero .hint { animation-delay: 1.8s; }
.hero h1 .ch { animation: dropIn .9s cubic-bezier(.3,1.45,.5,1) both .25s; }
.hero h1 .red { animation: dropIn 1.1s cubic-bezier(.3,1.7,.5,1) both .7s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-0.9em); } }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.silk-underline path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s ease .3s; }
.heading.in .silk-underline path { stroke-dashoffset: 0; }

/* works */
.work-slot { animation: hangIn .7s cubic-bezier(.3,1.4,.5,1) both; }
.work-slot.is-hidden { display: none; }
@keyframes hangIn { from { opacity: 0; transform: translateY(-30px); } }
.work-card { transform-origin: 50% -40px; will-change: transform; }
.thumb-browser img { display: block; width: 100%; height: calc(100% - 32px); object-fit: cover; object-position: top; }

/* modal */
.modal[hidden] { display: none; }
.web-burst line, .web-burst polyline { stroke-dasharray: 1; stroke-dashoffset: 1; }
.web-burst.draw line { animation: draw .9s cubic-bezier(.3,.7,.2,1) forwards .05s; }
.web-burst.draw polyline { animation: draw .7s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.modal-inner { animation: fadeUp .5s cubic-bezier(.2,.7,.2,1) both .2s; }
.modal-inner.swap { animation: fadeUp .45s cubic-bezier(.2,.7,.2,1) both; }
.modal-copy .link { display: inline-flex; margin-top: 4px; color: var(--teal); font-weight: 700; }

/* services accordion */
.service-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.3,.7,.2,1); }
.service.open .service-wrap { grid-template-rows: 1fr; }
.service-wrap > div { overflow: hidden; }
.service .course-plus { transition: transform .35s cubic-bezier(.3,1.4,.5,1); }
.service.open .course-plus { transform: rotate(45deg); }
.service .lessons li { opacity: 0; transform: translateY(-14px); transition: opacity .4s, transform .4s; }
.service.open .lessons li { opacity: 1; transform: none; }
.service.open .lessons li:nth-child(2) { transition-delay: .07s; }
.service.open .lessons li:nth-child(3) { transition-delay: .14s; }
.service.open .lessons li:nth-child(4) { transition-delay: .21s; }
.service.open .lessons li:nth-child(n+5) { transition-delay: .28s; }

/* toast */
.mw-toast { position: fixed; bottom: 24px; left: 50%; z-index: 80; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; padding: 12px 22px; border-radius: 14px; background: var(--card-solid); border: 1px solid var(--line); color: var(--text); font-size: 15px; transition: opacity .3s, transform .3s; }
.mw-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* inner pages (blog, pages, single project) */
.page-wrap { max-width: 860px; margin: 0 auto; padding: 150px 7vw 100px; position: relative; z-index: 2; }
.page-wrap h1 { font-weight: 900; font-size: clamp(40px, 6vw, 72px); line-height: 1.2; margin: 8px 0 24px; }
.entry { font-size: 18px; }
.entry img { max-width: 100%; height: auto; border-radius: 16px; }
.entry a { color: var(--red); text-decoration: underline; text-underline-offset: 4px; }
.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.post-list a { display: block; padding: 24px 26px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.post-list a:hover { border-color: var(--red); transform: translateY(-2px); }
.post-list h2 { margin: 0 0 4px; font-size: 24px; font-weight: 900; }
.post-list p { margin: 0; color: var(--muted); }
.pagination { margin-top: 30px; display: flex; gap: 8px; }
.pagination .page-numbers { padding: 6px 14px; border-radius: 10px; border: 1px solid var(--line); }
.pagination .current { background: var(--red-fill); color: #fff; border-color: transparent; }
.single-work .modal-inner { animation: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
.spider-rig { transform-origin: 50% 0; }
.hero, .sect { scroll-margin-top: 70px; }
.work-card { color: inherit; }
.hero h1 .red { margin-inline-start: 0; }
