/* =====================================================================
   Inner pages: every page type gets its own look.
     .umer-x-list   blog / category / author / search  (bento cards)
     .umer-x-post   single post                         (long-read)
     .umer-x-page   pages: document, /tools/ launcher, tool app frame
     .umer-x-vlog   vlog                                (cinema)
     .umer-x-404    not found                           (glitch)
   Loaded after styles.css, wp.css and tools.css on every page except the homepage.
   ===================================================================== */

@property --x-ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

.umer-x { position: relative; }
.umer-x .outline { color: transparent; -webkit-text-stroke: 2px var(--lime); }

/* ---------- shared bits ---------- */
.x-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--lime); }
.x-kicker__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(212,255,58,.6); animation: xPing 2s infinite; }
@keyframes xPing { 70%, 100% { box-shadow: 0 0 0 10px rgba(212,255,58,0); } }
.x-label { margin: 80px 0 24px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 14px; }
.x-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* words rise out of a mask (pages.js wraps each word) */
.x-rise .x-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.x-rise .x-w__i { display: inline-block; transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 70ms + 150ms); }
.x-rise:not(.x-in) .x-w__i { transform: translateY(105%) rotate(4deg); }

/* cursor spotlight on any .x-spot */
.x-spot { --mx: 50%; --my: 40%; }
.x-spot::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; border-radius: inherit; background: radial-gradient(520px circle at var(--mx) var(--my), rgba(212,255,58,.10), transparent 60%); opacity: 0; transition: opacity .5s; }
.x-spot:hover::before { opacity: 1; }

.x-btn { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 99px; border: 1px solid var(--line); color: var(--paper); font-weight: 700; font-size: 15px; text-decoration: none !important; overflow: hidden; isolation: isolate; transition: color .35s, border-color .35s; }
.x-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--lime); transform: translateY(101%); border-radius: 50% 50% 0 0; transition: transform .5s var(--ease), border-radius .5s var(--ease); }
.x-btn:hover { color: var(--ink) !important; border-color: var(--lime); }
.x-btn:hover::before { transform: none; border-radius: 0; }
.x-btn--lime { background: var(--lime); color: var(--ink) !important; border-color: var(--lime); }
.x-btn--lime::before { background: var(--coral); }

