/* ==========================================================================
   DibStudios — Blog 02
   Everything is scoped under .dib-b2 so it never clashes with the theme.
   Change the brand look by editing the variables below.
   ========================================================================== */
.dib-b2 {
	--b2-ink: #1f2124;
	--b2-ink-2: #222628;
	--b2-paper: #f7f5fa;
	--b2-card: #ffffff;
	--b2-text: #333333;
	--b2-muted: #69727d;
	--b2-line: rgba(31, 33, 36, 0.09);
	--b2-accent: #f1543f;
	--b2-accent-2: #a82bb0;
	--b2-grad: linear-gradient(100deg, #f1543f 0%, #a82bb0 100%);
	--b2-radius: 22px;
	--b2-serif: "Mulish", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--b2-sans: "Mulish", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--b2-ease: cubic-bezier(.2, .7, .2, 1);

	background: var(--b2-paper);
	color: var(--b2-text);
	font-family: var(--b2-sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	padding-top: 0 !important; /* the banner sits under the transparent site header */
	padding-bottom: clamp(64px, 9vw, 120px);
	position: relative;
	isolation: isolate;
}
.dib-b2 *, .dib-b2 *::before, .dib-b2 *::after { box-sizing: border-box; }
.dib-b2 a { color: inherit; text-decoration: none; }
.dib-b2 ul { list-style: none; margin: 0; padding: 0; }
.dib-b2 p { margin: 0; }
.dib-b2 [hidden] { display: none !important; }

/* Break out of a boxed theme container to full width */
.dib-b2--bleed { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
html:has(.dib-b2--bleed), body:has(.dib-b2--bleed) { overflow-x: clip; }

.dib-b2__wrap { width: min(1240px, 100% - 2 * clamp(20px, 4vw, 48px)); margin-inline: auto; position: relative; }
.dib-b2__sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Hero ---------- */
.dib-b2__hero {
	position: relative;
	overflow: hidden;
	background: #000 var(--b2-banner, none) center / cover no-repeat; /* same as the theme banner */
	color: #f4f2ee;
	padding: clamp(130px, 14vw, 190px) 0 clamp(150px, 16vw, 210px);
	text-align: center;
}
.dib-b2__hero::after { /* fine grid texture */
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
	background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}
.dib-b2__glow { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.dib-b2__glow::before, .dib-b2__glow::after {
	content: ""; position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55;
	animation: b2-float 16s var(--b2-ease) infinite alternate;
}
.dib-b2__glow::before { width: 520px; height: 520px; left: -120px; top: -160px; background: var(--b2-accent); }
.dib-b2__glow::after { width: 440px; height: 440px; right: -120px; bottom: -180px; background: var(--b2-accent-2); opacity: .35; animation-delay: -8s; }
@keyframes b2-float { to { transform: translate3d(60px, 40px, 0) scale(1.1); } }

.dib-b2__hero-inner { position: relative; z-index: 1; max-width: 880px; }
.dib-b2__eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 500;
	color: rgba(244, 242, 238, .72);
	padding: 8px 16px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px;
	background: rgba(255,255,255,.04); backdrop-filter: blur(8px);
}
.dib-b2__eyebrow span { width: 6px; height: 6px; border-radius: 50%; background: var(--b2-accent-2); box-shadow: 0 0 0 4px rgba(241,84,63,.2); }
.dib-b2 .dib-b2__h1 {
	font-family: var(--b2-serif); font-weight: 800; color: #fff;
	font-size: clamp(38px, 6vw, 76px); line-height: 1.06; letter-spacing: -0.03em;
	margin: 28px 0 22px; text-wrap: balance;
}
.dib-b2 .dib-b2__h1 em, .dib-b2 .dib-b2__cta h2 em {
	font-style: normal;
	background: var(--b2-grad);
	-webkit-background-clip: text; background-clip: text; color: transparent;
	padding-right: .06em;
}
.dib-b2 .dib-b2__lead { font-size: clamp(16px, 1.6vw, 19px); color: rgba(244,242,238,.68); max-width: 620px; margin: 0 auto !important; text-align: center !important; text-wrap: balance; }

.dib-b2__search {
	margin: 40px auto 0; max-width: 560px;
	display: flex; align-items: center; gap: 10px;
	padding: 8px 8px 8px 20px; border-radius: 999px;
	background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
	backdrop-filter: blur(12px);
	transition: border-color .3s, background .3s, box-shadow .3s;
}
.dib-b2__search:focus-within { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.1); box-shadow: 0 0 0 6px rgba(241,84,63,.16); }
.dib-b2__search svg { color: rgba(255,255,255,.55); flex: none; }
.dib-b2 .dib-b2__search input {
	flex: 1; min-width: 0; background: transparent !important; border: 0 !important; outline: 0; box-shadow: none !important;
	color: #fff; font: inherit; font-size: 16px; padding: 10px 0; margin: 0;
}
.dib-b2__search input::placeholder { color: rgba(255,255,255,.45); }
.dib-b2__search input::-webkit-search-cancel-button { filter: invert(1); opacity: .5; }
.dib-b2 .dib-b2__search button {
	border: 0; border-radius: 999px; padding: 12px 22px; cursor: pointer;
	background: var(--b2-grad); color: #fff; font: 700 14px/1 var(--b2-sans);
	transition: transform .25s var(--b2-ease), background .25s;
}
.dib-b2__search button:hover { transform: translateY(-1px); filter: brightness(1.08); }

.dib-b2__stats {
	display: inline-flex; justify-content: center; align-items: stretch; margin: 44px auto 0; padding: 18px 8px;
	border-radius: 18px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(8px);
}
.dib-b2__stats div { text-align: center; padding: 2px clamp(22px, 4vw, 48px); position: relative; }
.dib-b2__stats div + div::before { /* little gradient separator */
	content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
	width: 1px; height: 70%; background: linear-gradient(180deg, transparent, #f1543f 30%, #a82bb0 70%, transparent);
	opacity: .85;
}
.dib-b2__stats dt { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(244,242,238,.55); margin: 0; }
.dib-b2__stats dd { white-space: nowrap; margin: 4px 0 0; font-family: var(--b2-serif); font-weight: 800; font-size: clamp(22px, 2.4vw, 30px); color: #fbfaf7; }

/* When the theme banner image is used, let it provide the glow */
.dib-b2[style*="--b2-banner"] .dib-b2__glow, .dib-b2[style*="--b2-banner"] .dib-b2__hero::after { display: none; }

/* ---------- Featured ---------- */
.dib-b2__featured { position: relative; margin-top: clamp(-130px, -12vw, -90px); z-index: 2; }
.dib-b2__badge {
	position: absolute; top: 20px; left: 20px; z-index: 3;
	font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
	padding: 8px 14px; border-radius: 999px; color: #fff;
	background: rgba(12,13,18,.55); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.2);
}
.dib-b2__feature {
	display: grid; grid-template-columns: 1.15fr 1fr; align-items: stretch;
	background: var(--b2-card); border-radius: calc(var(--b2-radius) + 6px); overflow: hidden;
	box-shadow: 0 40px 80px -30px rgba(12,13,18,.35), 0 0 0 1px var(--b2-line);
}
.dib-b2__feature .dib-b2__media { aspect-ratio: auto; min-height: 420px; border-radius: 0; }
.dib-b2__feature .dib-b2__body { padding: clamp(28px, 4vw, 56px); justify-content: center; }
.dib-b2 .dib-b2__feature .dib-b2__title { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.1; }
.dib-b2__feature .dib-b2__excerpt { font-size: 17px; -webkit-line-clamp: 4; }

/* ---------- Filters ---------- */
.dib-b2__filters {
	display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
	margin: clamp(56px, 7vw, 88px) 0 32px; padding-bottom: 22px; border-bottom: 1px solid var(--b2-line);
}
.dib-b2__pills { display: flex; gap: 8px; flex-wrap: wrap; }
.dib-b2__pill {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 500;
	background: transparent; border: 1px solid var(--b2-line); color: var(--b2-text);
	transition: all .3s var(--b2-ease);
}
.dib-b2__pill sup { font-size: 10px; color: var(--b2-muted); top: -.4em; position: relative; }
.dib-b2__pill:hover { border-color: rgba(18,20,28,.3); transform: translateY(-1px); }
.dib-b2__pill.is-active { background: var(--b2-grad); color: #fff; border-color: transparent; }
.dib-b2__pill.is-active sup { color: rgba(255,255,255,.6); }
.dib-b2__count { font-size: 14px; color: var(--b2-muted); font-weight: 600; }

/* ---------- Grid & cards ---------- */
.dib-b2__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); transition: opacity .3s; }
.dib-b2__grid > li { display: flex; }
.dib-b2.is-loading .dib-b2__grid { opacity: .4; pointer-events: none; }

.dib-b2__card {
	display: flex; flex-direction: column; width: 100%;
	background: var(--b2-card); border-radius: var(--b2-radius); overflow: hidden;
	box-shadow: 0 0 0 1px var(--b2-line);
	transition: transform .5s var(--b2-ease), box-shadow .5s var(--b2-ease);
}
.dib-b2__card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -28px rgba(12,13,18,.28), 0 0 0 1px var(--b2-line); }

.dib-b2__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #e9e6df; margin: 8px 8px 0; border-radius: calc(var(--b2-radius) - 8px); }
.dib-b2 .dib-b2__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--b2-ease); max-width: none; margin: 0; }
.dib-b2__card:hover .dib-b2__img, .dib-b2__feature:hover .dib-b2__img { transform: scale(1.06); }
.dib-b2__feature .dib-b2__media { margin: 0; }
.dib-b2__img--fallback {
	position: absolute; inset: 0; display: grid !important; place-items: center;
	background:
		radial-gradient(circle at calc(15% + var(--h) * .15%) 20%, rgba(241,84,63,.85), transparent 55%),
		radial-gradient(circle at 85% calc(40% + var(--h) * .15%), rgba(168,43,176,.8), transparent 55%),
		linear-gradient(135deg, #1f2124, #2b2230);
}
.dib-b2__img--fallback span { font-family: var(--b2-serif); font-weight: 800; font-size: clamp(64px, 8vw, 120px); color: rgba(255,255,255,.85); line-height: 1; }

.dib-b2__body { display: flex; flex-direction: column; gap: 14px; padding: 24px 26px 26px; flex: 1; }
.dib-b2__meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--b2-muted); }
.dib-b2__chip {
	font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
	color: var(--b2-accent); padding: 6px 10px; border-radius: 8px;
	background: color-mix(in srgb, var(--b2-accent) 10%, transparent);
	transition: background .25s;
}
.dib-b2__chip:hover { background: color-mix(in srgb, var(--b2-accent) 18%, transparent); }
.dib-b2__dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }

.dib-b2 .dib-b2__title {
	font-family: var(--b2-serif); font-weight: 800; font-size: 21px; line-height: 1.3;
	letter-spacing: -0.012em; color: var(--b2-ink); margin: 0; text-wrap: balance;
}
.dib-b2__title a { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .5s var(--b2-ease); }
.dib-b2__title a:hover { background-size: 100% 1px; }
.dib-b2__excerpt { color: var(--b2-muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.dib-b2__byline { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--b2-line); display: flex; align-items: center; gap: 12px; font-size: 13px; }
.dib-b2 .dib-b2__avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; margin: 0; flex: none; }
.dib-b2__byline > span { display: flex; flex-direction: column; line-height: 1.35; flex: 1; min-width: 0; }
.dib-b2__byline strong { font-weight: 600; color: var(--b2-ink); }
.dib-b2__byline time { color: var(--b2-muted); }
.dib-b2__arrow {
	width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
	border: 1px solid var(--b2-line); color: var(--b2-ink);
	transition: all .4s var(--b2-ease);
}
.dib-b2__card:hover .dib-b2__arrow, .dib-b2__feature:hover .dib-b2__arrow { background: var(--b2-ink); color: #fff; border-color: var(--b2-ink); transform: rotate(45deg); }

/* skeleton while loading a new filter */
.dib-b2__skel { width: 100%; border-radius: var(--b2-radius); background: var(--b2-card); box-shadow: 0 0 0 1px var(--b2-line); padding: 8px; }
.dib-b2__skel i { display: block; border-radius: 12px; background: linear-gradient(90deg, #eeebe5 0%, #f7f5f0 50%, #eeebe5 100%); background-size: 200% 100%; animation: b2-shim 1.3s linear infinite; }
.dib-b2__skel i:nth-child(1) { aspect-ratio: 16/10; }
.dib-b2__skel i:nth-child(2) { height: 14px; width: 30%; margin: 22px 18px 14px; }
.dib-b2__skel i:nth-child(3) { height: 22px; width: 85%; margin: 0 18px 10px; }
.dib-b2__skel i:nth-child(4) { height: 22px; width: 60%; margin: 0 18px 28px; }
@keyframes b2-shim { to { background-position: -200% 0; } }

/* Empty + load more */
.dib-b2__empty { text-align: center; padding: 72px 20px; font-weight: 700; font-size: 20px; color: var(--b2-muted); }
.dib-b2__empty span { display: block; font-size: 28px; color: var(--b2-accent); margin-bottom: 8px; }
.dib-b2__empty a { display: inline-block; margin-top: 14px; font-family: var(--b2-sans); font-size: 14px; font-weight: 600; color: var(--b2-ink); border-bottom: 1px solid currentColor; }
.dib-b2__more { display: flex; justify-content: center; margin-top: 40px; }
.dib-b2__more:empty { display: none; }

.dib-b2__btn {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 16px 28px; border-radius: 8px; font-weight: 700; font-size: 15px;
	background: var(--b2-grad); color: #fff !important;
	transition: transform .35s var(--b2-ease), box-shadow .35s var(--b2-ease);
}
.dib-b2__btn:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -16px rgba(0,0,0,.45); }
.dib-b2__btn svg { transition: transform .35s var(--b2-ease); }
.dib-b2__btn:hover svg { transform: translateX(4px); }
.dib-b2__btn--ghost { background: transparent; border: 1px solid rgba(31,33,36,.2); color: var(--b2-ink) !important; }
.dib-b2__btn--ghost:hover { background: var(--b2-grad); border-color: transparent; color: #fff !important; border-color: var(--b2-ink); }
.dib-b2__btn.is-busy { opacity: .6; pointer-events: none; }

/* ---------- CTA ---------- */
.dib-b2__cta {
	position: relative; overflow: hidden; isolation: isolate;
	margin-top: clamp(48px, 5vw, 72px);
	display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
	padding: clamp(36px, 5vw, 72px);
	background: #000 var(--b2-banner, none) center / cover no-repeat; color: #f4f2ee; border-radius: calc(var(--b2-radius) + 8px);
}
.dib-b2__cta .dib-b2__glow { z-index: -1; }
.dib-b2__cta .dib-b2__glow::before { width: 380px; height: 380px; left: auto; right: 10%; top: -200px; }
.dib-b2__cta .dib-b2__glow::after { width: 320px; height: 320px; left: -100px; right: auto; bottom: -220px; }
.dib-b2 .dib-b2__cta h2 { font-family: var(--b2-serif); font-weight: 800; font-size: clamp(30px, 4vw, 52px); line-height: 1.08; letter-spacing: -0.02em; color: #fbfaf7; margin: 0 0 12px; max-width: 640px; }
.dib-b2__cta p { color: rgba(244,242,238,.65); max-width: 520px; }

/* ---------- Reveal on scroll ---------- */
.dib-b2.js [data-reveal] { opacity: 0; transform: translateY(24px); }
.dib-b2.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity .9s var(--b2-ease), transform .9s var(--b2-ease); transition-delay: var(--d, 0s); }
.dib-b2.js .dib-b2__card[data-reveal].is-in:hover { transform: translateY(-6px); transition-delay: 0s; }

/* Focus */
.dib-b2 a:focus-visible, .dib-b2 button:focus-visible { outline: 2px solid var(--b2-accent); outline-offset: 3px; border-radius: 999px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.dib-b2__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dib-b2__feature { grid-template-columns: 1fr; }
	.dib-b2__feature .dib-b2__media { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 680px) {
	/* consistent 45px vertical rhythm between sections */
	.dib-b2 { padding-bottom: 45px; }
	.dib-b2__hero { padding: 130px 0 105px; }
	.dib-b2__featured { margin-top: -60px; }
	.dib-b2__filters { margin: 45px 0 24px; }
	.dib-b2__featured[hidden] + .dib-b2__filters { margin-top: 45px; }
	.dib-b2__more { margin-top: 45px; }
	.dib-b2__cta { margin-top: 45px; padding: 45px 24px; }
	.dib-b2__search { margin-top: 32px; }
	.dib-b2__stats { margin-top: 32px; padding: 14px 4px; }
	.dib-b2__stats div { padding: 2px 16px; }
	.dib-b2__stats dd { font-size: 20px; }
	.dib-b2__grid { grid-template-columns: 1fr; }
	.dib-b2__pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -20px; padding-inline: 20px; mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 30px), transparent); }
	.dib-b2__pills::-webkit-scrollbar { display: none; }
	.dib-b2__pill { white-space: nowrap; }
	.dib-b2__search { padding-left: 16px; }
	.dib-b2 .dib-b2__search button { padding: 12px 16px; }
	.dib-b2__stats { gap: 24px; }
	.dib-b2__cta { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
	.dib-b2 *, .dib-b2 *::before, .dib-b2 *::after { animation: none !important; transition: none !important; }
	.dib-b2.js [data-reveal] { opacity: 1; transform: none; }
}
