/* ==========================================================================
   Blog — list (blog.html) and post (blog/<slug>.html)
   Built only from design-system tokens and components (tokens.css, hybrd.css).
   ========================================================================== */

.blog { padding-bottom: var(--s-7); }
.blog-head { padding-top: calc(var(--header-h) + 4px); padding-bottom: var(--s-4); }
.blog-head .t-title { margin-left: -.06em; }
.blog-empty { opacity: .5; }

/* Meta line: CATEGORY · DATE · N MIN READ */
.post-meta { display: flex; flex-wrap: wrap; gap: 0 var(--s-2); font: 700 var(--t-small)/1.4 var(--f-body); text-transform: uppercase; }
.post-meta > * + *::before { content: "·"; margin-right: var(--s-2); opacity: .4; }

/* ── List: latest post large, then a card grid ─────────────────────── */
.post-lead {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap); align-items: end;
  padding: var(--s-4) 0 var(--s-6); border-bottom: 1px solid currentColor;
}
.post-lead__cover { grid-column: 1 / 8; aspect-ratio: 4 / 3; }
.post-lead__text { grid-column: 8 / -1; display: grid; gap: var(--s-2); }
.post-lead:not(:has(.post-lead__cover)) .post-lead__text { grid-column: 1 / 10; }
.post-lead__title { font-size: clamp(32px, 3.4vw, var(--t-h1)); line-height: 1.05; }
.post-lead__desc { max-width: 520px; }
.post-lead__more { margin-top: var(--s-2); }
.post-lead:hover .post-lead__more, .post-lead:hover .post-lead__title { color: var(--c-blue-link); }

/* Card grid — the rest of the list, and "Discover more" under a post (Higgsfield blog layout) */
.post-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5) var(--col-gap); padding-top: var(--s-5); }
.post-card { display: grid; gap: var(--s-1); align-content: start; }
.post-card__cover { aspect-ratio: 16 / 9; margin-bottom: var(--s-1); }
.post-card__title { line-height: 1.25; }
.post-card:hover .post-card__title { color: var(--c-blue-link); }

/* ── Post ─────────────────────────────────────────────────────────────── */
.post-head { padding-top: calc(var(--header-h) + var(--s-4)); padding-bottom: var(--s-5); max-width: calc(880px + 2 * var(--gutter)); margin-left: 0; }
.post-back { display: inline-block; margin-bottom: var(--s-4); font: 700 var(--t-small)/1 var(--f-body); text-transform: uppercase; }
.post-back:hover { color: var(--c-blue-link); }
.post-title { margin-top: var(--s-2); font-size: clamp(36px, 5vw, 72px); line-height: 1.02; }
.post-desc { margin-top: var(--s-3); max-width: 680px; }
.post-cover { width: 100%; height: min(56.25vw, 80vh); margin-bottom: var(--s-6); }   /* full bleed, 16:9 until it hits 80vh */

/* Article body — the only place with long-form reading type: Inter 400 at 18px */
.prose { max-width: 720px; font: 400 18px/1.7 var(--f-body); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; font: 700 var(--t-h3)/1.3 var(--f-display); font-size: 26px; text-transform: uppercase; }
.prose h3 { margin-top: 1.8em; font: 700 18px/1.4 var(--f-body); text-transform: uppercase; }
.prose strong { font-weight: 700; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--c-blue-link); }
.prose ul { list-style: none; padding: 0; }
.prose ul li::before { content: none; }
.prose ul:not([class]):not(.dg ul) > li { position: relative; padding-left: 1.1em; }
.prose ul:not([class]):not(.dg ul) > li::before { content: ""; position: absolute; left: .15em; top: .68em; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .7; }
.prose ol { list-style: decimal; padding-left: 1.4em; }
.prose blockquote { margin-left: 0; padding-left: var(--s-3); border-left: 2px solid currentColor; font: 700 var(--t-lead)/var(--lh-lead) var(--f-body); }
.prose img, .prose video { width: 100%; height: auto; }
.prose figure { margin: 2em 0; }
.prose figcaption { margin-top: var(--s-1); font: 700 var(--t-small)/1.4 var(--f-body); text-transform: uppercase; opacity: .6; }
.prose code { font: 400 .9em/1 ui-monospace, Menlo, monospace; background: rgba(0, 0, 0, .06); padding: .1em .3em; }
.prose pre { overflow-x: auto; padding: var(--s-2); background: rgba(0, 0, 0, .06); }
.prose pre code { background: none; padding: 0; }
.prose hr { border: 0; border-top: 1px solid currentColor; opacity: .3; margin: 2.5em 0; }