/* page transition curtain */
.x-curtain { position: fixed; inset: 0; z-index: 200; pointer-events: none; display: grid; grid-template-columns: repeat(5, 1fr); }
.x-curtain i { background: var(--lime); transform: scaleY(0); transform-origin: bottom; transition: transform .55s cubic-bezier(.7, 0, .2, 1); transition-delay: calc(var(--i) * 45ms); }
.x-curtain i:nth-child(even) { background: #c8f42c; }
.x-curtain.is-in i { transform: scaleY(1); }
.x-curtain.is-out i { transform-origin: top; }
.x-curtain__word { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: var(--display); font-weight: 600; font-size: clamp(28px, 4vw, 56px); color: var(--ink); opacity: 0; transition: opacity .25s .25s; white-space: nowrap; }
.x-curtain.is-in .x-curtain__word { opacity: 1; }

/* generic reveal used by pages.js (cards, blocks) */
.x-up { transition: opacity .8s var(--ease), translate .9s var(--ease); transition-delay: var(--d, 0ms); }
.x-js .x-up:not(.x-in) { opacity: 0; translate: 0 40px; }

/* =====================================================================
   1) LISTS: blog, category, author, search
   ===================================================================== */
.umer-x-list { padding-top: 140px; }
.x-hero { position: relative; padding: clamp(30px, 6vh, 60px) 0 clamp(40px, 7vh, 70px); isolation: isolate; }
.x-hero > * { position: relative; z-index: 1; }
.x-hero__grid { position: absolute !important; inset: -140px -50vw 0; z-index: 0 !important; pointer-events: none;
  background: linear-gradient(rgba(242,237,226,.05) 1px, transparent 1px) 0 0 / 56px 56px, linear-gradient(90deg, rgba(242,237,226,.05) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 30% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 60% 70% at 30% 30%, #000 30%, transparent 75%);
  animation: xGrid 14s linear infinite; }
@keyframes xGrid { to { background-position: 56px 56px, 56px 56px; } }
.umer-x .x-hero__title { font-size: clamp(64px, 12vw, 200px); line-height: .84; letter-spacing: -.035em; margin: 0 0 28px; max-width: 12ch; }
.umer-x .x-hero__title--sm { font-size: clamp(36px, 5.5vw, 84px); max-width: none; text-transform: none; letter-spacing: -.02em; }
.x-hero__lead, .umer-x .x-hero__lead p { max-width: 560px; font-size: 18px; line-height: 1.6; color: var(--muted); margin: 0; }
.x-hero__stats { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; margin-top: 30px; font-size: 14px; color: var(--muted); }
.x-hero__stats b { font-family: var(--display); font-size: 30px; color: var(--paper); margin-right: 6px; font-weight: 600; }
.x-hero__key kbd { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 7px; border: 1px solid var(--line); border-bottom-width: 3px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; color: var(--lime); margin-right: 6px; }
.x-back { color: var(--lime) !important; text-decoration: none !important; font-weight: 700; }

/* toolbar: category pills + command search */
.x-toolbar { position: relative; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 0 28px; border-top: 1px solid var(--line); }
.umer-x ul.x-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.umer-x .x-pills li { position: relative; display: inline-flex; align-items: center; gap: 4px; margin: 0; padding: 9px 16px; border-radius: 99px; border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--muted); overflow: hidden; isolation: isolate; transition: color .3s, border-color .3s, translate .4s var(--ease); }
.umer-x .x-pills li::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.umer-x .x-pills li a { color: var(--paper); text-decoration: none; text-transform: uppercase; letter-spacing: .06em; }
.umer-x .x-pills li a::after { content: ""; position: absolute; inset: 0; }
.umer-x .x-pills li:hover { translate: 0 -3px; border-color: var(--lime); color: var(--ink); }
.umer-x .x-pills li:hover a, .umer-x .x-pills li.current-cat a { color: var(--ink); }
.umer-x .x-pills li:hover::before, .umer-x .x-pills li.current-cat::before { transform: scaleX(1); }
.umer-x .x-pills li.current-cat { color: var(--ink); border-color: var(--lime); }

.umer-x .x-cmd { flex: 0 1 380px; margin: 0; }
.umer-x .x-cmd .wp-block-search__inside-wrapper { position: relative; display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(242,237,226,.04); transition: border-color .3s, box-shadow .3s, background .3s; }
.umer-x .x-cmd .wp-block-search__inside-wrapper:focus-within { border-color: var(--lime); box-shadow: 0 0 0 4px rgba(212,255,58,.12), 0 20px 40px -20px rgba(212,255,58,.35); background: rgba(212,255,58,.05); }
.umer-x .x-cmd .wp-block-search__input { flex: 1; min-width: 0; border: 0 !important; background: none !important; color: var(--paper); font: inherit; font-size: 15px; padding: 10px 0; outline: none; box-shadow: none !important; }
.umer-x .x-cmd .wp-block-search__input::placeholder { color: rgba(242,237,226,.35); }
.umer-x .x-cmd .wp-block-search__button { display: grid; place-items: center; width: 42px; height: 42px; margin: 0; padding: 0; border: 0; border-radius: 12px; background: var(--lime); color: var(--ink); cursor: pointer; transition: transform .3s var(--ease), background .3s; }
.umer-x .x-cmd .wp-block-search__button:hover { transform: rotate(-12deg) scale(1.06); background: var(--coral); }
.umer-x .x-cmd .wp-block-search__button svg { width: 20px; height: 20px; fill: currentColor; }

/* the cards: bento grid, first card is the large feature */
.umer-x .x-cards { position: relative; z-index: 1; }
.umer-x .x-cards > .wp-block-post-template { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.umer-x .x-cards > .wp-block-post-template > li { margin: 0; min-width: 0; perspective: 1100px; }
.umer-x-blog .x-cards:not(.x-paged) > .wp-block-post-template > li:first-child { grid-column: span 2; }
.x-card {
  --rx: 0deg; --ry: 0deg;
  position: relative; height: 100%; display: flex; flex-direction: column; overflow: hidden; isolation: isolate;
  border-radius: 24px; background: #12150e; border: 1px solid rgba(242,237,226,.08);
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d;
  transition: transform .5s var(--ease), border-color .4s, box-shadow .5s, opacity .8s var(--ease), translate .9s var(--ease);
  transition-delay: 0s, 0s, 0s, var(--d, 0ms), var(--d, 0ms);
}
.x-js .x-card:not(.x-in) { opacity: 0; translate: 0 50px; }
.x-card:hover { border-color: rgba(212,255,58,.45); box-shadow: 0 40px 80px -40px rgba(0,0,0,.9), 0 0 60px -30px rgba(212,255,58,.4); }
/* spinning conic border on hover */
.x-card::after { content: ""; position: absolute; inset: -1px; z-index: 2; pointer-events: none; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--x-ang), transparent 0 70%, var(--lime) 82%, var(--coral) 90%, transparent 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .4s; animation: xSpin 3s linear infinite; }
.x-card:hover::after { opacity: 1; }
@keyframes xSpin { to { --x-ang: 360deg; } }
.umer-x .x-card__img { position: relative; margin: 0 !important; overflow: hidden; transition: clip-path 1.1s var(--ease); transition-delay: calc(var(--d, 0ms) + 120ms); }
.x-js .x-card:not(.x-in) .x-card__img { clip-path: inset(0 0 100% 0); }
.umer-x .x-card__img img { width: 100%; height: 100% !important; object-fit: cover; display: block; transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.85); }
.x-js .x-card:not(.x-in) .x-card__img img { transform: scale(1.12); }
.x-card:hover .x-card__img img { transform: scale(1.07); filter: saturate(1.1); }
.x-card__ph { position: relative; aspect-ratio: 16 / 10; display: flex; align-items: flex-end; justify-content: space-between; padding: 22px; overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0, rgba(255,106,61,.75), transparent 55%), linear-gradient(160deg, var(--lime), #a9d40f); color: var(--ink); }
.x-card__ph b { font-family: var(--display); font-size: clamp(60px, 7vw, 120px); line-height: .8; }
.x-card__ph span { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.umer-x .x-card__body { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 22px 24px 24px; transform: translateZ(30px); }
.umer-x .x-card__terms { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.umer-x .x-card__terms a { color: var(--lime); text-decoration: none; }
.umer-x .x-card__terms a:hover { color: var(--coral); }
.umer-x .x-card__title { margin: 0 !important; font-size: clamp(22px, 1.9vw, 30px) !important; line-height: 1.02 !important; text-transform: uppercase; }
.umer-x .x-card__title a { color: var(--paper); text-decoration: none; background: linear-gradient(var(--lime), var(--lime)) 0 100% / 0 2px no-repeat; transition: background-size .5s var(--ease), color .3s; }
.umer-x .x-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.x-card:hover .x-card__title a { background-size: 100% 2px; color: #fff; }
.umer-x .x-card__excerpt p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.umer-x .x-card__excerpt .wp-block-post-excerpt__more-text { display: none; }
.umer-x .x-card__date { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--muted); padding-top: 12px; border-top: 1px dashed rgba(242,237,226,.1); }
.umer-x .x-card__date::after { content: "Read \2197"; font-weight: 700; color: var(--lime); transform: translateX(-8px); opacity: 0; transition: transform .4s var(--ease), opacity .4s; }
.x-card:hover .x-card__date::after { transform: none; opacity: 1; }
/* the feature card: title over the image */
.umer-x-blog .x-cards:not(.x-paged) li:first-child .x-card__img { position: absolute; inset: 0; aspect-ratio: auto !important; height: 100%; }
.umer-x-blog .x-cards:not(.x-paged) li:first-child .x-card__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,15,11,.1) 20%, rgba(13,15,11,.95) 88%); }
.umer-x-blog .x-cards:not(.x-paged) li:first-child .x-card { min-height: 560px; justify-content: flex-end; }
.umer-x-blog .x-cards:not(.x-paged) li:first-child .x-card__body { flex: 0; padding: 34px; }
.umer-x-blog .x-cards:not(.x-paged) li:first-child .x-card__title { font-size: clamp(34px, 3.6vw, 58px) !important; }
.umer-x-blog .x-cards:not(.x-paged) li:first-child .x-card__body::before { content: "Latest"; align-self: flex-start; padding: 5px 12px; border-radius: 99px; background: var(--lime); color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.umer-x-blog .x-cards:not(.x-paged) li:first-child .x-card__ph { position: absolute; inset: 0; aspect-ratio: auto; }

.x-cards--mini > .wp-block-post-template { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.x-cards--mini .x-card__title { font-size: 20px !important; }

/* pagination */
.umer-x .x-pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 50px; flex-wrap: wrap; }
.umer-x .x-pager a, .umer-x .x-pager .page-numbers { display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line); color: var(--paper); text-decoration: none; font-weight: 700; transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.umer-x .x-pager a:hover { border-color: var(--lime); transform: translateY(-3px); }
.umer-x .x-pager .page-numbers.current { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.x-empty, .x-nores { padding: 60px 0; color: var(--muted); }
.x-nores__big { font-family: var(--display); font-size: clamp(40px, 6vw, 90px); color: var(--paper); margin: 0 0 10px; line-height: 1; }

/* category: the topic name echoes behind the hero */
.x-echo { position: absolute !important; inset: 0 -50vw; z-index: 0 !important; overflow: hidden; pointer-events: none; display: flex; flex-direction: column; justify-content: center; gap: 0; opacity: .7; }
.x-echo span { display: block; white-space: nowrap; font-family: var(--display); font-weight: 700; font-size: clamp(80px, 14vw, 230px); line-height: .82; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px rgba(212,255,58,.12); animation: xEcho 30s linear infinite; }
.x-echo span:nth-child(even) { animation-direction: reverse; -webkit-text-stroke-color: rgba(255,106,61,.12); }
@keyframes xEcho { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* author: profile card */
.x-profile { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 4vw, 60px); align-items: center; margin-bottom: 50px; padding: clamp(24px, 4vw, 48px); border-radius: 32px; border: 1px solid var(--line); background: linear-gradient(140deg, rgba(212,255,58,.06), transparent 50%), #11140d; overflow: hidden; isolation: isolate; }
.x-profile > * { position: relative; z-index: 1; }
.x-profile__avatar { position: relative; width: 190px; height: 190px; display: grid; place-items: center; }
.x-profile__ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from var(--x-ang), var(--lime), var(--coral), transparent 60%, var(--lime)); animation: xSpin 4s linear infinite; -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); }
.umer-x .x-profile__img img { width: 160px; height: 160px; border-radius: 50%; display: block; transition: transform .6s var(--ease); }
.x-profile:hover .x-profile__img img { transform: scale(1.06) rotate(-4deg); }
.x-profile .x-hero__title { font-size: clamp(44px, 7vw, 110px); margin-bottom: 16px; }

/* search: terminal hero */
.x-term { position: relative; max-width: 680px; margin: 0 0 30px; border-radius: 16px; overflow: hidden; border: 1px solid rgba(212,255,58,.25); background: #070806; box-shadow: 0 30px 60px -30px rgba(0,0,0,.9), 0 0 40px -20px rgba(212,255,58,.3); font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }
.x-term__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #111410; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.x-term__bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3f33; }
.x-term__bar i:nth-child(1) { background: var(--coral); }
.x-term__bar i:nth-child(2) { background: #f5c542; }
.x-term__bar i:nth-child(3) { background: var(--lime); }
.x-term__bar span { margin-left: 8px; }
.x-term__body { padding: 16px 18px; font-size: 15px; color: var(--paper); line-height: 1.7; }
.x-term__p { color: var(--lime); }
.x-term__q { color: var(--coral); }
.x-term__caret { display: inline-block; width: .55em; height: 1.05em; vertical-align: -2px; margin-left: 2px; background: var(--lime); animation: xBlink 1s steps(2) infinite; }
@keyframes xBlink { 50% { opacity: 0; } }
.x-term__out { color: var(--muted); font-size: 13px; }
.x-term__out b { color: var(--lime); font-weight: 400; }
.umer-x mark.x-hl { background: linear-gradient(transparent 55%, rgba(212,255,58,.55) 55%); color: inherit; padding: 0 1px; }

/* =====================================================================
   2) SINGLE POST
   ===================================================================== */
.umer-x-post { padding-top: 0; max-width: none; }
.x-post-hero { position: relative; isolation: isolate; min-height: 92vh; display: flex; align-items: flex-end; margin: 0 calc(var(--pad) * -1); padding: 150px var(--pad) 90px; overflow: hidden; }
.umer-x .x-post-hero__bg { position: absolute !important; inset: -8% 0 0; z-index: -2; margin: 0 !important; will-change: transform; }
.umer-x .x-post-hero__bg img { width: 100%; height: 100% !important; object-fit: cover; filter: saturate(.8) brightness(.75); transform: scale(1.15); transition: transform 2.2s var(--ease); }
.x-ready .umer-x .x-post-hero__bg img { transform: scale(1.04); }
.x-post-hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13,15,11,.78) 0%, rgba(13,15,11,.62) 45%, var(--ink) 96%), linear-gradient(90deg, rgba(13,15,11,.7), transparent 75%), radial-gradient(80% 60% at 20% 100%, rgba(212,255,58,.14), transparent 70%); }
.umer-x .x-post-hero__bg img { filter: saturate(.7) brightness(.6) blur(1.5px); }
.x-post-hero:not(:has(.x-post-hero__bg)) { background: radial-gradient(60% 70% at 80% 10%, rgba(255,106,61,.28), transparent 60%), radial-gradient(70% 80% at 10% 90%, rgba(212,255,58,.22), transparent 60%), var(--ink); }
.x-post-hero__inner { position: relative; width: 100%; max-width: 1180px; margin: 0 auto; }
.umer-x-post .umer-crumbs { margin-bottom: 26px; font-size: 13px; }
.umer-x-post .x-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; font-size: 0; }
.umer-x-post .x-chips a { display: inline-block; padding: 6px 14px; border-radius: 99px; background: var(--lime); color: var(--ink) !important; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; transition: transform .3s var(--ease), background .3s; }
.umer-x-post .x-chips a:hover { transform: translateY(-3px); background: var(--coral); }
.umer-x-post .x-chips .wp-block-post-terms__separator { display: none; }
.umer-x-post .x-post-hero__title { font-size: clamp(44px, 7.4vw, 124px) !important; line-height: .9 !important; letter-spacing: -.03em; max-width: 15ch; margin: 0 0 30px !important; text-shadow: 0 10px 40px rgba(0,0,0,.4); }
.x-post-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 15px; color: var(--paper); }
.x-post-hero__meta > * { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 99px; background: rgba(13,15,11,.55); border: 1px solid rgba(242,237,226,.14); backdrop-filter: blur(8px); margin: 0 !important; }
.x-post-hero__by::before { content: "By "; color: var(--muted); margin-right: 4px; }
.umer-x-post .umer-post__meta { color: var(--paper); }
.umer-x-post .umer-post__read { margin-left: 6px; color: var(--lime); }
.x-scroll-cue { position: absolute; left: 50%; bottom: 26px; z-index: 2; width: 26px; height: 42px; border: 2px solid rgba(242,237,226,.5); border-radius: 14px; transform: translateX(-50%); }
.x-scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--lime); animation: xWheel 1.6s ease-in-out infinite; }
@keyframes xWheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