/* ── Higgsfield-style step blocks inside .prose ───────────────────────── */
.prose .post-video { padding: var(--s-2) var(--s-3); border: 1px solid currentColor; font-weight: 700; }
.prose .step-label { margin-top: 1.6em; font: 700 var(--t-small)/1.4 var(--f-body); letter-spacing: .04em; text-transform: uppercase; opacity: .55; }
.prose .step-label + * { margin-top: .4em; }
.prose h2 + .step-label { margin-top: .8em; }
.prose .prompt { position: relative; margin-top: .6em; background: #0f0f0f; color: #f5f5f5; }
.prose .prompt pre { margin: 0; padding: var(--s-3) var(--s-3) var(--s-3); padding-right: 96px; background: none; white-space: pre-wrap; word-break: break-word; font: 400 15px/1.6 ui-monospace, Menlo, monospace; }
.prose .prompt__copy {
  position: absolute; top: 10px; right: 10px; padding: 6px 12px; cursor: pointer;
  border: 1px solid #f5f5f5; background: none; color: #f5f5f5; font: 700 12px/1 var(--f-body); text-transform: uppercase;
}
.prose .prompt__copy:hover, .prose .prompt__copy.is-done { background: #f5f5f5; color: #000; }
.prose .try-it { font: 700 var(--t-small)/1.4 var(--f-body); text-transform: uppercase; }
.prose .try-it a { text-decoration: underline; text-underline-offset: 3px; }
.prose hr { margin: 3em 0; opacity: .25; }

/* ── End of post: call to action, author, share, discover more ─────── */
.post-cta { max-width: 720px; margin-top: var(--s-7); padding: var(--s-6) 0; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; text-align: center; }
.post-cta .t-h3 { margin-bottom: var(--s-2); }
.post-cta .cta__mail { display: inline-block; font: 700 clamp(26px, 3.4vw, var(--t-h1))/1.1 var(--f-display); border-bottom: 2px solid currentColor; }
.post-cta .cta__mail:hover { color: var(--c-blue-link); }
.post-foot { max-width: 720px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2); padding-top: var(--s-3); font: 700 var(--t-small)/1.4 var(--f-body); text-transform: uppercase; }
.post-share { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.post-share span { opacity: .5; }
.post-share a, .post-share button { border: 0; background: none; padding: 0; color: inherit; font: inherit; text-transform: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.post-share a:hover, .post-share button:hover { color: var(--c-blue-link); }
.discover { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid currentColor; }

/* ── Art-directed posts: theme: dark · scene: <Unicorn id> · index: true (see blog/posts/_template.md) ── */
.blog--dark { background: var(--c-black); color: var(--c-white); }
.post-hero { position: relative; }
.post-hero.has-us { min-height: 92vh; display: flex; align-items: flex-end; }          /* the scene fills the first screen */
.post-hero .us-bg { opacity: .9; }
.post--dark .post-head { max-width: none; margin: 0 auto; padding-bottom: var(--s-6); }
.post--dark .post-title { font: 700 clamp(44px, 7.6vw, 132px)/.94 var(--f-display); text-transform: uppercase; letter-spacing: -.01em; max-width: 13ch; }
.post--dark .post-desc { max-width: 640px; }
.post-index { margin-top: var(--s-6); padding-top: var(--s-3); border-top: 1px solid currentColor; }
.post-index a .t-index { opacity: .55; }

/* Steps: "## Step N: Title" → Hybrd's (0N) index mark + title */
.prose .step-head { display: flex; align-items: baseline; gap: .5em; }
.prose .step-head__n { flex: none; font: 700 var(--t-index)/1 var(--f-display); opacity: .5; }
.post--dark .prose h2.step-head { margin-top: 3em; font-size: clamp(28px, 3.2vw, 46px); line-height: 1; }

/* Spec card: ```spec → Label: value rows */
.prose .spec-card { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-top: 1.4em; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }
.prose .spec-card > div { padding: 12px 16px 12px 0; }
.prose .spec-card dt { font: 700 12px/1.3 var(--f-body); letter-spacing: .04em; text-transform: uppercase; opacity: .55; }
.prose .spec-card dd { margin: 4px 0 0; font: 700 16px/1.35 var(--f-body); word-break: break-word; }
.prose .prompt--cmd pre { font-size: 14px; }

/* Dark reading: code, prompt boxes, framed figures with Hybrd's corner marks */
.post--dark .prose code { background: rgba(255, 255, 255, .1); }
.post--dark .prose pre { background: rgba(255, 255, 255, .06); }
.post--dark .prose .prompt { background: #111; border: 1px solid #2a2a2a; }
.post--dark .prose .prompt pre { background: none; }
.prose .framed-fig { position: relative; padding: 16px; --corner: 34px; }
.prose .framed-fig > .corners { position: absolute; inset: 0; pointer-events: none; }
.prose .framed-fig figcaption { padding: var(--s-1) 22px 0; }   /* clear the corner marks */
.post--dark .prose h2.step-head { text-wrap: balance; }

/* Figure pair: <div class="fig-pair" style="--cols: 3.46fr 1fr"> + two <figure>s. Set --cols to the images'
   width/height ratios and both come out the same height. Stacks on phones. */
.prose .fig-pair { display: grid; grid-template-columns: var(--cols, 1fr 1fr); gap: var(--s-2); align-items: start; margin: 2em 0; }
.prose .fig-pair > figure { margin: 0; }

/* Dark posts: text keeps its 720px column, pictures break out to the full page width */
.post--dark .wrap { container-type: inline-size; }
@media (min-width: 901px) {
  .post--dark .prose > .framed-fig, .post--dark .prose > .fig-pair { width: 100cqw; max-width: none; }
  .post--dark .prose > .framed-fig.fig--mid { width: min(100cqw, 1032px); }   /* terminal output: ~15px mono */
}

/* ── Academy (blog/academy.json): tabs, filter, locked premium cards, sign-up boxes, /premium ── */
.lock { width: .9em; height: .9em; flex: none; vertical-align: -.08em; margin-right: .4em; }
.academy-tabs { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); margin-top: var(--s-3); padding-bottom: var(--s-2); border-bottom: 1px solid currentColor;
  font: 700 var(--t-h3)/1.2 var(--f-display); text-transform: uppercase; }
.academy-tabs a:hover { color: var(--c-blue-link); }
.academy-tabs .is-current { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.academy-tabs .is-locked { display: inline-flex; align-items: center; opacity: .35; cursor: not-allowed; user-select: none; }
.academy-filter { display: flex; flex-wrap: wrap; gap: var(--s-1); margin-top: var(--s-3); }
.academy-filter button { padding: 8px 14px; border: 1px solid currentColor; background: none; color: inherit; cursor: pointer;
  font: 700 12px/1 var(--f-body); letter-spacing: .04em; text-transform: uppercase; }
.academy-filter button[aria-pressed="true"] { background: var(--c-black); color: var(--c-white); border-color: var(--c-black); }
.academy-filter button:hover { color: var(--c-blue-link); }
.academy-filter button[aria-pressed="true"]:hover { color: var(--c-white); }
.blog-list [hidden] { display: none !important; }

/* a premium pack in the list: blurred, locked; opens /premium */
.post-card--locked .post-card__cover { position: relative; overflow: hidden; display: grid; place-items: center;
  background: repeating-linear-gradient(135deg, #e9e9e9 0 14px, #f4f4f4 14px 28px); }
.post-card--locked .post-card__cover::before { content: ""; position: absolute; inset: -20%; background: radial-gradient(60% 50% at 40% 45%, #cfcfcf, transparent 70%); filter: blur(18px); }
.locked__badge { position: relative; display: inline-flex; align-items: center; padding: 8px 14px; background: var(--c-black); color: var(--c-white);
  font: 700 12px/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; }
.post-card--locked .post-card__title, .post-card--locked .post-card__line { filter: blur(3px); transition: filter var(--dur-fast) var(--ease); }
.post-card--locked:hover .post-card__title, .post-card--locked:hover .post-card__line { filter: blur(2px); }
.post-card__line { font: 400 var(--t-small)/1.45 var(--f-body); opacity: .7; }

/* boxes at the end of a post: the free file by e-mail, work with us, the premium pack */
.post-box { display: grid; gap: var(--s-1); max-width: 720px; margin-top: var(--s-5); padding: var(--s-4); border: 1px solid currentColor; }
.post-box + .post-box { margin-top: var(--s-2); }
.post-box__k { display: flex; align-items: center; font: 700 12px/1.3 var(--f-body); letter-spacing: .06em; text-transform: uppercase; opacity: .6; }
.post-box > p:not(.post-box__k) { font: 400 16px/1.55 var(--f-body); max-width: 560px; }
.post-box .subscribe { margin-top: var(--s-1); }
.post-box__btn { justify-self: start; margin-top: var(--s-1); padding: 12px 18px; border: 1px solid currentColor; font: 700 13px/1 var(--f-body); text-transform: uppercase; }
.post-pack { border-style: dashed; }
.post-pack:hover .post-box__btn, .post-work .post-box__btn:hover { color: var(--c-blue-link); }

/* /premium */
.premium-lead { max-width: 680px; margin: var(--s-3) 0; }
.premium-packs { list-style: none; padding: 0; margin: 0; border-top: 1px solid currentColor; }
.premium-packs li { display: grid; grid-template-columns: 80px 1fr; gap: var(--col-gap); padding: var(--s-3) 0; border-bottom: 1px solid currentColor; scroll-margin-top: calc(var(--header-h) + 20px); }
.premium-packs li:target { background: rgba(0, 153, 255, .08); }
.premium-packs h2 { display: flex; align-items: center; margin: 4px 0; text-transform: uppercase; }
.premium-packs li p:last-child { max-width: 620px; font: 400 16px/1.5 var(--f-body); opacity: .75; }
.premium-back { margin-top: var(--s-4); font: 700 var(--t-small)/1 var(--f-body); text-transform: uppercase; }

@media (max-width: 900px) {
  .premium-packs li { grid-template-columns: 1fr; gap: 4px; }
  .post-box { padding: var(--s-3); }
  .academy-tabs { font-size: 16px; gap: var(--s-1) var(--s-3); }
  .post-card--locked .post-card__cover { aspect-ratio: 16 / 5; }   /* locked packs stay short on phones */
}

@media (max-width: 900px) {
  .post-hero.has-us { min-height: 80vh; }
  .post-index { grid-template-columns: 1fr; }
  .prose .framed-fig { padding: 10px; --corner: 22px; }
  .prose .framed-fig figcaption { padding: var(--s-1) 14px 0; }
  .prose .fig-pair { grid-template-columns: 1fr; }
  .post-lead { display: flex; flex-direction: column; align-items: stretch; gap: var(--s-3); }
  .post-cards { grid-template-columns: 1fr; }
  .prose .prompt pre { padding-right: var(--s-3); padding-top: 52px; }
  .prose { font-size: 17px; }
}

/* ── Diagrams: ```flow ```cards ```story ```check ```tree ```utm ```ratios ```compare ```score (tools/blog.mjs) ──
   Lines and fills mix currentColor, so one rule reads on the dark and the light posts. Children rise in one by one. */
.prose .dg { --line: color-mix(in srgb, currentColor 22%, transparent); --fill: color-mix(in srgb, currentColor 5%, transparent);
  margin: 2em 0; }
.prose .dg-k { margin: 0 0 12px; font: 700 12px/1.3 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--c-blue-link); }
.prose .dg ul, .prose .dg ol { list-style: none; margin: 0; padding: 0; }
.prose .dg li { margin: 0; }
.prose .dg li::before { content: none; }
.js .prose .dg[data-reveal] [style*="--i"] { opacity: 0; transform: translateY(14px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); transition-delay: calc(var(--i) * 70ms); }
.js .prose .dg[data-reveal].is-in [style*="--i"] { opacity: 1; transform: none; }
.prose .dg-tag { padding: 3px 8px; border: 1px solid var(--line); border-radius: 99px; font: 700 11px/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; }

/* flow: numbered nodes on a line, one row per half */
.prose .dg-flow { display: grid; gap: var(--s-3); padding: var(--s-3); border: 1px solid var(--line); background: var(--fill); }
.prose .dg-flow__k { margin: 0 0 10px; font: 700 12px/1.3 var(--f-body); letter-spacing: .08em; text-transform: uppercase; opacity: .6; }
.prose .dg-flow__nodes { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
.prose .dg-flow__nodes li { position: relative; display: grid; align-content: start; gap: 6px; padding: 12px; border: 1px solid var(--line); background: var(--c-black); }
.prose .dg-flow__nodes li:not(:last-child)::after { content: "→"; position: absolute; right: -10px; top: 50%; translate: 50% -50%; font-size: 12px; opacity: .45; }
.prose .dg-flow__n { font: 700 var(--t-index)/1 var(--f-display); color: var(--c-blue-link); }
.prose .dg-flow__t { font: 700 14px/1.25 var(--f-body); }
.prose .dg-flow__note { margin: 10px 0 0; font: 400 14px/1.4 var(--f-body); opacity: .7; }

/* cards */
.prose .dg-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.prose .dg-cards:has(> :nth-child(4):last-child), .prose .dg-cards:has(> :nth-child(8):last-child) { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.prose .dg-card { display: grid; align-content: start; gap: 8px; padding: 18px; border: 1px solid var(--line); background: var(--fill); }
.prose .dg-card__top { display: flex; justify-content: space-between; align-items: center; margin: 0 0 6px; font: 700 var(--t-index)/1 var(--f-display); color: var(--c-blue-link); }
.prose .dg-card__t { margin: 0; font: 700 17px/1.3 var(--f-body); }
.prose .dg-card__b { margin: 0; font: 400 15px/1.5 var(--f-body); opacity: .75; }

/* story: a real moment, blue rule */
.prose .dg-story { padding: var(--s-3) var(--s-3) var(--s-3) calc(var(--s-3) + 4px); border-left: 4px solid var(--c-blue-link); background: var(--fill); }
.prose .dg-story p:not(.dg-k) { margin: 0; font: 400 18px/1.55 var(--f-body); }
.prose .dg-story p + p { margin-top: .8em; }

/* check */
.prose .dg-check { padding: var(--s-3); border: 1px solid var(--line); }
.prose .dg-check li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font: 400 16px/1.5 var(--f-body); }
.prose .dg-check li:first-child { border-top: 0; padding-top: 0; }
.prose .dg-check svg { width: 22px; height: 22px; margin-top: 1px; padding: 3px; border-radius: 50%; background: var(--c-blue-link); color: #fff; }

/* tree: root on the left, branches off one spine */
.prose .dg-tree { display: grid; grid-template-columns: minmax(180px, 1fr) 2fr; align-items: center; gap: 0; }
.prose .dg-tree__root { padding: 20px; border: 2px solid var(--c-blue-link); position: relative; }
.prose .dg-tree__root::after { content: ""; position: absolute; right: -24px; top: 50%; width: 24px; border-top: 1px solid var(--line); }
.prose .dg-tree__leaves { margin-left: 24px !important; padding-left: 24px !important; border-left: 1px solid var(--line); display: grid; gap: 10px; }
.prose .dg-tree__leaves li { position: relative; padding: 12px 16px; border: 1px solid var(--line); background: var(--fill); }
.prose .dg-tree__leaves li::before { content: ""; position: absolute; left: -25px; top: 50%; width: 24px; border-top: 1px solid var(--line); }
.prose .dg-tree__t { margin: 0; font: 700 16px/1.3 var(--f-body); }
.prose .dg-tree__b { margin: 4px 0 0; font: 400 14px/1.45 var(--f-body); opacity: .72; }

/* utm: a link taken apart */
.prose .dg-utm { padding: var(--s-3); border: 1px solid var(--line); background: var(--fill); }
.prose .dg-utm__url { margin: 0 0 var(--s-3); font: 500 15px/2.1 ui-monospace, Menlo, monospace; overflow-wrap: anywhere; }
.prose .dg-utm__base { opacity: .5; }
.prose .dg-utm__p { display: inline-block; max-width: 100%; overflow-wrap: anywhere; line-height: 1.5; padding: 3px 6px; border-radius: 3px; background: color-mix(in srgb, var(--c-blue-link) 22%, transparent); }
.prose .dg-utm__p sup { margin-left: 3px; color: var(--c-blue-link); font: 700 10px/1 var(--f-body); }
.prose .dg-utm__amp { opacity: .45; padding: 0 2px; }
.prose .dg-utm__legend { display: grid; gap: 8px; }
.prose .dg-utm__legend li { display: grid; grid-template-columns: 22px auto 1fr; gap: 10px; align-items: baseline; font: 400 15px/1.45 var(--f-body); }
.prose .dg-utm__n { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--c-blue-link); color: #fff; font: 700 11px/1 var(--f-body); }

/* ratios: format shapes at one height */
.prose .dg-ratios { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--s-3); }
.prose .dg-ratio { margin: 0; display: grid; gap: 10px; width: max-content; max-width: 100%; }
.prose .dg-ratio__box { position: relative; height: 240px; border: 1.5px solid currentColor; background: var(--fill); }
.prose .dg-ratio__r { position: absolute; left: 10px; top: 8px; font: 700 20px/1 var(--f-display); }
.prose .dg-ratio__safe { position: absolute; display: grid; place-items: center; border: 1.5px dashed var(--c-blue-link); background: color-mix(in srgb, var(--c-blue-link) 10%, transparent); }
.prose .dg-ratio__safe span { font: 700 10px/1.2 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--c-blue-link); text-align: center; padding: 4px; }
.prose .dg-ratio figcaption { display: grid; gap: 2px; max-width: 220px; margin: 0; font: 400 14px/1.4 var(--f-body); text-transform: none; opacity: 1; }
.prose .dg-ratio figcaption span { opacity: .7; }

/* compare */
.prose .dg-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.prose .dg-compare__col { padding: 20px; background: var(--c-black); }
.blog:not(.blog--dark) .prose .dg-compare__col { background: var(--c-white); }
.prose .dg-compare__col:first-child .dg-k { color: inherit; opacity: .6; }
.prose .dg-compare li { padding: 8px 0; border-top: 1px solid var(--line); font: 400 15px/1.45 var(--f-body); }

/* score: click 1 to 5 */
.prose .dg-score { padding: var(--s-3); border: 1px solid var(--line); }
.prose .dg-score__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.prose .dg-score__c { flex: 1 1 240px; font: 400 15px/1.4 var(--f-body); }
.prose .dg-score__dots { display: flex; gap: 6px; }
.prose .dg-score__dots button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: none; color: inherit; font: 700 13px/1 var(--f-body); cursor: pointer;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease); }
.prose .dg-score__dots button:hover { border-color: currentColor; }
.prose .dg-score__dots button.is-on { background: var(--c-blue-link); border-color: var(--c-blue-link); color: #fff; }
.prose .dg-score.is-low .dg-score__dots button.is-on { background: #ff4d3d; border-color: #ff4d3d; }
.prose .dg-score__total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 12px 0 0; padding-top: 16px; border-top: 1px solid currentColor; }
.prose .dg-score__total [data-score-total] { font: 700 32px/1 var(--f-display); }
.prose .dg-score__total [data-score-say] { flex: 1 1 260px; font: 400 15px/1.45 var(--f-body); opacity: .8; }

@media (max-width: 700px) {
  .prose .dg-flow__nodes { grid-template-columns: repeat(2, 1fr); }
  .prose .dg-flow__nodes li::after { display: none; }
  .prose .dg-tree { grid-template-columns: 1fr; }
  .prose .dg-tree__root::after { display: none; }
  .prose .dg-tree__leaves { margin: 12px 0 0 16px !important; }
  .prose .dg-compare { grid-template-columns: 1fr; }
  .prose .dg-ratio__box { height: 180px; }
}
.blog:not(.blog--dark) .prose .dg-flow__nodes li { background: var(--c-white); }

/* ── Reading layout: the text column centred, a sticky Contents rail beside it (tools/blog.mjs .post-toc) ── */
.post-body { display: grid; grid-template-columns: minmax(0, 800px) 220px; justify-content: center; column-gap: clamp(40px, 6vw, 112px); align-items: start; }
.post-main > .prose, .post-main > .post-box, .post-main > .post-cta, .post-main > .post-foot { max-width: none; }
.post-main .prose > * { max-width: 100%; }
@media (min-width: 901px) { .post--dark .post-main .prose > .framed-fig, .post--dark .post-main .prose > .fig-pair { width: 100%; } }
.post-toc { position: sticky; top: calc(var(--header-h) + var(--s-3)); padding-top: 6px; font: 400 14px/1.35 var(--f-body); }
.post-toc__k { margin-bottom: 14px; font: 700 12px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; opacity: .55; }
.post-toc ol { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 1px solid color-mix(in srgb, currentColor 18%, transparent); display: grid; gap: 2px; }
.post-toc a { position: relative; display: flex; gap: 8px; padding: 6px 0; opacity: .5; transition: opacity var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.post-toc a span { font: 700 12px/1.6 var(--f-display); min-width: 18px; }
.post-toc a:hover { opacity: .9; }
.post-toc a.is-current { opacity: 1; color: var(--c-blue-link); }
.post-toc a.is-current::before { content: ""; position: absolute; left: -16px; top: 6px; bottom: 6px; width: 3px; border-radius: 2px; background: var(--c-blue-link); }
.post-toc__bar { margin-top: 18px; height: 2px; background: color-mix(in srgb, currentColor 14%, transparent); }
.post-toc__bar i { display: block; height: 100%; width: 0; background: var(--c-blue-link); transition: width .15s linear; }
@media (max-width: 1100px) { .post-body { grid-template-columns: minmax(0, 800px); } .post-toc { display: none; } }
/* the header lines up with the reading column + rail below it */
.post .post-head, .post--dark .post-head { max-width: calc(1020px + clamp(40px, 6vw, 112px) + 2 * var(--gutter)); margin-left: auto; margin-right: auto; }
@media (max-width: 1100px) { .post .post-head, .post--dark .post-head { max-width: calc(800px + 2 * var(--gutter)); } }

/* ═════════ Academy plan (2026-11-18): ground, byline, sticky bar, takeaways, prompt box, versus, mistakes, FAQ,
   stepper, ui replay, bars, animated covers, academy opening, premium tiers and bento ═════════ */

/* Ground: terminal grid, soft blue pools breathing under it (from the clinic presentation) */
.bgfx { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bgfx::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px); background-size: 28px 28px; }
.bgfx .gl { position: absolute; inset: 0; opacity: 0; background-color: rgba(38,84,196,.16);
  background-image: linear-gradient(rgba(61,126,245,.42) 1px, transparent 1px), linear-gradient(90deg, rgba(61,126,245,.42) 1px, transparent 1px); background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(closest-side, #000 0%, rgba(0,0,0,.45) 48%, transparent 100%); mask-image: radial-gradient(closest-side, #000 0%, rgba(0,0,0,.45) 48%, transparent 100%);
  -webkit-mask-size: var(--r) var(--r); mask-size: var(--r) var(--r); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; animation: bg-pool 14s ease-in-out infinite; }
.bgfx .g1 { --r: 820px; } .bgfx .g2 { --r: 680px; animation: bg-pool2 16s ease-in-out -4.7s infinite; } .bgfx .g3 { --r: 900px; animation-duration: 18s; animation-delay: -9.4s; }
@keyframes bg-pool { 0% { opacity: 0; -webkit-mask-position: 12% 18%; mask-position: 12% 18%; } 25% { opacity: .85; -webkit-mask-position: 18% 24%; mask-position: 18% 24%; } 45%, 50% { opacity: 0; -webkit-mask-position: 88% 70%; mask-position: 88% 70%; } 75% { opacity: .85; -webkit-mask-position: 80% 62%; mask-position: 80% 62%; } 95%, 100% { opacity: 0; -webkit-mask-position: 12% 18%; mask-position: 12% 18%; } }
@keyframes bg-pool2 { 0% { opacity: 0; -webkit-mask-position: 86% 12%; mask-position: 86% 12%; } 30% { opacity: .75; -webkit-mask-position: 80% 20%; mask-position: 80% 20%; } 50%, 55% { opacity: 0; -webkit-mask-position: 20% 82%; mask-position: 20% 82%; } 80% { opacity: .75; -webkit-mask-position: 28% 74%; mask-position: 28% 74%; } 100% { opacity: 0; -webkit-mask-position: 86% 12%; mask-position: 86% 12%; } }
.blog--dark > *:not(.bgfx):not(.us-bg):not(.us-dim), .post--dark > *:not(.bgfx):not(.post-bar):not(.us-bg):not(.us-dim) { position: relative; z-index: 1; }
.blog--dark { background: #000; }

.ico { width: 1em; height: 1em; vertical-align: -.14em; margin-right: .35em; }
.ico--check { color: var(--c-blue-link); }

/* reading tone: headings full white, running text a step back */
.post--dark .prose > p, .post--dark .prose > ul, .post--dark .prose > ol { color: rgba(255,255,255,.82); }
.post--dark .prose strong { color: #fff; }

/* byline */
.post-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: var(--s-4); padding-top: var(--s-2); border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); font: 500 14px/1.2 var(--f-body); }
.post-byline img { width: 26px; height: 26px; object-fit: contain; }
.post-byline__sp { flex: 1; }
.post-byline span, .post-byline time { opacity: .7; }

/* sticky bar */
.post-bar { position: fixed; left: 0; right: 0; top: var(--header-h); z-index: 30; background: rgba(0,0,0,.86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.12); color: #fff; transform: translateY(-110%); opacity: 0; transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease); }
.post-bar.is-on { transform: none; opacity: 1; }
.post-bar__in { display: flex; align-items: center; gap: 10px; max-width: calc(1020px + clamp(40px, 6vw, 112px)); margin: 0 auto; padding: 10px var(--gutter); font: 500 13px/1.2 var(--f-body); }
.post-bar__back { opacity: .6; white-space: nowrap; } .post-bar__back:hover { opacity: 1; color: var(--c-blue-link); }
.post-bar__sep { opacity: .35; }
.post-bar__title { flex: 1; min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-bar button { flex: none; padding: 6px 11px; border: 1px solid rgba(255,255,255,.22); border-radius: 99px; background: none; color: inherit; font: 600 12px/1 var(--f-body); cursor: pointer; }
.post-bar button:hover { border-color: #fff; }
.post-bar__toc { display: none; } .post-bar__toc b { color: var(--c-blue-link); }
.post-bar__list { list-style: none; margin: 0; padding: 4px var(--gutter) 14px; max-height: 60vh; overflow: auto; display: grid; gap: 2px; font: 400 14px/1.35 var(--f-body); }
.post-bar__list a { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.08); }
.post-bar__list a span { font: 700 12px/1.6 var(--f-display); color: var(--c-blue-link); min-width: 20px; }
.post-bar__line { position: absolute; left: 0; bottom: -1px; height: 2px; width: var(--p, 0%); background: var(--c-blue-link); }
@media (max-width: 1100px) { .post-bar__toc { display: inline-block; } .post-bar__back, .post-bar__sep { display: none; } }
@media (max-width: 560px) { .post-bar__copy { display: none; } }

/* key takeaways */
.prose .dg-take { padding: var(--s-3); border: 1px solid color-mix(in srgb, var(--c-blue-link) 45%, transparent); background: color-mix(in srgb, var(--c-blue-link) 7%, transparent); }
.prose .dg-take li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 7px 0; font: 400 16px/1.5 var(--f-body); }
.prose .dg-take svg { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--c-blue-link); color: #fff; }
.prose .dg-take__t { margin: 12px 0 0; font: italic 400 14px/1.4 var(--f-body); opacity: .65; }

/* prompt box: clipped with a fade, Show all, Copy, Open in Claude */
.prose .prompt--box { position: relative; padding: 18px 18px 14px; border-radius: 12px; }
.prose .prompt--box pre { max-height: 9.2em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.prose .prompt--box.is-open pre, .prose .prompt--box.is-short pre { max-height: none; -webkit-mask-image: none; mask-image: none; }
.prose .prompt__bar { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.prose .prompt--box .prompt__copy { position: static; }
.prose .prompt__bar > * { padding: 8px 13px; border: 1px solid rgba(255,255,255,.22); border-radius: 8px; background: none; color: inherit; font: 600 13px/1 var(--f-body); cursor: pointer; text-decoration: none; }
.prose .prompt__bar > *:hover { border-color: currentColor; }
.prose .prompt__open { background: var(--c-blue-link) !important; border-color: var(--c-blue-link) !important; color: #fff !important; }
.blog:not(.blog--dark) .prose .prompt__bar > * { border-color: rgba(0,0,0,.2); }

/* media: download + full screen on every framed picture */
.prose figure { position: relative; }
.prose .fig-tools { position: absolute; top: 24px; right: 24px; display: flex; gap: 6px; opacity: 0; transition: opacity var(--dur-fast) var(--ease); z-index: 2; }
.prose figure:hover .fig-tools, .prose .fig-tools:focus-within { opacity: 1; }
.prose .fig-tools a, .prose .fig-tools button { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.3); border-radius: 8px; background: rgba(0,0,0,.7); color: #fff; font: 600 15px/1 var(--f-body); cursor: pointer; text-decoration: none; }
.prose figure img { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; background: rgba(0,0,0,.94); cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox button { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: none; color: #fff; font-size: 18px; cursor: pointer; }

/* versus */
.prose .dg-vs { padding: var(--s-3); border: 1px solid var(--line); background: var(--fill); }
.prose .dg-vs__goal { margin: 0 0 14px; font: 400 16px/1.5 var(--f-body); }
.prose .dg-vs__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.prose .dg-vs__fig { margin: 0; position: relative; }
.prose .dg-vs__fig img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 6px; }
.prose .dg-lbl { position: absolute; left: 8px; top: 8px; padding: 3px 8px; background: rgba(0,0,0,.7); color: #fff; font: 600 12px/1.2 var(--f-body); border-radius: 4px; }
.prose .dg-vs__res { margin: 14px 0 0; font: 400 16px/1.55 var(--f-body); }
.prose .dg-vs__bad b { color: #ff6b5c; }
@media (max-width: 600px) { .prose .dg-vs__pair { grid-template-columns: 1fr; } }

/* mistakes */
.prose .dg-mist { padding: var(--s-3); border: 1px solid var(--line); }
.prose .dg-mist .dg-k { color: #ff6b5c; }
.prose .dg-mist li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font: 400 16px/1.5 var(--f-body); }
.prose .dg-mist li:first-child { border-top: 0; }
.prose .dg-mist li > span:first-child { color: #ff6b5c; font-weight: 700; }

/* faq (also on /premium) */
.dg-faq details { border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.dg-faq details:last-child { border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.dg-faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; font: 700 17px/1.35 var(--f-body); cursor: pointer; list-style: none; }
.dg-faq summary::-webkit-details-marker { display: none; }
.dg-faq summary i { position: relative; flex: none; width: 14px; height: 14px; margin-top: 4px; }
.dg-faq summary i::before, .dg-faq summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: currentColor; transition: transform var(--dur-fast) var(--ease); }
.dg-faq summary i::after { transform: rotate(90deg); }
.dg-faq details[open] summary i::after { transform: rotate(0); }
.dg-faq summary:hover { color: var(--c-blue-link); }
.dg-faq details p { margin: 0 0 18px; max-width: 680px; font: 400 16px/1.6 var(--f-body); opacity: .8; }

/* stepper: ticks itself off, one after another */
.prose .dg-stepper { display: grid; gap: 2px; padding: 6px 0 6px 18px; border-left: 1px solid var(--line); }
.prose .dg-stepper li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: center; padding: 9px 0; font: 500 16px/1.4 var(--f-body); opacity: .45; }
.prose .dg-stepper__c { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 50%; }
.prose .dg-stepper__c svg { width: 14px; height: 14px; opacity: 0; }
.prose .dg-stepper.is-run li { animation: st-tick .5s var(--ease-out) forwards; animation-delay: calc(.35s + var(--i) * .55s); }
.prose .dg-stepper.is-run li .dg-stepper__c { animation: st-dot .5s var(--ease-out) forwards; animation-delay: calc(.35s + var(--i) * .55s); }
.prose .dg-stepper.is-run li svg { animation: st-svg .5s forwards; animation-delay: calc(.35s + var(--i) * .55s); }
@keyframes st-tick { to { opacity: 1; } }
@keyframes st-dot { to { background: var(--c-blue-link); border-color: var(--c-blue-link); color: #fff; } }
@keyframes st-svg { to { opacity: 1; } }

/* ui replay: a plain settings panel, a cursor checks it row by row (once, when it comes into view) */
.prose .dg-ui { position: relative; max-width: 560px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: #0b0b0b; color: #fff; }
.prose .dg-ui__h { margin: 0 0 8px; font: 700 15px/1.3 var(--f-body); }
.prose .dg-ui__row { display: grid; grid-template-columns: 1fr auto 22px; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.12); font: 400 15px/1.3 var(--f-body); }
.prose .dg-ui__row span { color: rgba(255,255,255,.62); }
.prose .dg-ui__row b { font-weight: 600; }
.prose .dg-ui__row em { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--c-blue-link); color: #fff; font: 700 12px/1 var(--f-body); font-style: normal; opacity: 0; transform: scale(.4); }
.prose .dg-ui__row em svg { width: 12px; height: 12px; }
.prose .dg-ui__row.is-warn em { background: #f0b84a; color: #000; }
.prose .dg-ui__cur { position: absolute; right: 54px; top: 46px; width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 15px solid #fff; transform: rotate(-28deg); opacity: 0; filter: drop-shadow(0 2px 4px rgba(0,0,0,.6)); }
.prose .dg-ui.is-run .dg-ui__row em { animation: ui-pop .4s var(--ease-spring) forwards; animation-delay: calc(.6s + var(--i) * .7s); }
.prose .dg-ui.is-run .dg-ui__cur { animation: ui-cur calc(var(--n) * .7s + .6s) linear forwards; }
@keyframes ui-pop { to { opacity: 1; transform: none; } }
@keyframes ui-cur { 0% { opacity: 1; top: 46px; } 96% { opacity: 1; } 100% { opacity: 0; top: calc(46px + var(--n) * 44px); } }

/* bars: fill when they come into view */
.prose .dg-bars { display: grid; gap: 14px; padding: var(--s-3); border: 1px solid var(--line); }
.prose .dg-bars__row { display: grid; grid-template-columns: 110px 1fr 120px; gap: 14px; align-items: center; font: 500 15px/1.3 var(--f-body); }
.prose .dg-bars__row b { font-weight: 600; opacity: .75; }
.prose .dg-bars__t { height: 18px; background: rgba(255,255,255,.07); }
.prose .dg-bars__t i { display: block; height: 100%; width: 0; background: var(--c-blue-link); transition: width 1.4s var(--ease-out); transition-delay: calc(.3s + var(--i) * .25s); }
.prose .dg-bars__row:nth-child(2) .dg-bars__t i { background: rgba(255,255,255,.5); }
.prose .dg-bars.is-run .dg-bars__t i { width: var(--to); }
.prose .dg-bars__cap { margin: 0; font: italic 400 13.5px/1.4 var(--f-body); opacity: .6; }
@media (max-width: 600px) { .prose .dg-bars__row { grid-template-columns: 1fr; gap: 6px; } }

/* flow: a dot runs along each row, the step it passes lights up (once) */

/* utm: the link builds itself piece by piece */
.prose .dg-utm .dg-utm__p { opacity: 1; }
.js .prose .dg-utm .dg-utm__p { opacity: 0; transform: none; transition: opacity .4s var(--ease); transition-delay: calc(.3s + var(--i) * .45s); }
.js .prose .dg-utm.is-run .dg-utm__p { opacity: 1; }

/* animated covers (posts without a picture) */
.post-card__cover, .post-lead__cover { position: relative; overflow: hidden; }
.post-card__cover img, .post-lead__cover img { transition: transform .8s var(--ease-out); }
.post-card:hover .post-card__cover img, .post-lead:hover .post-lead__cover img { transform: scale(1.04); }

/* academy opening */
.academy-promise { max-width: 640px; margin-top: var(--s-2); }
.academy-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: var(--s-3) 0 0; padding: 0; }
.academy-facts li { padding: 8px 14px; border: 1px solid color-mix(in srgb, currentColor 22%, transparent); border-radius: 99px; font: 600 13px/1 var(--f-body); }

/* dark list: locked cards on black */
.blog--dark .post-card--locked .post-card__cover { background: #0d0d0d; }
.blog--dark .post-card--locked .post-card__cover::before { background: radial-gradient(60% 50% at 40% 45%, #1b3a55, transparent 70%); }

/* premium */
.premium-more { padding-bottom: var(--s-6); }
.premium-h { margin: var(--s-6) 0 var(--s-3); }
.tier { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.tier__card { display: grid; align-content: start; gap: 12px; padding: var(--s-4) var(--s-3); border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.03); }
.tier__card--on { border-color: var(--c-blue-link); box-shadow: inset 0 0 0 1px var(--c-blue-link), 0 0 60px -20px var(--c-blue-link); background: color-mix(in srgb, var(--c-blue-link) 7%, transparent); }
.tier__k { font: 700 12px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--c-blue-link); }
.tier__t { font: 700 clamp(26px, 3vw, 40px)/1 var(--f-display); text-transform: uppercase; }
.tier ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; font: 400 16px/1.4 var(--f-body); }
.tier li.is-off { opacity: .45; } .tier li.is-off span { display: inline-block; width: 1em; margin-right: .35em; text-align: center; }
.tier__btn { justify-self: start; margin-top: 14px; padding: 12px 18px; border: 1px solid currentColor; font: 700 13px/1 var(--f-body); text-transform: uppercase; }
.tier__btn--on { background: var(--c-blue-link); border-color: var(--c-blue-link); color: #fff; }
.tier__btn:hover { opacity: .85; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bento__tile { display: grid; align-content: space-between; gap: 18px; min-height: 160px; padding: var(--s-3); border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.03); }
.bento__tile--wide { grid-column: span 2; }
.bento__tile b { font: 700 clamp(20px, 2vw, 28px)/1 var(--f-display); text-transform: uppercase; }
.bento__tile span { font: 400 15px/1.45 var(--f-body); opacity: .72; max-width: 44ch; }
.premium-faq { max-width: 820px; }
@media (max-width: 760px) { .tier, .bento { grid-template-columns: 1fr; } .bento__tile--wide { grid-column: auto; } }

@media (prefers-reduced-motion: reduce) {
  .bgfx .gl { animation: none; opacity: .35; }
  .prose .dg-stepper li, .prose .dg-stepper__c, .prose .dg-stepper svg, .prose .dg-ui__row em { animation: none !important; opacity: 1; transform: none; }
  .prose .dg-ui__cur { display: none; }
  .prose .dg-bars__t i { width: var(--to); transition: none; }
}
.post-bar__list[hidden] { display: none; }
@media (min-width: 1101px) { .post-bar__list { display: none !important; } }

/* ═════════ Round 2 (Murat 2026-11-18) ═════════ */
/* every box: 85% dark glass, the grid blurred behind it (cards, prompt and file boxes, diagrams) */
.blog--dark .prose .dg-card, .blog--dark .prose .dg-flow, .blog--dark .prose .dg-flow__nodes li, .blog--dark .prose .dg-story, .blog--dark .prose .dg-check,
.blog--dark .prose .dg-tree__root, .blog--dark .prose .dg-tree__leaves li, .blog--dark .prose .dg-utm, .blog--dark .prose .dg-ratio__box, .blog--dark .prose .dg-compare__col,
.blog--dark .prose .dg-score, .blog--dark .prose .dg-take, .blog--dark .prose .dg-vs, .blog--dark .prose .dg-mist, .blog--dark .prose .dg-bars, .blog--dark .prose .dg-ui,
.blog--dark .prose .dg-repo, .blog--dark .prose .prompt, .blog--dark .prose pre:not(.prompt pre), .blog--dark .prose .spec-card, .blog--dark .prose .dg-faq,
.blog--dark .post-box, .blog--dark .tier__card, .blog--dark .bento__tile, .blog--dark .prose .framed-fig .fig-scroll, .blog--dark .prose .dg-stepper {
  background-color: rgba(12, 13, 16, .85); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.blog--dark .prose .dg-compare { background: rgba(255,255,255,.14); }
.blog--dark .prose .dg-take { background-color: rgba(8, 22, 36, .85); }
.blog--dark .tier__card--on { background-color: rgba(6, 26, 44, .85); }
.blog--dark .prose .prompt pre { background: none; }

/* headings: Clash Display bold closes up; open the words */
.prose .step-head__t, .post-title, .run-cover__t, .tier__t, .bento__tile b, .premium-h, .discover .t-h2, .prose h2, .prose h3 { word-spacing: .2em; letter-spacing: .005em; }
.post--dark .post-title { letter-spacing: .005em; }

/* less air between steps (−65%) */
.prose hr { margin: 1.05em 0; }
.post--dark .prose h2.step-head { margin-top: 1.05em; }
.prose .try-it + hr, .prose hr + h2 { margin-top: 1.05em; }

/* prompt and file boxes scroll inside, like a code panel; the fade lifts at the end */
.prose .prompt--box pre { max-height: 220px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 36px), transparent); mask-image: linear-gradient(#000 calc(100% - 36px), transparent); }
.prose .prompt--box pre.is-end, .prose .prompt--box.is-short pre { -webkit-mask-image: none; mask-image: none; }
.prose .prompt__more { display: none !important; }
.prose .prompt--cmd pre { max-height: 220px; overflow-y: auto; }
.prose .fig-scroll { max-height: 520px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent; border-radius: 4px; }
.prose .fig-scroll img { display: block; width: 100%; }

/* brackets hold the picture: the marks sit outside the picture's box */
.prose .framed-fig { padding: 26px; --corner: 22px; }
.prose .framed-fig .fig-tools { top: 34px; right: 34px; }

/* repo card (```repo): GitHub's mark, the owner's avatar, the facts */
.prose .dg-repo { display: grid; gap: 14px; padding: 22px 24px; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; color: inherit; text-decoration: none; transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
.prose .dg-repo:hover { border-color: var(--c-blue-link); }
.prose .dg-repo__top { display: flex; align-items: center; gap: 12px; }
.prose .dg-repo__av { width: 40px; height: 40px; border-radius: 10px; background: #fff; object-fit: cover; }
.prose .dg-repo__name { display: flex; flex-wrap: wrap; gap: 0 6px; align-items: baseline; font: 400 19px/1.25 var(--f-body); }
.prose .dg-repo__name span { opacity: .65; } .prose .dg-repo__name b { font-weight: 700; color: #58a6ff; }
.prose .dg-repo__pub { padding: 2px 8px; border: 1px solid rgba(255,255,255,.25); border-radius: 99px; font: 500 12px/1.4 var(--f-body); opacity: .75; }
.prose .dg-repo__gh { width: 26px; height: 26px; margin-left: auto; flex: none; }
.prose .dg-repo__about { font: 400 16px/1.5 var(--f-body); opacity: .82; }
.prose .dg-repo__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 0; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); }
.prose .dg-repo__facts dt { font: 700 11px/1.3 var(--f-body); letter-spacing: .08em; text-transform: uppercase; opacity: .55; }
.prose .dg-repo__facts dd { margin: 4px 0 0; font: 600 15px/1.35 var(--f-body); }
.prose .dg-repo__dot { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; background: #8b949e; }
.prose .dg-repo__dot[data-lang="Python"] { background: #3572A5; } .prose .dg-repo__dot[data-lang="JavaScript"] { background: #f1e05a; }
.prose .dg-repo__dot[data-lang="TypeScript"] { background: #3178c6; } .prose .dg-repo__dot[data-lang="Rust"] { background: #dea584; }
.prose .dg-repo__go { justify-self: start; font: 700 13px/1 var(--f-body); text-transform: uppercase; color: var(--c-blue-link); }

/* ═════════ Round 3 (Murat 2026-11-18): the scene behind the whole page; boxes at 70% ═════════ */
.us-bg--page { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.us-dim { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: #000; opacity: var(--dim, 0); }
.blog--dark > *:not(.bgfx):not(.us-bg):not(.us-dim), .post--dark > *:not(.bgfx):not(.post-bar):not(.us-bg):not(.us-dim) { position: relative; z-index: 1; }
.blog--dark > .us-bg--page, .post--dark > .us-bg--page { position: fixed; z-index: 0; }
.blog--dark > .us-dim, .post--dark > .us-dim { position: fixed; z-index: 0; }
.blog--dark .prose .dg-card, .blog--dark .prose .dg-flow, .blog--dark .prose .dg-flow__nodes li, .blog--dark .prose .dg-story, .blog--dark .prose .dg-check,
.blog--dark .prose .dg-tree__root, .blog--dark .prose .dg-tree__leaves li, .blog--dark .prose .dg-utm, .blog--dark .prose .dg-ratio__box, .blog--dark .prose .dg-compare__col,
.blog--dark .prose .dg-score, .blog--dark .prose .dg-vs, .blog--dark .prose .dg-mist, .blog--dark .prose .dg-bars, .blog--dark .prose .dg-ui,
.blog--dark .prose .dg-repo, .blog--dark .prose .prompt, .blog--dark .prose pre:not(.prompt pre), .blog--dark .prose .spec-card, .blog--dark .prose .dg-faq,
.blog--dark .post-box, .blog--dark .tier__card, .blog--dark .bento__tile, .blog--dark .prose .framed-fig .fig-scroll, .blog--dark .prose .dg-stepper,
.blog--dark .post-card--locked .post-card__cover { background-color: rgba(12, 13, 16, .70); }
.blog--dark .prose .dg-take { background-color: rgba(8, 22, 36, .70); }
.blog--dark .tier__card--on { background-color: rgba(6, 26, 44, .70); }
@media (prefers-reduced-motion: reduce) { .us-bg--page { display: none; } }

/* ═════════ Prompt as given, engine underneath (Murat 2026-11-18) ═════════ */
/* Claude prompts: a chat composer like Claude's own (dark), the prompt in it, model and effort in its bar */
.prose .prompt--chat { margin: 1.6em 0; padding: 0; border: 0; background: none !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
.prose .chat { padding: 16px 18px 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 22px; background: #30302e; color: #faf9f5; box-shadow: 0 8px 30px rgba(0,0,0,.35); }
.prose .chat pre { margin: 0; padding: 0; max-height: 220px; overflow-y: auto; background: none !important; border: 0; white-space: pre-wrap; font: 400 16px/1.55 var(--f-body); color: inherit; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 30px), transparent); mask-image: linear-gradient(#000 calc(100% - 30px), transparent); }
.prose .prompt--chat.is-short pre, .prose .chat pre.is-end { -webkit-mask-image: none; mask-image: none; }
.prose .chat__bar { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.prose .chat__plus { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.14); border-radius: 9px; font: 400 18px/1 var(--f-body); color: rgba(250,249,245,.7); }
.prose .chat__sp { flex: 1; }
.prose .chat__model { font: 500 13.5px/1 var(--f-body); color: rgba(250,249,245,.62); }
.prose .chat__send { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: #c6613f; color: #fff; font: 700 16px/1 var(--f-body); }
/* the engine line under every prompt */
.prose .engine { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 4px 0; padding: 0; font: 400 13px/1.4 var(--f-body); color: rgba(255,255,255,.62); text-transform: none; opacity: 1; }
.prose .engine b { font-weight: 600; color: rgba(255,255,255,.9); }
.prose .engine__m { font-weight: 700; color: #fff; }
.prose .engine__m::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #c6613f; vertical-align: 1px; }
.prose .engine__m--na { font-weight: 500; color: rgba(255,255,255,.55); } .prose .engine__m--na::before { background: rgba(255,255,255,.35); }
.prose .prompt--chat .prompt__bar { margin-top: 8px; }
.prose .prompt--box .engine { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.1); }

.prose .prompt--chat .prompt__copy { position: static; }

/* ═════════ Round 4 (Murat 2026-11-18): schemes move on a loop, data runs the wires, covers as motion schemes,
   Free / Premium groups, "What you get" in motion ═════════ */

/* flow: a wire between nodes; a packet crosses it while the next node lights (the row's --n sets the loop) */
.prose .dg-flow__nodes { --step: .7s; --loop: calc(var(--n, 6) * var(--step) + 1.6s); }
.prose .dg-flow__nodes li { animation: fl-lit var(--loop) linear infinite; animation-delay: calc(var(--j, 0) * var(--step) + .35s); }
@keyframes fl-lit { 0%, 8% { border-color: var(--c-blue-link); box-shadow: inset 0 0 0 1px var(--c-blue-link), 0 0 22px color-mix(in srgb, var(--c-blue-link) 35%, transparent); } 20%, 100% { border-color: var(--line); box-shadow: none; } }
@media (min-width: 701px) {
  .prose .dg-flow__nodes { column-gap: 18px; }
  .prose .dg-flow__nodes li:not(:last-child)::after { content: ""; right: -18px; top: 50%; translate: 0 -50%; width: 18px; height: 8px; opacity: 1;
    background: radial-gradient(circle, var(--c-blue-link) 0 2.5px, transparent 3.5px) no-repeat -8px 50% / 8px 8px, linear-gradient(var(--line), var(--line)) no-repeat 0 50% / 100% 1px;
    animation: fl-pk var(--loop) linear infinite; animation-delay: calc(var(--j, 0) * var(--step) + .35s); }
}
@keyframes fl-pk { 0% { background-position: -8px 50%, 0 50%; } 10%, 100% { background-position: 18px 50%, 0 50%; } }

/* tree: a pulse leaves the root, runs down the spine and out along each branch; the branch lights as it lands */
.prose .dg-tree { --loop: 2.8s; }
.prose .dg-tree__root::after { border-top: 0; height: 2px; top: calc(50% - 1px);
  background: linear-gradient(90deg, transparent, var(--c-blue-link), transparent) no-repeat -150% 0 / 60% 100%, var(--line); animation: tr-h var(--loop) linear infinite; }
.prose .dg-tree__leaves { position: relative; }
.prose .dg-tree__leaves::after { content: ""; position: absolute; left: -1.5px; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, transparent, var(--c-blue-link), transparent) no-repeat 0 -50% / 100% 30%; animation: tr-v var(--loop) linear infinite; }
.prose .dg-tree__leaves li::before { border-top: 0; height: 2px; top: calc(50% - 1px);
  background: linear-gradient(90deg, transparent, var(--c-blue-link), transparent) no-repeat -150% 0 / 60% 100%, var(--line);
  animation: tr-h var(--loop) linear infinite; animation-delay: calc(.75s + var(--i) * 1.3s / var(--n, 3)); }
.prose .dg-tree__leaves li { animation: tr-lit var(--loop) linear infinite; animation-delay: calc(.95s + var(--i) * 1.3s / var(--n, 3)); }
@keyframes tr-h { 0% { background-position: -150% 0, 0 0; } 26%, 100% { background-position: 250% 0, 0 0; } }
@keyframes tr-v { 0%, 22% { background-position: 0 -50%; } 75%, 100% { background-position: 0 150%; } }
@keyframes tr-lit { 0%, 12% { border-color: var(--c-blue-link); } 30%, 100% { border-color: var(--line); } }
@media (max-width: 700px) { .prose .dg-tree__leaves::after { display: none; } }

/* cards: one lit at a time, in order, on a loop */
.prose .dg-cards .dg-card { animation: cd-lit calc(var(--n, 4) * 1.1s) linear infinite; animation-delay: calc(var(--i) * 1.1s); }
@keyframes cd-lit { 0% { border-color: var(--line); box-shadow: none; } 6%, 20% { border-color: var(--c-blue-link); box-shadow: inset 0 0 0 1px var(--c-blue-link), 0 0 26px -6px var(--c-blue-link); } 32%, 100% { border-color: var(--line); box-shadow: none; } }

/* sequences that replay (site.js initDiagramLoops toggles .is-run): resets are quick */
.prose .dg-bars:not(.is-run) .dg-bars__t i { transition-duration: .5s; transition-delay: 0s; }
.js .prose .dg-utm:not(.is-run) .dg-utm__p { transition-delay: 0s; }

/* ratios ("make one version per placement"): one original wired to every version; each version lays the product
   out again; where the app's buttons and caption cover the edges, they slide over the price and it moves up */
.prose .dg-ratios { display: block; }
.prose .dg-ratios__src { position: relative; display: inline-flex; margin: 0 0 14px; }
.prose .dg-ratios__src span { padding: 7px 12px; border: 1px solid var(--c-blue-link); border-radius: 99px; background: rgba(12, 13, 16, .7);
  font: 700 11px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--c-blue-link); }
.prose .dg-ratios__src::after { content: ""; position: absolute; left: 22px; top: 100%; width: 2px; height: 14px;
  background: linear-gradient(180deg, transparent, var(--c-blue-link), transparent) no-repeat 0 -50% / 100% 60%, var(--line); animation: rt-v 3s linear infinite; }
.prose .dg-ratios__row { position: relative; display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--s-3); padding-top: 26px; }
.prose .dg-ratios__row::before { content: ""; position: absolute; left: 22px; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-blue-link), transparent) no-repeat -25% 0 / 22% 100%, var(--line); animation: rt-bus 3s linear infinite;
  -webkit-mask-image: linear-gradient(90deg, #000 75%, transparent); mask-image: linear-gradient(90deg, #000 75%, transparent); }
.prose .dg-ratio__box::before { content: ""; position: absolute; left: 50%; top: -27px; width: 2px; height: 26px;
  background: linear-gradient(180deg, transparent, var(--c-blue-link), transparent) no-repeat 0 -50% / 100% 60%, var(--line);
  animation: rt-v 3s linear infinite; animation-delay: calc(.5s + var(--i) * .35s); }
@keyframes rt-v { 0% { background-position: 0 -150%, 0 0; } 30%, 100% { background-position: 0 250%, 0 0; } }
@keyframes rt-bus { 0% { background-position: -25% 0, 0 0; } 45%, 100% { background-position: 125% 0, 0 0; } }
.prose .dg-ratio__art { position: absolute; inset: 0; overflow: hidden; }
.prose .dg-ratio__prod { position: absolute; left: 50%; top: 44%; width: 46%; aspect-ratio: 1; translate: -50% -50%; border-radius: 10px;
  background: radial-gradient(circle at 34% 28%, rgba(255,255,255,.4), transparent 55%), linear-gradient(160deg, #2b5a86, #0c1724); box-shadow: 0 10px 30px rgba(0,0,0,.45);
  animation: rt-prod 6s var(--ease) infinite; animation-delay: calc(var(--i) * .35s); }
.prose .dg-ratio__price { position: absolute; left: 50%; bottom: 14%; translate: -50% 0; padding: 4px 9px; border-radius: 99px; background: var(--c-blue-link); color: #fff;
  font: 700 10.5px/1 var(--f-body); font-style: normal; letter-spacing: .06em; text-transform: uppercase; animation: rt-price 6s infinite; animation-delay: calc(var(--i) * .35s); }
.prose .has-safe .dg-ratio__price { bottom: 7%; animation-name: rt-price-safe; }
.prose .dg-ratio__safe { z-index: 1; place-items: start center; }
.prose .dg-ratio__ui { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; animation: rt-ui 6s infinite; animation-delay: calc(var(--i) * .35s); }
.prose .dg-ratio__ui i { position: absolute; right: 5%; width: 9%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.85); }
.prose .dg-ratio__ui i:nth-child(1) { bottom: 40%; } .prose .dg-ratio__ui i:nth-child(2) { bottom: 32%; } .prose .dg-ratio__ui i:nth-child(3) { bottom: 24%; }
.prose .dg-ratio__ui b { position: absolute; left: 7%; height: 3%; border-radius: 2px; background: rgba(255,255,255,.85); }
.prose .dg-ratio__ui b:nth-of-type(1) { bottom: 13%; width: 62%; } .prose .dg-ratio__ui b:nth-of-type(2) { bottom: 7.5%; width: 44%; }
.prose .dg-ratio__r { z-index: 3; }
@keyframes rt-prod { 0% { opacity: 0; scale: .82; } 10%, 90% { opacity: 1; scale: 1; } 100% { opacity: 0; scale: .96; } }
@keyframes rt-price { 0%, 14% { opacity: 0; } 22%, 90% { opacity: 1; } 100% { opacity: 0; } }
@keyframes rt-price-safe { 0%, 14% { opacity: 0; bottom: 7%; background: var(--c-blue-link); } 22%, 32% { opacity: 1; bottom: 7%; background: var(--c-blue-link); }
  38%, 48% { bottom: 7%; background: #ff4d3d; } 60%, 90% { opacity: 1; bottom: calc(var(--safe-b) + 5%); background: var(--c-blue-link); } 100% { opacity: 0; bottom: calc(var(--safe-b) + 5%); } }
@keyframes rt-ui { 0%, 24% { opacity: 0; translate: 0 6%; } 32%, 90% { opacity: 1; translate: 0 0; } 100% { opacity: 0; } }
@media (max-width: 700px) { .prose .dg-ratios__src::after, .prose .dg-ratios__row::before, .prose .dg-ratio__box::before { display: none; } .prose .dg-ratios__row { padding-top: 4px; } }

/* covers with no picture: a motion scheme of the post's steps on glass, the page's scene shows through */
.post-card__cover:has(.run-cover), .post-lead__cover:has(.run-cover) { background: transparent; }
.run-cover { position: absolute; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 8px; padding: 18px; color: #fff;
  border: 1px solid rgba(255,255,255,.12); background: radial-gradient(70% 80% at 70% 62%, rgba(0,153,255,.18), transparent 66%), rgba(6, 8, 12, .42);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.run-cover--big { padding: clamp(18px, 2.4vw, 34px); }
.run-cover__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.run-cover__t { font: 700 clamp(16px, 1.6vw, 22px)/1 var(--f-display); text-transform: uppercase; max-width: 16ch; }
.run-cover--big .run-cover__t { font-size: clamp(22px, 2.6vw, 40px); }
.run-cover__k { flex: none; padding: 5px 9px; border: 1px solid rgba(255,255,255,.25); border-radius: 99px; font: 700 11px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.scheme { display: block; width: 100%; height: 100%; min-height: 0; overflow: visible; }
.sc-wire { fill: none; stroke: rgba(255,255,255,.18); stroke-width: 1.5; }
.sc-flow { fill: none; stroke: var(--c-blue-link); stroke-width: 1.5; stroke-dasharray: 3 9; opacity: .7; animation: sc-dash 1.1s linear infinite; }
@keyframes sc-dash { to { stroke-dashoffset: -12; } }
.sc-node rect:not(.sc-halo):not(.sc-fill) { fill: rgba(8,10,14,.82); stroke: rgba(255,255,255,.22); stroke-width: 1.2; animation: sc-lit var(--d) linear infinite; animation-delay: var(--at); }
@keyframes sc-lit { 0%, 9% { stroke: var(--c-blue-link); fill: rgba(0,90,160,.38); } 20%, 100% { stroke: rgba(255,255,255,.22); fill: rgba(8,10,14,.82); } }
.sc-n { font: 700 18px var(--f-display); fill: var(--c-blue-link); }
.run-cover:not(.run-cover--big) .sc-n, .post-card--locked .sc-n { font-size: 22px; }
.sc-t { font: 600 15px var(--f-body); fill: #fff; }
.sc-pk { fill: #fff; filter: drop-shadow(0 0 5px var(--c-blue-link)) drop-shadow(0 0 2px var(--c-blue-link)); }
.sc-pk--b { fill: var(--c-blue-link); opacity: .85; }
.post-card--locked .scheme { position: absolute; inset: 14% 8%; width: 84%; height: 72%; filter: blur(2.5px); opacity: .5; }
.post-card--locked .locked__badge { z-index: 1; }

/* the list in two groups, and the filter with both */
.blog-group[hidden] { display: none; }
.blog-group + .blog-group { margin-top: var(--s-6); }
.blog-group__h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 0 0 var(--s-3); padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.16);
  font: 700 clamp(22px, 2.4vw, 32px)/1 var(--f-display); text-transform: uppercase; word-spacing: .2em; }
.blog-group__h small { font: 600 13px/1 var(--f-body); text-transform: none; word-spacing: 0; opacity: .6; }
.blog-group__h .lock { width: .7em; height: .7em; margin-right: 10px; vertical-align: -.02em; color: var(--c-blue-link); }
.blog-group__h + .post-cards { padding-top: 0; }
.academy-filter .lock { width: 11px; height: 11px; margin-right: 6px; vertical-align: -1px; }
.academy-filter__sep { width: 1px; align-self: stretch; margin: 4px 6px; background: currentColor; opacity: .25; }

/* What you get (premium): every tile moves */
.bento__tile--full { grid-column: 1 / -1; min-height: 0; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--s-4); }
.bento--tested .bx-tested { grid-column: 2; grid-row: 1 / span 2; }
.bx-packs { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; --loop: calc(var(--n) * .58s + 1.2s); }
.bx-packs__wire { position: absolute; left: 0; right: 0; top: 50%; height: 2px; translate: 0 -50%;
  background: linear-gradient(90deg, transparent, var(--c-blue-link), transparent) no-repeat -25% 0 / 18% 100%, rgba(255,255,255,.14); animation: bx-wire var(--loop) linear infinite; }
.bx-packs li { position: relative; z-index: 1; display: grid; gap: 5px; padding: 10px 6px; border: 1px solid rgba(255,255,255,.16); background: rgba(12,13,16,.92);
  font: 600 12px/1.2 var(--f-body); text-align: center; animation: bx-chip var(--loop) linear infinite; animation-delay: calc(var(--k) * .58s); }
.bx-packs em { font: 700 13px/1 var(--f-display); font-style: normal; color: var(--c-blue-link); }
@keyframes bx-wire { 0% { background-position: -25% 0, 0 0; } 80%, 100% { background-position: 125% 0, 0 0; } }
@keyframes bx-chip { 0%, 10% { border-color: var(--c-blue-link); background: rgba(0,80,150,.55); box-shadow: 0 0 22px -4px var(--c-blue-link); } 24%, 100% { border-color: rgba(255,255,255,.16); background: rgba(12,13,16,.92); box-shadow: none; } }
.bx-tip { display: grid; gap: 10px; }
.bx-tip__p { margin: 0; padding: 12px 14px; border-radius: 14px; background: #30302e; color: #faf9f5; font: 400 13.5px/1.45 var(--f-body); }
.bx-tip__p span { display: inline-block; max-width: 100%; vertical-align: bottom; white-space: nowrap; overflow: hidden; border-right: 2px solid #c6613f; width: 0; animation: bx-type 6s steps(33) infinite; }
.bx-tip__n { margin: 0; padding-left: 12px; border-left: 2px solid var(--c-blue-link); font: 400 13px/1.4 var(--f-body); opacity: 0; animation: bx-note 6s var(--ease-out) infinite; }
.bx-tip__n b { margin-right: 6px; color: var(--c-blue-link); font: 700 11px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; }
@keyframes bx-type { 0%, 6% { width: 0; } 42%, 92% { width: var(--tw, 34ch); } 100% { width: 0; } }
@keyframes bx-note { 0%, 46% { opacity: 0; transform: translateY(6px); } 54%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.bx-jobs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.bx-jobs li { padding: 7px 11px; border: 1px solid rgba(255,255,255,.18); border-radius: 99px; font: 600 12px/1 var(--f-body); animation: bx-job 4.8s linear infinite; animation-delay: calc(var(--k) * .8s); }
@keyframes bx-job { 0%, 14% { background: var(--c-blue-link); border-color: var(--c-blue-link); color: #fff; } 20%, 100% { background: transparent; border-color: rgba(255,255,255,.18); color: inherit; } }
.bx-tested { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.bx-tested li { display: flex; align-items: center; gap: 9px; font: 600 14px/1.2 var(--f-body); opacity: .45; animation: bx-tick 4.5s infinite; animation-delay: calc(var(--k) * .7s); }
.bx-tested i { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; animation: bx-tick-i 4.5s infinite; animation-delay: calc(var(--k) * .7s); }
.bx-tested svg { width: 13px; height: 13px; }
@keyframes bx-tick { 0% { opacity: .45; } 8%, 80% { opacity: 1; } 90%, 100% { opacity: .45; } }
@keyframes bx-tick-i { 0% { background: transparent; border-color: rgba(255,255,255,.3); } 8%, 80% { background: var(--c-blue-link); border-color: var(--c-blue-link); } 90%, 100% { background: transparent; border-color: rgba(255,255,255,.3); } }
/* Motion library: the title's letters turn into other letters and pictures and move (site.js initMorphText) */
.bento--motion { min-height: 230px; background-image: radial-gradient(60% 90% at 85% 100%, rgba(0,153,255,.18), transparent 70%); }
.bento__tile b.bx-morph { display: block; font: 700 clamp(34px, 5vw, 66px)/1.05 var(--f-display); word-spacing: 0; letter-spacing: .01em; }
.bento__tile .bx-morph span { font: inherit; opacity: 1; max-width: none; }
.bx-morph .mx-w { display: inline-block; white-space: nowrap; }
.bx-morph .mx { display: inline-block; transition: transform .28s var(--ease-out), scale .28s var(--ease-out); }
.bx-morph .mx.is-turn { transform: translateY(var(--ty, 0)) rotate(var(--rot, 0deg)); }
.bx-morph .mx-serif { font-family: "Times New Roman", Georgia, serif; font-style: italic; font-weight: 400; }
.bx-morph .mx-script { font-family: "Snell Roundhand", "Brush Script MT", "Segoe Script", cursive; font-weight: 400; }
.bx-morph .mx-mono { font-family: ui-monospace, Menlo, monospace; font-weight: 400; color: var(--c-blue-link); }
.bx-morph .mx-outline { color: transparent; -webkit-text-stroke: 1.5px #fff; }
.bx-morph .mx-blue { color: var(--c-blue-link); }
.bx-morph .mx-wide { scale: 1.35 1; }
.bx-morph .mx-pic { color: transparent; background-size: cover; background-position: center; -webkit-background-clip: text; background-clip: text; -webkit-text-stroke: .6px rgba(255,255,255,.35); }
@media (max-width: 760px) { .bento__tile--full { grid-template-columns: 1fr; } .bento--tested .bx-tested { grid-column: auto; grid-row: auto; } .bx-packs { grid-template-columns: repeat(4, 1fr); } .bx-packs__wire { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .prose .dg-flow__nodes li, .prose .dg-flow__nodes li::after, .prose .dg-tree__root::after, .prose .dg-tree__leaves::after, .prose .dg-tree__leaves li, .prose .dg-tree__leaves li::before,
  .prose .dg-cards .dg-card, .prose .dg-ratio__box::before, .prose .dg-ratios__row::before, .prose .dg-ratios__src::after, .prose .dg-ratio__prod, .prose .dg-ratio__price, .prose .dg-ratio__ui,
  .sc-flow, .sc-node rect, .sc-halo, .sc-fill, .bx-packs li, .bx-packs__wire, .bx-tip__p span, .bx-tip__n, .bx-jobs li, .bx-tested li, .bx-tested i { animation: none !important; }
  .sc-pk { display: none; } .bx-tip__p span { width: auto; } .bx-tip__n { opacity: 1; } .bx-tested li { opacity: 1; }
}

/* ═════════ Round 5 (Murat 2026-11-18) ═════════ */
/* play only in view (site.js initPlayOnView adds .anim-wait, then .is-play while on screen) */
.anim-wait:not(.is-play), .anim-wait:not(.is-play) *, .anim-wait:not(.is-play) *::before, .anim-wait:not(.is-play) *::after { animation-play-state: paused !important; }
/* lighter loops: no animated shadows over the glass (they made the page stutter) */
@keyframes fl-lit { 0%, 8% { border-color: var(--c-blue-link); background-color: rgba(0,70,130,.45); } 20%, 100% { border-color: var(--line); } }
@keyframes cd-lit { 0% { border-color: var(--line); } 6%, 20% { border-color: var(--c-blue-link); } 32%, 100% { border-color: var(--line); } }
@keyframes bx-chip { 0%, 10% { border-color: var(--c-blue-link); background: rgba(0,80,150,.55); } 24%, 100% { border-color: rgba(255,255,255,.16); background: rgba(12,13,16,.92); } }

/* the footer sits above the fixed scene (it was painted under it) */
.blog--dark ~ .site-footer, .site-footer { position: relative; z-index: 2; }

/* the bar under the header: one solid band from the top of the window, the header's logo and menu on it */
.post-bar { top: 0; padding-top: var(--header-h); background: #000; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* FAQ box: room inside */
.prose .dg-faq { padding: 20px 26px 6px; }
.prose .dg-faq details:last-child { border-bottom: 0; }

/* command box: Copy centred on the line */
.prose .prompt--cmd { display: flex; align-items: center; gap: 16px; padding-right: 16px; }
.prose .prompt--cmd pre { flex: 1; min-width: 0; order: 1; padding-right: var(--s-3); }
.prose .prompt--cmd .prompt__copy { position: static; order: 2; flex: none; }

/* brackets hold the picture only; the caption sits under them */
.prose .framed-fig { padding: 0; }
.prose .framed-fig__box { position: relative; padding: 26px; --corner: 22px; }
.prose .framed-fig__box > .corners { position: absolute; inset: 0; pointer-events: none; }
.prose .framed-fig figcaption { padding: 6px 26px 0; }
@media (max-width: 760px) { .prose .framed-fig__box { padding: 12px; } .prose .framed-fig figcaption { padding: 6px 12px 0; } }

/* settings panel: the cursor walks beside the box, not over the text */
.prose .dg-ui__cur { right: -34px; }
@media (max-width: 640px) { .prose .dg-ui__cur { display: none; } }

/* tree: the spine runs only between the first and last branch; the pulse leaves the root and reaches every branch at once */
.prose .dg-tree__leaves { border-left-color: transparent !important; }
.prose .dg-tree__leaves::after { display: none; }
.prose .dg-tree__leaves li::after { content: ""; position: absolute; left: -25px; top: -5px; bottom: -5px; width: 1px; background: var(--line); animation: tr-spine var(--loop) linear infinite; }
.prose .dg-tree__leaves li:first-child::after { top: 50%; }
.prose .dg-tree__leaves li:last-child::after { bottom: 50%; }
.prose .dg-tree__leaves li:only-child::after { display: none; }
.prose .dg-tree__leaves li::before { animation-delay: .9s; }
.prose .dg-tree__leaves li { animation-delay: 1.2s; }
@keyframes tr-spine { 0%, 22% { background: var(--line); } 27%, 36% { background: var(--c-blue-link); } 46%, 100% { background: var(--line); } }

/* Claude prompts: only the chat panel, see-through like the page's boxes; Copy in its bar */
.prose .prompt--chat { border: 0; box-shadow: none; }
.prose .chat { background: rgba(48, 48, 46, .72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.prose .chat__bar .prompt__copy { position: static; padding: 8px 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 9px; background: none; color: rgba(250,249,245,.75); font: 600 12.5px/1 var(--f-body); text-transform: none; }
.prose .chat__bar .prompt__copy:hover, .prose .chat__bar .prompt__copy.is-done { background: rgba(255,255,255,.1); color: #fff; }
.prose .chat__model--na { color: rgba(250,249,245,.45); }

/* covers: the topic scheme, centred in the space under the title, no glass blur (cheaper) */
.run-cover { -webkit-backdrop-filter: none; backdrop-filter: none; background: radial-gradient(70% 80% at 70% 62%, rgba(0,153,255,.16), transparent 66%), rgba(6, 8, 12, .55); }
.run-cover__sc { display: grid; align-items: center; min-height: 0; overflow: hidden; padding: 4% 2% 2%; }
.run-cover__sc .scheme { width: 100%; height: 100%; max-height: 100%; }
.sc-k { font: 700 13px var(--f-body); letter-spacing: .08em; fill: rgba(255,255,255,.55); text-transform: uppercase; }
.sc-t { font-family: var(--f-body); font-weight: 600; fill: #fff; }
.sc-end rect:not(.sc-halo):not(.sc-fill) { stroke: rgba(0,153,255,.6); }
.sc-glow { fill: var(--c-blue-link); opacity: .28; }
.sc-pk { fill: #fff; filter: none; }

/* list page: Free and Premium as bands of three, the last tile leads to all of them */
.band { margin-top: var(--s-6); }
.band__h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 0 0 var(--s-3); padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.16);
  font: 700 clamp(22px, 2.4vw, 32px)/1 var(--f-display); text-transform: uppercase; word-spacing: .2em; }
.band__h small { font: 600 13px/1 var(--f-body); text-transform: none; word-spacing: 0; opacity: .6; }
.band__h .lock { width: .7em; height: .7em; margin-right: 10px; color: var(--c-blue-link); }
.band__h a { margin-left: auto; font: 700 13px/1 var(--f-body); word-spacing: 0; color: var(--c-blue-link); }
.band__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(170px, .55fr); gap: var(--s-3) var(--col-gap); align-items: start; }
.band__more { grid-column: -2; display: grid; align-content: space-between; gap: 12px; aspect-ratio: 9 / 10; padding: 22px; border: 1px solid rgba(255,255,255,.18); background: rgba(12,13,16,.7);
  font: 600 15px/1.3 var(--f-body); transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.band__n { font: 700 clamp(44px, 5vw, 72px)/1 var(--f-display); color: var(--c-blue-link); }
.band__go { font: 700 13px/1 var(--f-body); text-transform: uppercase; }
.band__more:hover { border-color: var(--c-blue-link); color: var(--c-blue-link); }
@media (max-width: 900px) {
  .band__row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(260px, 78%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
  .band__row > * { scroll-snap-align: start; }
  .band__more { grid-column: auto; aspect-ratio: auto; min-height: 220px; }
  .band__h a { display: none; }
}

/* premium · Prompts and tips: a prompt changes in front of you, and why */
.bx-diff { display: grid; gap: 10px; }
.bx-diff__p { margin: 0; padding: 12px 14px; border-radius: 14px; background: rgba(48,48,46,.72); color: #faf9f5; font: 400 14px/1.55 var(--f-body); }
.bx-diff s { text-decoration: line-through 2px transparent; animation: bx-s 6s infinite; }
.bx-diff ins { display: inline-block; padding: 0 4px; border-radius: 3px; text-decoration: none; color: #fff; background: rgba(0,153,255,.22); opacity: 0; animation: bx-ins 6s infinite; }
.bx-diff__why { margin: 0; padding-left: 12px; border-left: 2px solid var(--c-blue-link); font: 400 13px/1.45 var(--f-body); opacity: 0; animation: bx-note 6s var(--ease-out) infinite; }
.bento .bx-diff__why b { margin-right: 6px; font: 700 11px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--c-blue-link); }
@keyframes bx-s { 0%, 14% { text-decoration-color: transparent; color: inherit; } 24%, 92% { text-decoration-color: #ff6b5d; color: rgba(250,249,245,.45); } 100% { text-decoration-color: transparent; color: inherit; } }
@keyframes bx-ins { 0%, 30% { opacity: 0; transform: translateY(4px); } 38%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* premium · Prompt library: Claude's chat bar in our colours, our mark as the button (blue on hover) */
.pl-bar { display: flex; align-items: center; gap: 10px; margin: 0; padding: 7px 7px 7px 16px; border: 1px solid rgba(255,255,255,.16); border-radius: 18px; background: rgba(255,255,255,.06);
  transition: border-color var(--dur-fast) var(--ease); }
.pl-bar:focus-within { border-color: rgba(0,153,255,.6); }
.pl-bar input { flex: 1; min-width: 0; padding: 8px 0; border: 0; background: none; color: #fff; font: 400 15px/1.3 var(--f-body); outline: none; -webkit-appearance: none; appearance: none; }
.pl-bar input::placeholder { color: rgba(255,255,255,.45); }
.pl-bar button { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; background: #15171c; color: #fff; cursor: pointer;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease); }
.pl-bar button i { width: 20px; height: 20px; background: currentColor;
  -webkit-mask: url("../media/hybrd-mark.png") center / contain no-repeat; mask: url("../media/hybrd-mark.png") center / contain no-repeat; }
.pl-bar button:hover, .pl-bar button:focus-visible { background: var(--c-blue-link); border-color: var(--c-blue-link); }
.pl-results[hidden] { display: none; }
.bento .pl-results { display: grid; grid-template-columns: 1fr; gap: 14px; align-content: start; }
.bento .pl-results span, .bento .pl-results b { max-width: none; opacity: 1; }
.pl-results__k { margin: 0; font: 700 12px/1.3 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--c-blue-link); }
.pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.pl-card { display: grid; align-content: start; gap: 8px; padding: 10px 10px 14px; border: 1px solid rgba(255,255,255,.14); background: rgba(12,13,16,.8); color: inherit; text-decoration: none;
  transition: border-color var(--dur-fast) var(--ease); }
.pl-card:hover { border-color: var(--c-blue-link); }
.bento .pl-card .pl-card__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #111; }
.pl-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.pl-card:hover .pl-card__img img { transform: scale(1.04); }
.bento .pl-card .pl-card__job { font: 700 11px/1.3 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--c-blue-link); }
.bento .pl-card b { font: 700 19px/1.1 var(--f-display); text-transform: uppercase; }
.bento .pl-card .pl-card__p { font: 400 13.5px/1.45 var(--f-body); opacity: .82; max-height: 4.4em; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 35%, transparent); mask-image: linear-gradient(#000 35%, transparent); }
.bento .pl-card .pl-card__lock { display: flex; align-items: center; gap: 7px; font: 600 12px/1 var(--f-body); opacity: .75; }
.pl-card__lock svg { width: 11px; height: 11px; }

@media (prefers-reduced-motion: reduce) {
  .prose .dg-tree__leaves li::after, .bx-diff s, .bx-diff ins, .bx-diff__why { animation: none !important; }
  .bx-diff ins, .bx-diff__why { opacity: 1; } .bx-diff s { text-decoration-color: #ff6b5d; }
  .sc-glow { display: none; }
}

/* ═════════ Round 6 (Murat 2026-11-18) ═════════ */
.blog--dark .prose .prompt--chat, .prose .prompt--chat { border: 0 !important; background: none !important; }
.premium-faq { max-width: none; }
.bento .pl-results[hidden] { display: none; }
/* the cursor beside the panel points at the rows */
.prose .dg-ui__cur { transform: rotate(-75deg); }
/* account tree: a dot of light leaves the root, runs out along the spine both ways and down every branch at once */
.prose .dg-tree__root::after { height: 9px; top: calc(50% - 4.5px);
  background: radial-gradient(circle, #6cc2ff 0 2.5px, rgba(0,153,255,.35) 3.5px, transparent 4.5px) no-repeat -60% 50% / 9px 9px, linear-gradient(var(--line), var(--line)) no-repeat 0 50% / 100% 1px;
  animation: tr-r var(--loop) linear infinite; animation-delay: 0s; }
.prose .dg-tree__leaves li::before { height: 9px; top: calc(50% - 4.5px);
  background: radial-gradient(circle, #6cc2ff 0 2.5px, rgba(0,153,255,.35) 3.5px, transparent 4.5px) no-repeat -60% 50% / 9px 9px, linear-gradient(var(--line), var(--line)) no-repeat 0 50% / 100% 1px;
  animation: tr-b var(--loop) linear infinite; animation-delay: 0s; }
.prose .dg-tree__leaves li::after { left: -29px; width: 9px;
  background: radial-gradient(circle, #6cc2ff 0 2.5px, rgba(0,153,255,.35) 3.5px, transparent 4.5px) no-repeat 50% 160% / 9px 9px, linear-gradient(var(--line), var(--line)) no-repeat 50% 0 / 1px 100%;
  animation: tr-up var(--loop) linear infinite; animation-delay: 0s; }
.prose .dg-tree__leaves li.is-down::after { animation-name: tr-down; }
.prose .dg-tree__leaves li.is-mid::after {
  background: radial-gradient(circle, #6cc2ff 0 2.5px, rgba(0,153,255,.35) 3.5px, transparent 4.5px) no-repeat 50% 50% / 9px 9px, radial-gradient(circle, #6cc2ff 0 2.5px, rgba(0,153,255,.35) 3.5px, transparent 4.5px) no-repeat 50% 50% / 9px 9px, linear-gradient(var(--line), var(--line)) no-repeat 50% 0 / 1px 100%;
  animation-name: tr-both; }
.prose .dg-tree__leaves li { animation: tr-lit3 var(--loop) linear infinite; animation-delay: 0s; }
@keyframes tr-r { 0% { background-position: -60% 50%, 0 50%; } 18%, 100% { background-position: 160% 50%, 0 50%; } }
@keyframes tr-up { 0%, 18% { background-position: 50% 160%, 50% 0; } 34%, 100% { background-position: 50% -60%, 50% 0; } }
@keyframes tr-down { 0%, 18% { background-position: 50% -60%, 50% 0; } 34%, 100% { background-position: 50% 160%, 50% 0; } }
@keyframes tr-both { 0%, 18% { background-position: 50% 50%, 50% 50%, 50% 0; } 34%, 100% { background-position: 50% -60%, 50% 160%, 50% 0; } }
@keyframes tr-b { 0%, 34% { background-position: -60% 50%, 0 50%; } 52%, 100% { background-position: 160% 50%, 0 50%; } }
@keyframes tr-lit3 { 0%, 50% { border-color: var(--line); } 54%, 66% { border-color: var(--c-blue-link); } 80%, 100% { border-color: var(--line); } }
/* cover schemes: solid boxes, so the packet shows only on the wires between them; blurred pack covers stand still */
.sc-node rect:not(.sc-halo):not(.sc-fill) { fill: #0a0c10; }
@keyframes sc-lit { 0%, 9% { stroke: var(--c-blue-link); fill: #0b2a47; } 20%, 100% { stroke: rgba(255,255,255,.22); fill: #0a0c10; } }
.sc-pk { fill: #8fd0ff; }
svg[data-still] .sc-node rect { animation: none; }
svg[data-still] .sc-node:not(.sc-end) .sc-halo, svg[data-still] .sc-node:not(.sc-end) .sc-fill { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .prose .dg-tree__root::after, .prose .dg-tree__leaves li::before, .prose .dg-tree__leaves li::after, .prose .dg-tree__leaves li { animation: none !important; } }
/* the Contents rail stays clear of the sticky bar */
.post-toc { top: calc(var(--header-h) + 60px); }

/* ═════════ Round 7 (Murat 2026-11-18) ═════════ */
/* tree: the wires are an SVG drawn from the boxes (site.js initTreeFlow); data leaves the root down every wire at once */
.prose .dg-tree.has-flow { position: relative; }
.prose .dg-tree.has-flow .dg-tree__root::after, .prose .dg-tree.has-flow .dg-tree__leaves li::before, .prose .dg-tree.has-flow .dg-tree__leaves li::after { display: none; }
.dg-tree__wires { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; overflow: visible; }
.dg-tree__lines path { fill: none; stroke: color-mix(in srgb, currentColor 26%, transparent); stroke-width: 1; }
.dg-tree__dot { fill: #8fd0ff; }
.dg-tree__glow { fill: var(--c-blue-link); opacity: .3; }
.prose .dg-tree.has-flow .dg-tree__root, .prose .dg-tree.has-flow .dg-tree__leaves { position: relative; z-index: 1; }
.prose .dg-tree.has-flow .dg-tree__root { animation: tf-root 2.6s linear infinite; }
.prose .dg-tree.has-flow .dg-tree__leaves li { animation: tf-leaf 2.6s linear infinite; animation-delay: 0s; }
@keyframes tf-root { 0%, 8% { box-shadow: inset 0 0 0 1px var(--c-blue-link); } 20%, 100% { box-shadow: none; } }
@keyframes tf-leaf { 0%, 52% { border-color: var(--line); } 56%, 72% { border-color: var(--c-blue-link); } 86%, 100% { border-color: var(--line); } }
@media (prefers-reduced-motion: reduce) { .dg-tree__dot, .dg-tree__glow { display: none; } .prose .dg-tree.has-flow .dg-tree__root, .prose .dg-tree.has-flow .dg-tree__leaves li { animation: none; } }

/* settings panel: a real pointer beside the box, tip towards the rows */
.prose .dg-ui__cur { width: 18px; height: 24px; border: 0; transform: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 24'%3E%3Cpath d='M1 1v19l5-4.6 3.4 7.4 3.2-1.5-3.4-7.3H16z' fill='%23fff' stroke='%23000' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain; }

/* prompt library: the button is our mark alone, theme white, blue on hover */
.pl-bar button { width: 38px; height: 38px; border: 0; border-radius: 10px; background: none; color: rgba(255,255,255,.9); }
.pl-bar button i { width: 24px; height: 24px; }
.pl-bar button:hover, .pl-bar button:focus-visible { background: none; color: var(--c-blue-link); }

/* the sticky bar keeps "← Academy" at every width (the way back) */
@media (max-width: 1100px) { .post-bar__back { display: inline; } .post-bar__sep, .post-bar__title { display: none; } .post-bar__in { justify-content: space-between; } }

/* ═════════ Skill pages (Murat 2026-11-19, after Tein's blockout page): swipe, tabs, stats, a locked prompt, the free box ═════════ */
/* swipe: the source under, the result over it clipped at the handle; pills pick the shot (site.js initSwipe) */
.prose .dg-swipe { margin-left: auto; margin-right: auto; }
/* swipe and tabs keep the reading column's width: a page-width break-out ran under the Contents rail (Murat 2026-11-19) */
.prose .dg-swipe__pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.prose .dg-swipe__pill { padding: 9px 15px; border: 1px solid var(--line); border-radius: 99px; background: rgba(12,13,16,.85); color: inherit; font: 600 14px/1 var(--f-body); cursor: pointer; }
.prose .dg-swipe__pill span { margin-left: 7px; font-weight: 400; opacity: .6; }
.prose .dg-swipe__pill.is-on { background: var(--c-blue-link); border-color: var(--c-blue-link); color: #fff; }
.prose .dg-swipe__pill.is-on span { opacity: .85; }
.prose .dg-swipe__stage { position: relative; }
.prose .dg-swipe__shot { --p: 50%; position: relative; display: none; aspect-ratio: 854 / 480; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #000; touch-action: pan-y; }
.prose .dg-swipe__shot.is-on { display: block; }
.prose .dg-swipe__shot video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; margin: 0; }
.prose .dg-swipe__shot video.b { clip-path: inset(0 0 0 var(--p)); }
.prose .dg-swipe__handle { position: absolute; top: 0; bottom: 0; left: var(--p); width: 2px; translate: -1px 0; background: #fff; pointer-events: none; }
.prose .dg-swipe__handle::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; translate: -50% -50%; display: grid; place-items: center;
  border-radius: 50%; background: #fff; color: #0c0d10; font: 700 15px/1 var(--f-body); box-shadow: 0 6px 20px rgba(0,0,0,.45); }
.prose .dg-swipe__shot input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.prose .dg-swipe__tag { position: absolute; top: 12px; left: 12px; padding: 5px 10px; border-radius: 99px; background: rgba(0,0,0,.6); font: 700 11px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }
.prose .dg-swipe__tag--r { left: auto; right: 12px; color: #8fd0ff; }
.prose .dg-swipe__cap { margin: 12px 0 0; font: 400 15px/1.5 var(--f-body); opacity: .7; }

/* tabs: the steps on the left, the step's own output on the right, its line under it (site.js initTabs) */
.prose .dg-tabs { display: grid; grid-template-columns: 300px 1fr; gap: 18px; align-items: start; }
.prose .dg-tabs__list { display: grid; gap: 8px; }
.prose .dg-tabs__btn { display: flex; gap: 14px; align-items: center; width: 100%; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(12,13,16,.85);
  color: inherit; font: 600 16px/1.2 var(--f-body); text-align: left; cursor: pointer; transition: background .25s, border-color .25s; }
.prose .dg-tabs__btn span { font: 700 12px/1 var(--f-body); opacity: .55; }
.prose .dg-tabs__btn.is-on { background: #1a26c9; border-color: #3646ff; }
.prose .dg-tabs__btn.is-on span { opacity: .9; }
.prose .dg-tabs__view { display: none; }
.prose .dg-tabs__view.is-on { display: block; animation: tabs-in .45s var(--ease-out) both; }
@keyframes tabs-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.prose .dg-tabs__media { display: grid; place-items: center; aspect-ratio: 854 / 480; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(12,13,16,.85); overflow: hidden; }
.prose .dg-tabs__media video, .prose .dg-tabs__media img { width: 100%; height: 100%; object-fit: contain; margin: 0; border-radius: 8px; }
.prose .dg-tabs__cap { margin: 12px 0 0; font: 400 16px/1.5 var(--f-body); opacity: .75; }
.prose .dg-tabs__cap b { opacity: 1; }

/* stats: a row of big figures that count in */
.prose .dg-stats { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 1px; margin-top: 1.6em; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--line); }
.prose .dg-stats > div { padding: 20px; background: rgba(12,13,16,.85); }
.prose .dg-stats dd { order: -1; margin: 0 0 6px; font: 700 clamp(30px, 3.6vw, 44px)/1 var(--f-display); }
.prose .dg-stats > div { display: flex; flex-direction: column; }
.prose .dg-stats dt { font: 400 14px/1.35 var(--f-body); opacity: .65; }

/* a locked prompt: the first lines readable, the rest blurred under the Premium call */
.prose .prompt--locked pre { max-height: none; overflow: visible; -webkit-mask-image: none; mask-image: none; }
.prose .prompt__blur { display: block; filter: blur(5px); opacity: .7; user-select: none; pointer-events: none; }
.prose .prompt__unlock { position: absolute; left: 50%; bottom: 18%; translate: -50% 0; display: flex; gap: 12px; align-items: center; width: min(440px, calc(100% - 32px));
  padding: 16px 18px; border: 1px solid var(--c-blue-link); border-radius: 12px; background: rgba(8, 14, 40, .92); color: #fff; text-decoration: none; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.prose .prompt__unlock .lock { flex: 0 0 auto; width: 18px; height: 18px; color: #8fd0ff; }
.prose .prompt__unlock span { display: grid; gap: 3px; font: 400 13.5px/1.4 var(--f-body); opacity: .85; }
.prose .prompt__unlock b { font: 700 16px/1.25 var(--f-body); opacity: 1; }
.prose .prompt__unlock:hover { background: #1a26c9; }

/* the free version box on a skill page */
.post-free { color: inherit; text-decoration: none; }

@media (max-width: 820px) {
  .prose .dg-tabs { grid-template-columns: 1fr; }
  .prose .dg-tabs__list { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 4px; }
  .prose .dg-tabs__list li { flex: 0 0 auto; }
  .prose .dg-tabs__btn { padding: 12px 14px; font-size: 14.5px; }
  .prose .dg-stats { grid-template-columns: repeat(2, 1fr); }
  .prose .prompt__unlock { bottom: 10%; }
}

/* Academy posts at the Academy course pages' size, and the repo first on a repo post (Murat 2026-11-24, DM pages:
   "başlık çok büyük ve repo ismi kendini belli etmiyor. academy design systemında değil") */
.post--dark .post-title { font-size: clamp(34px, 5.6vw, 76px); line-height: 1; max-width: 18ch; }
.post--dark .post-title--repo { max-width: none; }
.post-kicker { margin-top: 10px; max-width: 640px; font: 700 clamp(18px, 2.3vw, 26px)/1.25 var(--f-body); }
.post-repo { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: var(--s-2); padding: 9px 16px; max-width: 100%;
  border: 1px solid currentColor; border-radius: 14px; color: inherit; text-decoration: none; font: 600 14px/1.2 var(--f-body); }
.post-repo:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.post-repo .dg-repo__gh { width: 20px; height: 20px; flex: none; }
.post-repo__n { display: inline-flex; gap: 5px; align-items: baseline; min-width: 0; overflow-wrap: anywhere; }
.post-repo__n span { opacity: .7; } .post-repo__n b { font-weight: 800; }
.post-repo__f { display: inline-flex; align-items: center; gap: 4px; opacity: .8; }
.post-repo__f .ico { width: 13px; height: 13px; }

/* ═════════ Murat 2026-11-24, from his phone on the Superpowers post (the POWERS DM lands here) ═════════ */

/* the reading bar sits in the header's own row: the black band is only as tall as the logo row (it was a second
   band under the header) */
.post-bar { padding-top: 0; }
.post-bar__in { min-height: var(--header-h); box-sizing: border-box; padding: 0 max(var(--gutter), 84px); }

/* the one-line install box: as much room above the command as below it (the 52 px on phones was for a corner Copy
   button; this box keeps its button beside the command) */
.prose .prompt--cmd pre { padding-top: var(--s-3); padding-bottom: var(--s-3); }

/* three kinds of accent (Murat 2026-11-24), all in the reels' serif italic (Instrument Serif), each with a frame from
   the reels: the page's main title (a repo post's name, or the title's `accent:` word) in corner brackets with equal room
   on every side ("başlıklarda mavi box olmasın, bracket olsun"); a section heading's *word* in the selection box with
   its two round handles; in smaller text (the kicker under the title) the plain blue italic. Step headings stay plain. */
.post-kicker em { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: 0;
  word-spacing: normal; color: var(--c-accent-word, #4d9fff); font-size: 1.16em; }
.post-title--repo, .post-title em {
  --c: #3d7ef5; --t: 4px; --l: .24em;
  display: inline-block; padding: .14em .3em .18em .26em; color: #fff; font-family: "Instrument Serif", Georgia, serif;
  font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0; word-spacing: normal; line-height: 1.02;
  background:
    linear-gradient(var(--c) 0 0) left top / var(--l) var(--t), linear-gradient(var(--c) 0 0) left top / var(--t) var(--l),
    linear-gradient(var(--c) 0 0) right top / var(--l) var(--t), linear-gradient(var(--c) 0 0) right top / var(--t) var(--l),
    linear-gradient(var(--c) 0 0) left bottom / var(--l) var(--t), linear-gradient(var(--c) 0 0) left bottom / var(--t) var(--l),
    linear-gradient(var(--c) 0 0) right bottom / var(--l) var(--t), linear-gradient(var(--c) 0 0) right bottom / var(--t) var(--l);
  background-repeat: no-repeat; }
.post-title--repo { display: block; width: fit-content; margin-left: -.06em; }   /* its own line */
.post--dark .post-title.post-title--repo { font: 400 italic clamp(46px, 7.4vw, 104px)/1.02 "Instrument Serif", Georgia, serif;
  text-transform: none; letter-spacing: 0; max-width: none; }   /* over the dark theme's uppercase display title */
.post-title em { margin: 0 .12em; font-size: 1.12em; }
.prose h2 em.brk, .prose h2 em.sel {
  --c: #3d7ef5; --t: 3px; --l: .26em;
  position: relative; display: inline-block; margin: 0 .22em; padding: .06em .3em .12em .26em; color: #fff; line-height: 1.04;
  vertical-align: baseline; font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400;
  text-transform: none; letter-spacing: 0; word-spacing: normal; font-size: 1.2em;
  background:
    linear-gradient(var(--c) 0 0) left top / var(--l) var(--t), linear-gradient(var(--c) 0 0) left top / var(--t) var(--l),
    linear-gradient(var(--c) 0 0) right top / var(--l) var(--t), linear-gradient(var(--c) 0 0) right top / var(--t) var(--l),
    linear-gradient(var(--c) 0 0) left bottom / var(--l) var(--t), linear-gradient(var(--c) 0 0) left bottom / var(--t) var(--l),
    linear-gradient(var(--c) 0 0) right bottom / var(--l) var(--t), linear-gradient(var(--c) 0 0) right bottom / var(--t) var(--l);
  background-repeat: no-repeat; border: 0; border-radius: 0; }
.prose h2 em.sel::before, .prose h2 em.sel::after { content: none; }

/* the white logo on every blog and Academy page, whatever is under the header (Murat 2026-11-24: "blog sayfalarında beyaz
   logo kullanalım, academy de koyu temalı olduğu için o sayfalarda da"); the main site keeps its header tone switch */
body:has(main.blog) .site-header .logo img:not(.logo__light) { opacity: 0 !important; }   /* kept for the Academy and link pages, which still carry it */
body:has(main.blog) .site-header .logo .logo__light { opacity: 1 !important; }

/* the Academy look on dark articles: the ground stays ("arka planı beğendim"), the rest speaks the Academy pages'
   language: monochrome (the accent word is the only colour), square boxes with a hairline, box titles in the display
   face, square buttons */
.post--dark { --c-blue-link: #ffffff; --c-accent-word: #4d9fff; --ac-line: rgba(255, 255, 255, .16); --ac-panel: rgba(10, 10, 12, .84); }
.post--dark .prose .dg, .post--dark .prose .prompt, .post--dark .prose .spec-card, .post--dark .prose .dg-flow__nodes li,
.post--dark .prose pre:not(.prompt pre), .post--dark .post-repo, .post--dark .post-box, .post--dark .post-card__cover,
.post--dark .post-bar button, .post--dark .prose .prompt__copy { border-radius: 0 !important; }
.post--dark .prose .dg-take, .post--dark .prose .dg-repo, .post--dark .prose .dg-flow, .post--dark .prose .prompt,
.post--dark .prose .spec-card { border: 1px solid var(--ac-line); background-color: var(--ac-panel) !important; }
.post--dark .prose .dg-k { font: 700 16px/1.2 var(--f-display); letter-spacing: .02em; color: #fff; opacity: 1; }
.post--dark .prose .dg-take svg { width: 18px; height: 18px; padding: 0; border-radius: 0; background: none; color: #fff; }
.post--dark .prose .dg-ui__row em { color: #000; }
.post--dark .prose .dg-repo__name b { color: #fff; }
.post--dark .prose .dg-repo__go { text-decoration: underline; text-underline-offset: 4px; letter-spacing: .04em; }
.post--dark .post-repo { border-color: var(--ac-line); }
.post--dark .post-bar button { text-transform: uppercase; letter-spacing: .04em; }
.post--dark .post-toc a.is-current::before { border-radius: 0; }
@keyframes fl-lit-ac { 0%, 8% { border-color: #fff; box-shadow: inset 0 0 0 1px #fff, 0 0 18px rgba(255, 255, 255, .16); } 20%, 100% { border-color: var(--ac-line); box-shadow: none; } }
.post--dark .prose .dg-flow__nodes li { animation-name: fl-lit-ac; }

/* the facts table: its own padding on dark pages (the text sat on the panel's edge) */
.blog--dark .prose .spec-card { padding: 6px 22px; }
.blog--dark .prose .spec-card > div { padding: 14px 16px 14px 0; }

/* ═════════ 2026-11-25 (Murat): the films' ground, the glowing scheme box, the mark the right way up ═════════ */
/* Ground: "genel academy background, videolarda kullandığımız grid background olsun, parlayan glow effect ile". The films'
   terminal-dark ground (looks/terminal-dark look.css and look.js L.glow): #0e0e10 under a grid of light lines (white
   4.5 %), soft blue pools that drift and breathe under it, and the grid lines inside a pool lit blue. */
.blog--dark, .bgfx { background: #0e0e10; }
.bgfx { --grid: 40px; }
.bgfx::after { z-index: 1; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: var(--grid) var(--grid); }
.bgfx .gl { background-color: rgba(38,84,196,.34);
  background-image: linear-gradient(rgba(90,145,255,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(90,145,255,.6) 1px, transparent 1px);
  background-size: var(--grid) var(--grid);
  -webkit-mask-image: radial-gradient(closest-side, #000 0%, rgba(0,0,0,.4) 45%, transparent 85%); mask-image: radial-gradient(closest-side, #000 0%, rgba(0,0,0,.4) 45%, transparent 85%); }
@media (max-width: 760px) { .bgfx { --grid: 24px; } .bgfx .g1 { --r: 520px; } .bgfx .g2 { --r: 440px; } .bgfx .g3 { --r: 580px; } }
@media (prefers-reduced-motion: reduce) { .bgfx .gl { animation: none; opacity: .5; } }
/* the lit scheme box: "şemalarda parlayan kutu mavi gradient şeklinde de parlasın": its blurred blue halo and a blue
   gradient fill come up with the packet, as on the films' lit card; the end box keeps them */
.sc-halo { fill: #3d7ef5; opacity: 0; pointer-events: none; animation: sc-glow var(--d) linear infinite; animation-delay: var(--at); }
.sc-fill { opacity: 0; pointer-events: none; animation: sc-glow var(--d) linear infinite; animation-delay: var(--at); }
@keyframes sc-glow { 0%, 9% { opacity: 1; } 22%, 100% { opacity: 0; } }
.sc-end .sc-halo { animation: none; opacity: .75; } .sc-end .sc-fill { animation: none; opacity: 1; }
.sc-end rect.sc-box { stroke: #3d7ef5; stroke-width: 1.6; }
/* the lit box in an article's diagrams (flow, tree, cards) glows blue like the films' lit card, not white: a blue edge,
   a blue gradient falling from its top edge and a soft blue halo, on the same beat as before */
@keyframes fl-lit-b { 0%, 8% { border-color: #3d7ef5; box-shadow: inset 0 0 0 1px #3d7ef5, inset 0 26px 40px -18px rgba(61,126,245,.6), 0 0 26px rgba(61,126,245,.45), 0 0 64px rgba(61,126,245,.16); } 20%, 100% { border-color: var(--ac-line); box-shadow: inset 0 0 0 0 rgba(61,126,245,0), inset 0 0 0 0 rgba(61,126,245,0), 0 0 0 rgba(61,126,245,0), 0 0 0 rgba(61,126,245,0); } }
@keyframes tr-lit3-b { 0%, 50% { border-color: var(--ac-line); box-shadow: inset 0 0 0 0 rgba(61,126,245,0), inset 0 0 0 0 rgba(61,126,245,0), 0 0 0 rgba(61,126,245,0), 0 0 0 rgba(61,126,245,0); } 54%, 66% { border-color: #3d7ef5; box-shadow: inset 0 0 0 1px #3d7ef5, inset 0 26px 40px -18px rgba(61,126,245,.6), 0 0 26px rgba(61,126,245,.45), 0 0 64px rgba(61,126,245,.16); } 80%, 100% { border-color: var(--ac-line); box-shadow: inset 0 0 0 0 rgba(61,126,245,0), inset 0 0 0 0 rgba(61,126,245,0), 0 0 0 rgba(61,126,245,0), 0 0 0 rgba(61,126,245,0); } }
@keyframes cd-lit-b { 0% { border-color: var(--ac-line); box-shadow: inset 0 0 0 0 rgba(61,126,245,0), inset 0 0 0 0 rgba(61,126,245,0), 0 0 0 rgba(61,126,245,0), 0 0 0 rgba(61,126,245,0); } 6%, 20% { border-color: #3d7ef5; box-shadow: inset 0 0 0 1px #3d7ef5, inset 0 26px 40px -18px rgba(61,126,245,.6), 0 0 26px rgba(61,126,245,.45), 0 0 64px rgba(61,126,245,.16); } 32%, 100% { border-color: var(--ac-line); box-shadow: inset 0 0 0 0 rgba(61,126,245,0), inset 0 0 0 0 rgba(61,126,245,0), 0 0 0 rgba(61,126,245,0), 0 0 0 rgba(61,126,245,0); } }
.post--dark .prose .dg-flow__nodes li { animation-name: fl-lit-b; }
.post--dark .prose .dg-tree__leaves li { animation-name: tr-lit3-b; }
.post--dark .prose .dg-cards .dg-card { animation-name: cd-lit-b; }
/* the mark the right way up on the blog and Academy pages (Murat: "blog sayfası header da logo ters"): the file's own
   orientation; the main site keeps Framer's rotation */
body:has(main.blog) .site-header .logo { transform: none; }

/* ═════════ 2026-11-25 (Murat), the blog list: the card shows the repo, the title is said once beside it ═════════ */
/* "article card üzerinde ve yanında aynı başlık yazıyor, gözü yoruyor": the card is the article's flow diagram as a
   black box (ref: the article's "Before any code" boxes, "siyah box, mavi parlaması, şema design"): the repo's name in
   corner brackets, what it is best for, its stars, then the scheme as numbered boxes, lit in blue one after another and the
   end box last. The box grows with its content (no fixed ratio), on phones too. */
.post-card__cover:has(.run-cover--repo), .post-lead__cover:has(.run-cover--repo) { aspect-ratio: auto; overflow: visible; background: none; }
.run-cover.run-cover--repo { position: relative; inset: auto; display: flex; flex-direction: column; gap: clamp(16px, 2vw, 26px); height: 100%;
  padding: clamp(18px, 2.4vw, 32px); border: 1px solid rgba(255,255,255,.14); border-radius: 0;
  background: rgba(10, 12, 18, .58); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }   /* not pure black: the grid shows through (Murat 2026-11-25) */
.rc-head { display: grid; justify-items: start; gap: 10px; }
.rc-owner { display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1 var(--f-body); color: rgba(255,255,255,.62); }
.rc-owner .dg-repo__gh { width: 16px; height: 16px; flex: none; }
.rc-name { display: block; margin: 2px 0 2px -.04em; font-size: clamp(30px, 3.6vw, 56px); line-height: 1; }
.run-cover--repo:not(.run-cover--big) .rc-name { font-size: clamp(24px, 2.4vw, 34px); }
.rc-best { display: grid; gap: 5px; max-width: 48ch; font: 500 clamp(13px, 1.15vw, 16px)/1.4 var(--f-body); color: rgba(255,255,255,.88); }
.rc-best small { font: 700 10.5px/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.rc-stars { display: inline-flex; align-items: center; gap: 7px; font: 700 13px/1 var(--f-body); color: #fff; }
/* the star shines silver (Murat 2026-11-25: "yıldız iconu gümüş parlasın"): a cool light grey with a slow breathing glow */
.rc-stars .ico { width: 15px; height: 15px; color: #e4e8ef; filter: drop-shadow(0 0 2px rgba(232,237,245,.7)) drop-shadow(0 0 7px rgba(196,206,222,.35));
  animation: rc-star 2.6s ease-in-out infinite; }
@keyframes rc-star { 0%, 100% { color: #cfd5de; filter: drop-shadow(0 0 2px rgba(232,237,245,.55)) drop-shadow(0 0 6px rgba(196,206,222,.25)); }
  50% { color: #f6f8fb; filter: drop-shadow(0 0 4px rgba(246,248,251,1)) drop-shadow(0 0 14px rgba(206,216,230,.75)); } }
@media (prefers-reduced-motion: reduce) { .rc-stars .ico { animation: none; } }
.rc-lic { margin-left: 6px; padding: 4px 7px; border: 1px solid rgba(255,255,255,.22); font: 700 10.5px/1 var(--f-body); letter-spacing: .08em; }
.run-cover--repo .run-cover__sc { display: block; padding: 0; overflow: visible; min-height: 0; }
/* corner brackets in blue around the reels' serif italic: the repo's name on the card */
.rc-name em.brk {
  --c: #3d7ef5; --t: 3px; --l: .26em;
  display: inline-block; padding: .06em .3em .12em .26em; color: #fff; line-height: 1.04; vertical-align: baseline;
  font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0; word-spacing: normal;
  background:
    linear-gradient(var(--c) 0 0) left top / var(--l) var(--t), linear-gradient(var(--c) 0 0) left top / var(--t) var(--l),
    linear-gradient(var(--c) 0 0) right top / var(--l) var(--t), linear-gradient(var(--c) 0 0) right top / var(--t) var(--l),
    linear-gradient(var(--c) 0 0) left bottom / var(--l) var(--t), linear-gradient(var(--c) 0 0) left bottom / var(--t) var(--l),
    linear-gradient(var(--c) 0 0) right bottom / var(--l) var(--t), linear-gradient(var(--c) 0 0) right bottom / var(--t) var(--l);
  background-repeat: no-repeat; }
.rc-name em.brk { --t: 4px; --l: .22em; padding: .08em .34em .16em .3em; }
/* the scheme: lanes of numbered boxes, the end box beside them (below them on narrow cards) */
.card-flow { --ac-line: rgba(255,255,255,.16); --step: .7s; --loop: calc(var(--total, 6) * var(--step) + 1.6s);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px 26px; align-items: center; }
.run-cover--big .card-flow--end { grid-template-columns: minmax(0, 1fr) minmax(96px, .34fr); }
.cf-lanes { position: relative; display: grid; gap: 14px; }
.cf-lane { display: grid; gap: 8px; }
.cf-k { font: 700 11px/1.2 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.cf-row { position: relative; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 14px; }
.cf-box, .cf-end { position: relative; display: grid; align-content: start; gap: 6px; min-width: 0; padding: 10px 12px 12px;
  border: 1px solid var(--ac-line); background: #0e0e10; }
.cf-box b, .cf-end b { font: 700 clamp(15px, 1.5vw, 21px)/1 var(--f-display); color: #fff; }
.cf-box i, .cf-end i { font: 700 clamp(11.5px, 1.05vw, 14px)/1.25 var(--f-body); font-style: normal; color: #fff; overflow-wrap: anywhere; }
.cf-box:not(:last-child)::after { content: ""; position: absolute; left: 100%; top: 50%; width: 14px; height: 1px; background: rgba(255,255,255,.22); }
.cf-box { animation: fl-lit-b var(--loop) linear infinite; animation-delay: calc(var(--j, 0) * var(--step) + .35s); }
.cf-end { animation: cf-end-lit var(--loop) linear infinite; animation-delay: calc(var(--j, 0) * var(--step) + .35s); }
/* Murat 2026-11-25: "şema sırayla başlasın, en sonda 7. kart yansın": the end box lights last, after the others in turn,
   and holds through the pause before the loop starts again */
@keyframes cf-end-lit { 0%, 22% { border-color: #3d7ef5; background-color: #16244a; box-shadow: inset 0 0 0 1px #3d7ef5, inset 0 26px 40px -18px rgba(61,126,245,.6), 0 0 26px rgba(61,126,245,.45), 0 0 64px rgba(61,126,245,.16); }
  28%, 100% { border-color: var(--ac-line); background-color: #0e0e10; box-shadow: inset 0 0 0 0 rgba(61,126,245,0), inset 0 0 0 0 rgba(61,126,245,0), 0 0 0 rgba(61,126,245,0), 0 0 0 rgba(61,126,245,0); } }
/* each lane runs into the end box: a hairline out of every row and one joining them */
.run-cover--big .card-flow--end .cf-row::after { content: ""; position: absolute; left: 100%; top: 50%; width: 13px; height: 1px; background: rgba(255,255,255,.22); }
.run-cover--big .card-flow--end .cf-end::before { content: ""; position: absolute; right: 100%; top: 50%; width: 13px; height: 1px; background: #3d7ef5; }
.run-cover--big .card-flow--end .cf-lanes::after { content: ""; position: absolute; left: calc(100% + 13px); top: var(--jt, 34%); bottom: var(--jb, 18%); width: 1px; background: rgba(255,255,255,.22); }
.run-cover--repo:not(.run-cover--big) .cf-k { display: none; }
.run-cover--repo:not(.run-cover--big) .cf-box, .run-cover--repo:not(.run-cover--big) .cf-end { padding: 8px 9px 9px; }
@media (max-width: 760px) {
  .run-cover--big .card-flow--end { grid-template-columns: minmax(0, 1fr); }
  .run-cover--big .card-flow--end .cf-row::after, .run-cover--big .card-flow--end .cf-end::before, .run-cover--big .card-flow--end .cf-lanes::after { display: none; }
  .cf-row { gap: 10px; } .cf-box:not(:last-child)::after { width: 10px; }
  .cf-box, .cf-end { padding: 8px 9px 10px; }
}
@media (prefers-reduced-motion: reduce) { .cf-box, .cf-end { animation: none; } }
/* the title beside the card in the Academy's type, white, the accent in the serif italic in the accent colour with no
   brackets, as in the article's kicker ("plan before it codes dan bracket kaldır") */
.post-lead__title { margin: 0; font: 700 clamp(28px, 2.9vw, 46px)/1.08 var(--f-display); text-transform: uppercase; color: #fff;
  letter-spacing: .005em; word-spacing: .2em; max-width: 20ch; }
.post-card__title { display: block; font: 700 clamp(17px, 1.5vw, 21px)/1.15 var(--f-display); text-transform: uppercase; color: #fff; word-spacing: .15em; }
.post-lead__title em, .post-card__title em { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400;
  text-transform: none; letter-spacing: 0; word-spacing: normal; color: var(--c-accent-word, #4d9fff); font-size: 1.18em; line-height: 1; }
.post-lead:hover .post-lead__title, .post-card:hover .post-card__title { color: #fff; }
/* Read is a box whose edges light like the scheme's lit box when the card is pointed at, the word itself stays white
   ("hover effect ile tüm kelimeyi aydınlatmasın, şemadaki kutular gibi kenarları parlasın") */
.post-lead__more { justify-self: start; display: inline-flex; align-items: center; padding: 13px 20px 12px; border: 1px solid rgba(255,255,255,.2);
  color: #fff; text-shadow: none; transition: border-color .25s var(--ease-out), box-shadow .25s var(--ease-out); }
.post-lead:hover .post-lead__more, .post-lead:focus-visible .post-lead__more { color: #fff; text-shadow: none; border-color: #3d7ef5;
  box-shadow: inset 0 0 0 1px #3d7ef5, inset 0 26px 40px -18px rgba(61,126,245,.6), 0 0 26px rgba(61,126,245,.45), 0 0 64px rgba(61,126,245,.16); }
/* phones: the card as close under the tabs as the tabs are under the chips ("blog yazının yukarıdan verilen boşluk ile aynı olsun") */
@media (max-width: 900px) {
  .blog-head:has(+ .blog-list > .post-lead) { padding-bottom: 0; }
  .blog-list > .post-lead:first-child { padding-top: var(--s-3); }
}


/* ACADEMY in the DM cards' face, no brackets (Murat 2026-11-25: "academy yazısı dm kartında yazan fontta yazsın, ( ) bunları
   da kaldır"): Clash Display Bold with the cards' open tracking */
.blog-head .t-title.academy-title { font-family: var(--f-display); font-weight: 700; letter-spacing: .04em; margin-left: -.02em; }

/* the boxes inside an article are frosted glass like the list's card (Murat 2026-11-25: "blog sayfasının içindeki kartlar
   da, article cartındaki gibi, buzlu cam efekti olsun"): the same see-through dark and the same blur, the grid shows through */
.post--dark { --ac-panel: rgba(10, 12, 18, .58); }
.post--dark .prose .dg-card, .post--dark .prose .dg-flow, .post--dark .prose .dg-flow__nodes li, .post--dark .prose .dg-story, .post--dark .prose .dg-check,
.post--dark .prose .dg-tree__root, .post--dark .prose .dg-tree__leaves li, .post--dark .prose .dg-utm, .post--dark .prose .dg-ratio__box, .post--dark .prose .dg-compare__col,
.post--dark .prose .dg-score, .post--dark .prose .dg-take, .post--dark .prose .dg-vs, .post--dark .prose .dg-mist, .post--dark .prose .dg-bars, .post--dark .prose .dg-ui,
.post--dark .prose .dg-repo, .post--dark .prose .prompt, .post--dark .prose pre:not(.prompt pre), .post--dark .prose .spec-card, .post--dark .prose .dg-faq,
.post--dark .prose .dg-tabs, .post--dark .prose .dg-stats > div, .post--dark .post-box, .post--dark .post-repo {
  background-color: rgba(10, 12, 18, .58) !important; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
/* a box inside a glass box is a lighter pane, so the two do not stack into black */
.post--dark .prose .dg-flow__nodes li, .post--dark .prose .dg-tree__leaves li, .post--dark .prose .dg-compare__col {
  background-color: rgba(255, 255, 255, .03) !important; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* text for screen readers and search only */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* the small repo card (Discover more, All, the Free band) is landscape 16:9 like every other card (Murat 2026-11-25, via
   Academy-Content): the repo on the left (owner, name, stars), the scheme on the right as numbered boxes only */
.post-card__cover:has(.run-cover--repo:not(.run-cover--big)) { aspect-ratio: 16 / 9; overflow: hidden; }
.run-cover.run-cover--repo:not(.run-cover--big) { position: absolute; inset: 0; height: auto; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  grid-template-rows: auto; align-items: center; align-content: center; gap: 14px; padding: 14px 16px; }
.run-cover--repo:not(.run-cover--big) .rc-head { gap: 8px; }
.run-cover--repo:not(.run-cover--big) .rc-best { display: none; }
.run-cover--repo:not(.run-cover--big) .rc-name { font-size: clamp(20px, 2vw, 28px); }
.run-cover--repo:not(.run-cover--big) .rc-owner { font-size: 11.5px; }
.run-cover--repo:not(.run-cover--big) .rc-stars { font-size: 11.5px; }
.run-cover--repo:not(.run-cover--big) .rc-lic { display: none; }
.run-cover--repo:not(.run-cover--big) .card-flow { gap: 7px; }
.run-cover--repo:not(.run-cover--big) .cf-lanes { gap: 7px; }
.run-cover--repo:not(.run-cover--big) .cf-row { gap: 7px; }
.run-cover--repo:not(.run-cover--big) .cf-box, .run-cover--repo:not(.run-cover--big) .cf-end { padding: 5px 7px 6px; gap: 2px; }
.run-cover--repo:not(.run-cover--big) .cf-box b, .run-cover--repo:not(.run-cover--big) .cf-end b { font-size: 13px; }
.run-cover--repo:not(.run-cover--big) .cf-box i, .run-cover--repo:not(.run-cover--big) .cf-end i { font-size: 9.5px; line-height: 1.15; }
.run-cover--repo:not(.run-cover--big) .cf-box:not(:last-child)::after { width: 7px; }

/* the tree with its moving dot (has-flow) on dark articles: dark glass boxes with a hairline that light blue on the beat,
   like the flow and the cards (Murat 2026-11-25 on the Ultra post: "kutular beyaz ve şeffaf") */
.post--dark .prose .dg-tree.has-flow .dg-tree__root, .post--dark .prose .dg-tree.has-flow .dg-tree__leaves li {
  border-color: var(--ac-line); background-color: rgba(10, 12, 18, .58) !important; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.post--dark .prose .dg-tree.has-flow .dg-tree__root { animation-name: tf-root-b; }
.post--dark .prose .dg-tree.has-flow .dg-tree__leaves li { animation-name: tf-leaf-b; }
@keyframes tf-root-b { 0%, 8% { border-color: #3d7ef5; box-shadow: inset 0 0 0 1px #3d7ef5, inset 0 26px 40px -18px rgba(61,126,245,.6), 0 0 26px rgba(61,126,245,.45); }
  20%, 100% { border-color: var(--ac-line); box-shadow: inset 0 0 0 0 rgba(61,126,245,0), inset 0 0 0 0 rgba(61,126,245,0), 0 0 0 rgba(61,126,245,0); } }
@keyframes tf-leaf-b { 0%, 52% { border-color: var(--ac-line); box-shadow: inset 0 0 0 0 rgba(61,126,245,0), inset 0 0 0 0 rgba(61,126,245,0), 0 0 0 rgba(61,126,245,0); }
  56%, 72% { border-color: #3d7ef5; box-shadow: inset 0 0 0 1px #3d7ef5, inset 0 26px 40px -18px rgba(61,126,245,.6), 0 0 26px rgba(61,126,245,.45); }
  86%, 100% { border-color: var(--ac-line); box-shadow: inset 0 0 0 0 rgba(61,126,245,0), inset 0 0 0 0 rgba(61,126,245,0), 0 0 0 rgba(61,126,245,0); } }

/* boxes that drew their dividers with a 1 px gap over a light fill showed that fill through the glass as a grey-white
   sheet (Murat 2026-11-25: "ultrada da böyle beyaz, glass tasarım vardı"): on dark articles the fill goes, the boxes are
   the dark glass and the dividers are hairlines */
.post--dark .prose .dg-compare, .post--dark .prose .dg-stats { background: transparent !important; gap: 0; border-color: var(--ac-line); }
.post--dark .prose .dg-compare__col, .post--dark .prose .dg-stats > div { background-color: rgba(10, 12, 18, .58) !important; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.post--dark .prose .dg-compare__col + .dg-compare__col { border-left: 1px solid var(--ac-line); }
.post--dark .prose .dg-stats > div + div { border-left: 1px solid var(--ac-line); }
@media (max-width: 700px) { .post--dark .prose .dg-compare__col + .dg-compare__col { border-left: 0; border-top: 1px solid var(--ac-line); } }
/* the small repo card: the repo's name as large as the card allows, its stars under it, as on the big card */
.run-cover--repo:not(.run-cover--big) .rc-stars { font-size: 13px; }
.run-cover--repo:not(.run-cover--big) .rc-owner { font-size: 12.5px; }
/* the name sized to the card's own width so it never runs into the scheme; the repo gets the wider column */
.post-card__cover:has(.run-cover--repo:not(.run-cover--big)) { container-type: inline-size; }
.run-cover.run-cover--repo:not(.run-cover--big) { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
.run-cover--repo:not(.run-cover--big) .rc-name { font-size: clamp(22px, 8.2cqi, 40px); max-width: 100%; }
.run-cover--repo:not(.run-cover--big) .rc-name em.brk { white-space: nowrap; }
/* on a narrow card the scheme keeps its numbers and drops the words, which would break inside a word */
@container (max-width: 380px) {
  .run-cover--repo:not(.run-cover--big) .cf-box i, .run-cover--repo:not(.run-cover--big) .cf-end i { display: none; }
  .run-cover--repo:not(.run-cover--big) .cf-box b, .run-cover--repo:not(.run-cover--big) .cf-end b { font-size: 14px; }
}
.run-cover--repo:not(.run-cover--big) .cf-box i, .run-cover--repo:not(.run-cover--big) .cf-end i { overflow-wrap: normal; word-break: keep-all; }

/* Discover more: the same large card as the blog's latest post (Murat 2026-11-25) */
.discover__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--s-3); margin-top: var(--s-3); }
@media (max-width: 900px) { .discover__list { grid-template-columns: minmax(0, 1fr); } }
.post-card--discover .post-card__cover { margin-bottom: 14px; }
/* the large cover set smaller inside a half-width card */
.post-card--discover .run-cover--big { padding: clamp(16px, 1.6vw, 24px); gap: 14px; }
.post-card--discover .rc-name { font-size: clamp(26px, 2.4vw, 38px); }
.post-card--discover .rc-best { font-size: 13px; }
.post-card--discover .cf-box, .post-card--discover .cf-end { padding: 7px 9px 8px; gap: 3px; }
.post-card--discover .cf-box b, .post-card--discover .cf-end b { font-size: 15px; }
.post-card--discover .cf-box i, .post-card--discover .cf-end i { font-size: 11.5px; }
.post-card--discover .cf-row, .post-card--discover .cf-lanes { gap: 9px; }
.post-card--discover .card-flow--end { gap: 9px 18px; }
/* Read no longer pulses: its edges light only when the card is pointed at (Murat 2026-11-25: "read yanıp sönmesin, mouse
   üzerine gidince parlasın"; the hover rule above) */

/* the title's display caps in Clash Display Regular, not Bold (Murat 2026-11-25 on SHIP, MORNING and ULTRA:
   "başlık yazısını daha ince bir font ile yazılsın"); the serif accent stays as it is */
.post--dark .post-title { font-weight: 400; }
.post--dark .post-title__name { font-weight: 700; }   /* the name before the colon keeps the bold (Murat 2026-11-25) */

/* a card's cover without the scheme (Murat 2026-11-25: only the hero keeps its scheme): the head alone, centred in the
   16:9 frame; the Discover more cards the same at their larger size */
.post-card__cover:has(.run-cover--plain) { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.run-cover.run-cover--plain { position: absolute; inset: 0; height: auto; display: flex; flex-direction: column; justify-content: center;
  grid-template-columns: none; padding: clamp(16px, 2vw, 28px); }
.run-cover--plain .rc-head { gap: 10px; }
.run-cover--plain:not(.run-cover--big) .rc-best { display: block; max-width: 40ch; font-size: 12.5px; }
.run-cover--plain:not(.run-cover--big) .rc-best small { display: none; }
.run-cover--plain:not(.run-cover--big) .rc-name { font-size: clamp(22px, 2.2vw, 32px); }
.run-cover--plain.run-cover--big .rc-name { font-size: clamp(26px, 2.8vw, 42px); }
.run-cover--plain .rc-owner span { text-transform: uppercase; letter-spacing: .1em; font-size: 11px; }
.rc-len { font-weight: 600; color: rgba(255,255,255,.7); }
.post-card--discover .post-card__cover:has(.run-cover--plain) { aspect-ratio: 2.4 / 1; }   /* wide and low: no empty box */

/* footer on the dark blog and Academy pages: frosted dark glass like the repo card, the grid faint behind it (Murat 2026-11-26) */
.blog--dark ~ .site-footer { background: rgba(10, 12, 18, .4); border-top: 1px solid rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
/* the reel's comment keyword on a blog card: the bio links to /blog, so people match the card to the reel (Murat 2026-11-26) */
.post-meta .post-kw { padding: 2px 8px; border-radius: 999px; background: var(--c-white); color: var(--c-black); font: 700 12px/1.4 var(--f-display); letter-spacing: .06em; }
.post-meta .post-kw + *::before { content: none; }
.post-meta .post-kw + * { margin-left: calc(var(--s-1) * -1); }