.umer-x-post .x-post-grid { display: grid; grid-template-columns: 230px minmax(0, 720px) 56px; justify-content: center; gap: clamp(24px, 4vw, 64px); max-width: 1180px; margin: 70px auto 0; align-items: start; }
.umer-x-post .x-toc { position: sticky; top: 110px; margin: 0; padding: 0; background: none; border: 0; max-height: calc(100vh - 140px); overflow: auto; }
.umer-x-post .x-toc__head { list-style: none; cursor: pointer; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--lime); margin-bottom: 14px; }
.umer-x-post .x-toc__head::-webkit-details-marker { display: none; }
.umer-x-post .x-toc .umer-toc__list { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 1px solid var(--line); counter-reset: toc; }
.umer-x-post .x-toc .umer-toc__list li { position: relative; margin: 0; padding: 6px 0; counter-increment: toc; }
.umer-x-post .x-toc .umer-toc__list li.is-sub { padding-left: 14px; counter-increment: none; }
.umer-x-post .x-toc .umer-toc__list a { display: block; color: var(--muted); text-decoration: none; font-size: 14px; line-height: 1.35; transition: color .3s, transform .3s var(--ease); }
.umer-x-post .x-toc .umer-toc__list li:not(.is-sub) a::before { content: counter(toc, decimal-leading-zero) "  "; font-family: ui-monospace, Consolas, monospace; font-size: 11px; color: rgba(242,237,226,.3); }
.umer-x-post .x-toc .umer-toc__list a:hover { color: var(--paper); transform: translateX(4px); }
.umer-x-post .x-toc .umer-toc__list a.is-active { color: var(--lime); transform: translateX(6px); }
.umer-x-post .x-toc .umer-toc__list a.is-active::after { content: ""; position: absolute; left: -18px; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: var(--lime); box-shadow: 0 0 10px var(--lime); }

/* article typography */
.x-article { min-width: 0; }
.umer-x-post .x-article .wp-block-post-content { max-width: none; margin: 0; font-size: 18.5px; line-height: 1.8; }
.umer-x-post .x-article .wp-block-post-content > p:first-of-type::first-letter { float: left; font-family: var(--display); font-weight: 600; font-size: 4.6em; line-height: .78; margin: .08em .12em 0 0; color: var(--lime); }
.umer-x-post .x-article .wp-block-post-content { counter-reset: h2; }
.umer-x-post .x-article h2 { counter-increment: h2; position: relative; font-size: clamp(30px, 3.4vw, 46px) !important; margin: 70px 0 22px !important; padding-top: 22px; scroll-margin-top: 110px; }
.umer-x-post .x-article h2::before { content: counter(h2, decimal-leading-zero); display: block; font-family: ui-monospace, Consolas, monospace; font-size: 13px; letter-spacing: .1em; color: var(--coral); margin-bottom: 10px; }
.umer-x-post .x-article h2::after { content: ""; position: absolute; left: 0; top: 0; width: 64px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--lime), var(--coral)); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); }
.umer-x-post .x-article h2.x-in::after { transform: scaleX(1); }
.umer-x-post .x-article h3 { font-size: clamp(22px, 2.2vw, 30px) !important; scroll-margin-top: 110px; }
.umer-x-post .x-article .wp-block-image { margin: 40px 0; }
.umer-x-post .x-article .wp-block-image img { border-radius: 20px; clip-path: inset(0 0 0 0 round 20px); transition: clip-path 1.2s var(--ease), transform 1.2s var(--ease); }
.umer-x-post .x-article .wp-block-image.x-pre img { clip-path: inset(12% 12% 12% 12% round 20px); transform: scale(1.05); }
.umer-x-post .x-article .wp-block-image figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 10px; }
.umer-x-post .x-article ul, .umer-x-post .x-article ol { padding-left: 0; list-style: none; }
.umer-x-post .x-article ul > li { position: relative; padding-left: 28px; margin: 10px 0; }
.umer-x-post .x-article ul > li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 10px; height: 10px; border-radius: 3px; background: var(--lime); transform: rotate(45deg); }
.umer-x-post .x-article ol { counter-reset: ol; }
.umer-x-post .x-article ol > li { position: relative; padding-left: 40px; margin: 12px 0; counter-increment: ol; }
.umer-x-post .x-article ol > li::before { content: counter(ol); position: absolute; left: 0; top: .15em; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(212,255,58,.12); color: var(--lime); font-size: 13px; font-weight: 700; }
.umer-x-post .x-article blockquote { position: relative; margin: 44px 0; padding: 30px 30px 30px 70px; border: 0; border-radius: 22px; background: linear-gradient(135deg, rgba(212,255,58,.1), rgba(255,106,61,.06)); }
.umer-x-post .x-article blockquote::before { content: "\201C"; position: absolute; left: 18px; top: 2px; font-family: var(--display); font-size: 110px; line-height: 1; color: var(--lime); }
.umer-x-post .x-article :not(pre) > code { padding: 2px 7px; border-radius: 6px; background: rgba(212,255,58,.1); color: var(--lime); font-size: .88em; }
.umer-x-post .x-article .umer-code { margin: 34px 0; border-radius: 18px; overflow: hidden; border: 1px solid rgba(212,255,58,.22); background: #070806; box-shadow: 0 30px 60px -36px rgba(0,0,0,.9); }
.umer-x-post .x-article .umer-code__bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 10px 62px; position: relative; background: #111410; border-bottom: 1px solid var(--line); font-family: ui-monospace, Consolas, monospace; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.umer-x-post .x-article .umer-code__bar::before { content: ""; position: absolute; left: 14px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--coral); box-shadow: 16px 0 0 #f5c542, 32px 0 0 var(--lime); }
.umer-x-post .x-article .umer-code__copy { padding: 5px 12px; border-radius: 8px; border: 1px solid var(--line); background: none; color: var(--paper); font: inherit; cursor: pointer; transition: background .3s, color .3s; }
.umer-x-post .x-article .umer-code__copy:hover { background: var(--lime); color: var(--ink); }
.umer-x-post .x-article .umer-code pre { margin: 0; border: 0; border-radius: 0; background: none; }
.umer-x-post .x-tags { margin-top: 40px; font-size: 13px; color: var(--muted); }
.umer-x-post .x-tags a { display: inline-block; margin: 4px 2px; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line); color: var(--paper); text-decoration: none; }
.umer-x-post .x-tags a:hover { border-color: var(--lime); color: var(--lime); }
.umer-x-post .x-tags .wp-block-post-terms__separator { display: none; }

/* share rail */
.x-rail { position: sticky; top: 130px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.x-rail__label { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.x-rail__btn { position: relative; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; border: 1px solid var(--line); background: rgba(242,237,226,.03); color: var(--paper) !important; cursor: pointer; transition: background .3s, color .3s, transform .35s var(--ease), border-color .3s; }
.x-rail__btn svg { width: 20px; height: 20px; }
.x-rail__btn:hover { background: var(--lime); color: var(--ink) !important; border-color: var(--lime); transform: translateY(-3px) rotate(-6deg); }
.x-rail__btn.is-done { background: var(--coral); border-color: var(--coral); color: var(--ink) !important; }
.x-rail__btn[data-tip]::after { content: attr(data-tip); position: absolute; right: calc(100% + 10px); top: 50%; transform: translate(6px, -50%); white-space: nowrap; padding: 5px 10px; border-radius: 8px; background: var(--paper); color: var(--ink); font-size: 12px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
.x-rail__btn[data-tip]:hover::after { opacity: 1; transform: translate(0, -50%); }

/* reading ring */
.x-ring { position: fixed; left: 22px; bottom: 22px; z-index: 40; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(13,15,11,.85); backdrop-filter: blur(8px); box-shadow: 0 10px 30px -10px rgba(0,0,0,.8); opacity: 0; transform: scale(.6); transition: opacity .4s, transform .5s var(--ease), width .4s var(--ease), border-radius .4s; overflow: hidden; }
.x-ring.is-on { opacity: 1; transform: none; }
.x-ring svg { position: absolute; left: 0; top: 0; width: 64px; height: 64px; transform: rotate(-90deg); }
.x-ring__track { fill: none; stroke: rgba(242,237,226,.12); stroke-width: 3; }
.x-ring__bar { fill: none; stroke: var(--lime); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 132; stroke-dashoffset: 132; }
.x-ring__pct { position: relative; font-size: 13px; font-weight: 700; color: var(--paper); font-family: ui-monospace, Consolas, monospace; }
.x-ring__left { position: absolute; left: 70px; white-space: nowrap; font-size: 13px; color: var(--muted); }
.x-ring:hover { width: 190px; border-radius: 32px; }
.x-ring:hover .x-ring__pct { margin-right: 126px; }

/* end of article */
.x-post-end { max-width: 1180px; margin: 90px auto 0; }
.x-post-end__thanks { text-align: center; font-family: var(--display); font-weight: 600; font-size: clamp(36px, 6vw, 96px); text-transform: uppercase; letter-spacing: -.02em; line-height: .9; margin: 0 0 50px; color: transparent; -webkit-text-stroke: 1.5px var(--paper); }
.x-post-end__thanks span { color: var(--lime); -webkit-text-stroke: 0; display: inline-block; animation: xSpinStar 6s linear infinite; }
@keyframes xSpinStar { to { transform: rotate(360deg); } }
.umer-x-post .x-author { position: relative; max-width: 760px; margin: 0 auto 60px; padding: 28px; border-radius: 26px; background: #12150e; display: flex; gap: 22px; align-items: center; isolation: isolate; }
.umer-x-post .x-author::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--x-ang), var(--lime), var(--coral), var(--lime)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: xSpin 5s linear infinite; }
.umer-x-post .x-author img { border-radius: 50%; }
.umer-x-post .x-author .wp-block-post-author__byline { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); margin: 0; }
.umer-x-post .x-author .wp-block-post-author__name { font-family: var(--display); font-size: 26px; margin: 4px 0; }
.umer-x-post .x-author .wp-block-post-author__name a { color: var(--paper); text-decoration: none; }
.umer-x-post .x-author .wp-block-post-author__bio { font-size: 15px; color: var(--muted); margin: 0; }
.umer-x-post .x-post-nav { display: grid !important; grid-template-columns: 1fr 1fr; gap: 16px; }
.umer-x-post .x-post-nav > div { min-width: 0; }
.umer-x-post .x-post-nav a { position: relative; display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 30px; border-radius: 24px; border: 1px solid var(--line); background: #11140d; color: var(--paper) !important; text-decoration: none !important; overflow: hidden; isolation: isolate; font-family: var(--display); font-size: clamp(20px, 2vw, 30px); line-height: 1.05; text-transform: uppercase; transition: border-color .4s, transform .5s var(--ease); }
.umer-x-post .x-post-nav a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--lime); transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease); }
.umer-x-post .x-post-nav a:hover { color: var(--ink) !important; transform: translateY(-4px); border-color: var(--lime); }
.umer-x-post .x-post-nav a:hover::before { transform: scaleY(1); }
.umer-x-post .x-post-nav .post-navigation-link__label { font-family: var(--body); font-size: 12px; font-weight: 700; letter-spacing: .16em; color: var(--lime); transition: color .3s; }
.umer-x-post .x-post-nav a:hover .post-navigation-link__label { color: var(--ink); }
.umer-x-post .x-post-nav__next { text-align: right; }
.umer-x-post .x-post-nav__next a { align-items: flex-end; }
.umer-x-post .x-post-nav__prev .post-navigation-link__label::before { content: "\2190  "; }
.umer-x-post .x-post-nav__next .post-navigation-link__label::after { content: "  \2192"; }

/* =====================================================================
   3) PAGES: document / tools launcher / tool app frame
   ===================================================================== */
.x-doc-hero { position: relative; isolation: isolate; padding: 20px 0 50px; }
.x-doc-hero > * { position: relative; z-index: 1; }
.umer-x-page .x-doc-hero__title { font-size: clamp(48px, 9vw, 150px) !important; line-height: .86 !important; letter-spacing: -.03em; margin: 0 0 24px !important; }
.x-doc-hero__meta { display: flex; flex-wrap: wrap; gap: 10px; }
.x-doc-hero__meta span { padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.x-doc-hero__meta span b { color: var(--paper); font-weight: 700; }
.x-doc { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(24px, 4vw, 60px); align-items: start; }
.x-doc__index { position: sticky; top: 110px; }
.x-doc__indexHead { display: block; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--lime); margin-bottom: 14px; }
.x-doc__index ol { list-style: none; margin: 0; padding: 0; counter-reset: di; }
.x-doc__index li { counter-increment: di; margin: 0; }
.x-doc__index a { display: flex; gap: 10px; padding: 9px 12px; border-radius: 12px; color: var(--muted) !important; text-decoration: none !important; font-size: 14px; line-height: 1.3; transition: background .3s, color .3s; }
.x-doc__index a::before { content: counter(di, decimal-leading-zero); font-family: ui-monospace, Consolas, monospace; font-size: 11px; color: rgba(242,237,226,.3); padding-top: 2px; }
.x-doc__index a:hover { color: var(--paper) !important; background: rgba(242,237,226,.05); }
.x-doc__index a.is-active { color: var(--ink) !important; background: var(--lime); }
.x-doc__index a.is-active::before { color: var(--ink); }
/* the document itself: a paper sheet */
.x-isdoc .x-doc__body { position: relative; min-width: 0; padding: clamp(28px, 5vw, 70px); border-radius: 30px; background: var(--paper); color: var(--ink); box-shadow: 0 50px 100px -50px rgba(0,0,0,.9); }
.x-isdoc .x-doc__body::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; border-radius: 30px 30px 0 0; background: linear-gradient(90deg, var(--lime), var(--coral)); transform-origin: left; transform: scaleX(var(--x-read, 0)); }
.umer-x-page.x-isdoc .x-doc__body .wp-block-post-content { max-width: 760px; margin: 0; counter-reset: dh; }
.umer-x-page.x-isdoc .x-doc__body p, .umer-x-page.x-isdoc .x-doc__body li { color: #3a3b34; font-size: 17px; line-height: 1.8; }
.umer-x-page.x-isdoc .x-doc__body h2 { counter-increment: dh; color: var(--ink) !important; font-size: clamp(26px, 3vw, 40px) !important; margin: 56px 0 16px !important; scroll-margin-top: 110px; display: flex; align-items: baseline; gap: 14px; }
.umer-x-page.x-isdoc .x-doc__body h2::before { content: "\00A7 " counter(dh, decimal-leading-zero); font-family: ui-monospace, Consolas, monospace; font-size: 13px; font-weight: 400; color: var(--ink); background: var(--lime); padding: 4px 8px; border-radius: 8px; flex: none; translate: 0 -4px; }
.umer-x-page.x-isdoc .x-doc__body h2:first-child { margin-top: 0 !important; }
.umer-x-page.x-isdoc .x-doc__body h3 { color: var(--ink) !important; }
.umer-x-page.x-isdoc .x-doc__body a { color: #4d6b00; }
.umer-x-page.x-isdoc .x-doc__body a:hover { color: var(--coral); }
.umer-x-page.x-isdoc .x-doc__body strong { color: var(--ink); }
.umer-x-page.x-isdoc .x-doc__body .x-section { padding: 4px 0; border-radius: 12px; transition: background .5s; }
.umer-x-page.x-isdoc .x-doc__body .x-flash { animation: xFlash 1.4s var(--ease); }
@keyframes xFlash { 0% { background: rgba(212,255,58,.55); } 100% { background: transparent; } }

/* no section headings (vlog-like or short pages): single column */
.umer-x-page.x-isdoc .x-doc.x-noindex { grid-template-columns: minmax(0, 1fr); }
.umer-x-page.x-isdoc .x-doc.x-noindex .x-doc__index { display: none; }

/* /tools/ page: no paper, no index, the list brings its own title */
.umer-x-page.x-toolslist .x-doc-hero { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; padding: 0; }
.umer-x-page.x-toolslist .x-doc { display: block; }
.umer-x-page.x-toolslist .x-doc__index { display: none; }
.umer-x-page.x-toolslist .x-doc__body { padding: 0; background: none; color: inherit; box-shadow: none; border-radius: 0; }
.umer-x-page.x-toolslist .x-doc__body::before { display: none; }

.umer-x-page.x-toolslist .x-doc__body .wp-block-post-content { max-width: none; margin: 0; }
.umer-x-page:not(.x-isdoc) .x-doc { display: block; }
.umer-x-page:not(.x-isdoc) .x-doc__index { display: none; }

/* tools launcher (the [umer_tools] list and the umer/tools block share this markup) */
.umer-x .umer-tools { position: relative; isolation: isolate; }
.x-dots { position: absolute; left: 50%; top: -150px; width: 100vw; height: 560px; transform: translateX(-50%); z-index: -1; pointer-events: none; -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); }
.umer-x .umer-kit__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 44px; }
.umer-x .umer-tools__title { font-size: clamp(60px, 11vw, 180px) !important; line-height: .84 !important; margin: 0 !important; display: flex; flex-direction: column; }
.umer-x .umer-kit__bar { display: flex; align-items: center; gap: 14px; }
.umer-x .umer-kit__search { width: 280px; padding: 14px 18px 14px 44px; border-radius: 16px; border: 1px solid var(--line); background: rgba(242,237,226,.04) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23d4ff3a' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 16px 50%; color: var(--paper); font: inherit; font-size: 15px; outline: none; transition: border-color .3s, box-shadow .3s; }
.umer-x .umer-kit__search:focus { border-color: var(--lime); box-shadow: 0 0 0 4px rgba(212,255,58,.12); }
.umer-x .umer-kit__count { font-family: ui-monospace, Consolas, monospace; font-size: 13px; color: var(--lime); white-space: nowrap; }
.umer-x .umer-kit__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; border: 0 !important; }
.umer-x .umer-kit__row { margin: 0; border: 0 !important; perspective: 1000px; opacity: 1 !important; transform: none !important; }
.umer-x .umer-kit__row[hidden] { display: none; }
.umer-x .umer-kit__btn {
  --rx: 0deg; --ry: 0deg;
  position: relative; display: flex !important; flex-direction: column; align-items: flex-start; gap: 14px; height: 100%; min-height: 340px; padding: 26px !important;
  border-radius: 26px; background: #12150e; border: 1px solid rgba(242,237,226,.08); color: var(--paper) !important; text-decoration: none !important; overflow: hidden; isolation: isolate;
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d;
  transition: transform .5s var(--ease), border-color .4s, box-shadow .5s, opacity .8s var(--ease), translate .9s var(--ease);
  transition-delay: 0s, 0s, 0s, var(--d, 0ms), var(--d, 0ms);
}
.x-js .umer-x .umer-kit__row:not(.x-in) .umer-kit__btn { opacity: 0; translate: 0 50px; }
.umer-x .umer-kit__btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(212,255,58,.16), transparent 55%); opacity: 0; transition: opacity .4s; }
.umer-x .umer-kit__btn::after { content: ""; position: absolute; inset: -1px; z-index: 2; pointer-events: none; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--x-ang), transparent 0 65%, var(--lime) 80%, var(--coral) 90%, transparent 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .4s; animation: xSpin 2.6s linear infinite; }
.umer-x .umer-kit__btn:hover { border-color: transparent; box-shadow: 0 40px 80px -40px rgba(0,0,0,.9), 0 0 70px -30px rgba(212,255,58,.45); }
.umer-x .umer-kit__btn:hover::before, .umer-x .umer-kit__btn:hover::after { opacity: 1; }
.umer-x .umer-kit__no { position: absolute; right: 24px; top: 22px; font-family: var(--display); font-weight: 600; font-size: 64px; line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(242,237,226,.18); transition: -webkit-text-stroke-color .3s, transform .5s var(--ease); }
.umer-x .umer-kit__btn:hover .umer-kit__no { -webkit-text-stroke-color: var(--lime); transform: translateY(-4px) rotate(-6deg); }
.x-tile__icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 24px; color: var(--ink); background: linear-gradient(150deg, var(--lime), #a9d40f); box-shadow: 0 14px 30px -14px rgba(212,255,58,.7); transform: translateZ(40px); transition: transform .5s var(--ease), border-radius .5s var(--ease); }
.umer-x .umer-kit__btn:hover .x-tile__icon { transform: translateZ(40px) rotate(-10deg) scale(1.08); border-radius: 50%; }
.umer-x .umer-kit__img { position: absolute !important; left: 0; right: 0; top: 0; width: 100% !important; height: 150px !important; object-fit: cover; opacity: .18; -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent); transition: opacity .5s; z-index: -1; transform: none !important; }
.umer-x .umer-kit__btn:hover .umer-kit__img { opacity: .35; }
.umer-x .umer-kit__name { margin-top: auto; font-family: var(--display); font-weight: 600; font-size: clamp(30px, 2.6vw, 40px) !important; line-height: .95; text-transform: uppercase; transform: translateZ(30px); }
.umer-x .umer-kit__meta { display: flex; flex-direction: column; gap: 18px; font-size: 15px !important; line-height: 1.55; color: var(--muted) !important; text-align: left !important; transform: translateZ(20px); }
.umer-x .umer-kit__meta br { display: none; }
.umer-x .umer-kit__role { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 99px; background: var(--lime); color: var(--ink); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: none; border: 0 !important; transition: background .3s, transform .4s var(--ease); }
.umer-x .umer-kit__btn:hover .umer-kit__role { background: var(--coral); transform: translateX(6px); }
.umer-x .umer-kit__preview { display: none !important; }
.umer-x .umer-kit__empty { color: var(--muted); padding: 30px 0; }
/* "more on the way" tiles */
.umer-x .x-soon .umer-kit__btn { opacity: 1; translate: 0 0; border-style: dashed; border-color: rgba(242,237,226,.14); background: repeating-linear-gradient(-45deg, rgba(242,237,226,.02) 0 14px, transparent 14px 28px); cursor: default; justify-content: center; align-items: center; text-align: center; }
.umer-x .x-soon .umer-kit__btn:hover { box-shadow: none; }
.umer-x .x-soon .umer-kit__btn::after, .umer-x .x-soon .umer-kit__btn::before { display: none; }
.x-soon__icon { width: 56px; height: 56px; border-radius: 50%; border: 1px dashed rgba(242,237,226,.3); display: grid; place-items: center; font-size: 26px; color: var(--muted); animation: xSpinStar 10s linear infinite; }
.x-soon__text { font-family: var(--display); font-size: 22px; color: var(--muted); text-transform: uppercase; }
.x-soon__sub { font-size: 13px; color: rgba(242,237,226,.35); }

/* a tool page (/tools/{slug}/): app window */
.umer-x-page.x-tool .x-doc-hero { padding-bottom: 36px; }
.umer-x-page.x-tool .x-doc-hero__title { font-size: clamp(48px, 8vw, 128px) !important; }
.umer-x-page.x-tool .x-doc { display: block; }
.umer-x-page.x-tool .x-doc__index { display: none; }
.umer-x-page.x-tool .x-doc__body { padding: 0; background: #0a0c08; color: var(--paper); border: 1px solid rgba(212,255,58,.25); box-shadow: 0 50px 100px -50px rgba(0,0,0,.95), 0 0 80px -40px rgba(212,255,58,.35); overflow: hidden; }
.umer-x-page.x-tool .x-doc__body::before { display: none; }
.x-win__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #13170f; border-bottom: 1px solid var(--line); }
.x-win__bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3f33; }
.x-win__bar i:nth-child(1) { background: var(--coral); }
.x-win__bar i:nth-child(2) { background: #f5c542; }
.x-win__bar i:nth-child(3) { background: var(--lime); }
.x-win__url { flex: 1; max-width: 520px; margin: 0 auto; padding: 6px 14px; border-radius: 9px; background: #0a0c08; border: 1px solid var(--line); font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: var(--muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-win__url b { color: var(--lime); font-weight: 400; }
.x-win__body { padding: clamp(22px, 4vw, 48px); }
.umer-x-page.x-tool .x-doc__body p, .umer-x-page.x-tool .x-doc__body li { color: var(--text); }
.x-tool-back { display: flex; width: fit-content; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--muted) !important; text-decoration: none !important; font-size: 14px; font-weight: 700; transition: color .3s, gap .3s var(--ease); }
.x-tool-back:hover { color: var(--lime) !important; gap: 12px; }
.x-scramble .x-sc { color: var(--lime); }

/* =====================================================================
   4) VLOG: cinema
   ===================================================================== */
.umer-x-vlog { padding-top: 0; max-width: none; }
.x-cine { position: relative; isolation: isolate; min-height: 86vh; margin: 0 calc(var(--pad) * -1); padding: 170px var(--pad) 110px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; overflow: hidden;
  background: radial-gradient(70% 60% at 50% 40%, rgba(212,255,58,.12), transparent 70%), radial-gradient(50% 50% at 80% 80%, rgba(255,106,61,.12), transparent 70%), #070806; }
.x-cine::after { content: ""; position: absolute; inset: -50%; z-index: 3; pointer-events: none; opacity: .09; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: xGrain .6s steps(3) infinite; }
@keyframes xGrain { 33% { transform: translate(-4%, 3%); } 66% { transform: translate(3%, -2%); } }
.x-cine > * { position: relative; z-index: 2; }
.x-cine__bars { position: absolute !important; inset: 0; z-index: 4 !important; pointer-events: none; }
.x-cine__bars i { position: absolute; left: 0; right: 0; height: 50%; background: #000; transition: height 1.6s cubic-bezier(.7, 0, .2, 1) .2s; }
.x-cine__bars i:first-child { top: 0; }
.x-cine__bars i:last-child { bottom: 0; }
.x-ready .x-cine__bars i { height: 7vh; }
.x-cine__hud { position: absolute !important; left: var(--pad); right: var(--pad); top: calc(7vh + 100px); display: flex; justify-content: space-between; font-family: ui-monospace, Consolas, monospace; font-size: 13px; letter-spacing: .1em; color: var(--paper); opacity: 0; transition: opacity .6s 1.6s; }
.x-ready .x-cine__hud { opacity: 1; }
.x-cine__rec { display: inline-flex; align-items: center; gap: 8px; color: var(--coral); }
.x-cine__rec i { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 12px var(--coral); animation: xBlink 1.2s steps(2) infinite; }
.x-cine__frame { position: absolute !important; inset: calc(7vh + 140px) var(--pad) calc(7vh + 30px); pointer-events: none; }
.x-cine__frame i { position: absolute; width: 34px; height: 34px; border: 2px solid rgba(242,237,226,.5); }
.x-cine__frame i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.x-cine__frame i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.x-cine__frame i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.x-cine__frame i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.umer-x-vlog .x-cine__title { font-size: clamp(70px, 15vw, 240px) !important; line-height: .82 !important; letter-spacing: -.04em; margin: 0 0 24px !important; }
.x-cine__lead { max-width: 520px; color: var(--muted); font-size: 18px; margin: 0; }
.x-cine__body { max-width: 980px; margin: 70px auto 0; }
.umer-x-vlog .x-cine__body .wp-block-post-content { max-width: none; }
.umer-x-vlog .x-cine__body .wp-block-post-content > p { max-width: 720px; margin-left: auto; margin-right: auto; font-size: 18px; text-align: center; color: var(--muted); }
.umer-x-vlog .x-cine__body :is(.wp-block-embed, .wp-block-video, figure:has(iframe)) { position: relative; margin: 50px 0; padding: 10px; border-radius: 26px; background: linear-gradient(140deg, rgba(212,255,58,.35), rgba(255,106,61,.25)); box-shadow: 0 40px 100px -40px rgba(212,255,58,.35); }
.umer-x-vlog .x-cine__body :is(.wp-block-embed, .wp-block-video, figure:has(iframe)) :is(iframe, video) { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: 18px; background: #000; }
.umer-x-vlog .x-cine__body .wp-block-embed__wrapper { border-radius: 18px; overflow: hidden; }

/* =====================================================================
   5) 404: glitch
   ===================================================================== */
.umer-x-404 { display: grid; place-items: center; }
.x-lost { position: relative; isolation: isolate; width: 100%; max-width: 980px; text-align: center; display: flex; flex-direction: column; align-items: center; padding: 20px 0 40px; }
.x-lost > * { position: relative; z-index: 1; }
.x-lost__glitch { position: relative; font-family: var(--display); font-weight: 700; font-size: clamp(140px, 30vw, 420px); line-height: .8; letter-spacing: -.05em; color: var(--paper); user-select: none; }
.x-lost__glitch::before, .x-lost__glitch::after { content: attr(data-text); position: absolute; inset: 0; }
.x-lost__glitch::before { color: var(--lime); mix-blend-mode: screen; animation: xGlitchA 2.4s infinite steps(1); }
.x-lost__glitch::after { color: var(--coral); mix-blend-mode: screen; animation: xGlitchB 1.9s infinite steps(1); }
@keyframes xGlitchA { 0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); } 8% { clip-path: inset(10% 0 70% 0); transform: translate(-8px, 2px); } 12% { clip-path: inset(60% 0 10% 0); transform: translate(6px, -2px); } 16% { clip-path: inset(0 0 0 0); transform: translate(0); } 60% { clip-path: inset(40% 0 35% 0); transform: translate(10px, 0); } 63% { clip-path: inset(0 0 0 0); transform: translate(0); } }
@keyframes xGlitchB { 0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); } 20% { clip-path: inset(70% 0 5% 0); transform: translate(8px, 3px); } 24% { clip-path: inset(15% 0 60% 0); transform: translate(-6px, -1px); } 28% { clip-path: inset(0 0 0 0); transform: translate(0); } 80% { clip-path: inset(25% 0 50% 0); transform: translate(-10px, 1px); } 83% { clip-path: inset(0 0 0 0); transform: translate(0); } }
.umer-x-404 .x-lost__title { font-size: clamp(34px, 5vw, 72px) !important; margin: 20px 0 30px !important; }
.x-lost__term { width: 100%; max-width: 620px; text-align: left; margin-bottom: 26px; }
.x-lost__lead { max-width: 520px; color: var(--muted); margin: 0 0 26px; }
.x-lost__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* =====================================================================
   responsive + reduced motion
   ===================================================================== */
@media (max-width: 1100px) {
  .umer-x-post .x-post-grid { grid-template-columns: minmax(0, 720px) 56px; }
  .umer-x-post .x-toc { position: relative; top: 0; grid-column: 1 / -1; max-height: none; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line); background: #11140d; }
}
@media (max-width: 900px) {
  .umer-x .x-cards > .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .x-doc { grid-template-columns: minmax(0, 1fr); }
  .x-doc__index { position: relative; top: 0; padding: 18px; border-radius: 18px; border: 1px solid var(--line); }
  .x-profile { grid-template-columns: 1fr; text-align: left; }
}
@media (max-width: 640px) {
  .umer-x-list { padding-top: 110px; }
  .umer-x .x-cards > .wp-block-post-template, .x-cards--mini > .wp-block-post-template { grid-template-columns: 1fr !important; }
  .umer-x-blog .x-cards:not(.x-paged) > .wp-block-post-template > li:first-child { grid-column: auto; grid-row: auto; }
  .umer-x-blog .x-cards:not(.x-paged) li:first-child .x-card { min-height: 440px; }
  .umer-x .x-cmd { flex-basis: 100%; }
  .umer-x-post .x-post-grid { grid-template-columns: minmax(0, 1fr); margin-top: 40px; }
  .x-rail { position: fixed; top: auto; bottom: 18px; right: 18px; flex-direction: row; z-index: 40; padding: 6px; border-radius: 18px; background: rgba(13,15,11,.85); backdrop-filter: blur(8px); border: 1px solid var(--line); }
  .x-rail__label { display: none; }
  .x-rail__btn { width: 40px; height: 40px; }
  .x-ring { display: none; }
  .x-post-hero { min-height: 80vh; padding-bottom: 70px; }
  .umer-x-post .x-post-nav { grid-template-columns: 1fr; }
  .umer-x .umer-kit__search { width: 100%; }
  .umer-x .umer-kit__bar { width: 100%; flex-wrap: wrap; }
  .x-cine__hud { font-size: 11px; }
  .x-cine__res { display: none; }
}
@media (hover: none) { .x-rail__btn[data-tip]::after { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .x-rise .x-w__i, .x-card, .x-up, .umer-x .umer-kit__btn { transition: none !important; transform: none !important; opacity: 1 !important; translate: none !important; }
  .x-card__img { clip-path: none !important; }
  .x-curtain { display: none; }
}
