/* ==========================================================
   Shah Kamal Theme — main.css
   ----------------------------------------------------------
   1. Design tokens (edit colours here)   9. Testimonials
   2. Base                               10. Process, Tech stack
   3. Layout & sections                  11. About, FAQ
   4. Buttons, badges, tags              12. CTA, Contact & CF7
   5. Header & navigation                13. Journal & articles
   6. Hero & page header                 14. Case study, video
   7. Trust bar, services, features      15. Footer, 404, misc
   8. Work                               16. Responsive
   ========================================================== */

/* ----------------------------------------------------------
   1. Design tokens
   Light mode is the default; dark mode overrides below.
   Change the brand colours by editing these variables only.
   ---------------------------------------------------------- */
:root {
	/* Brand */
	--c-accent: #f29c1f;
	--c-accent-strong: #e07b12;
	--c-accent-ink: #a95f06;          /* accent text on light backgrounds */
	--c-accent-soft: #fdf0d6;
	--c-blue: #3b5bdb;
	--c-blue-soft: #e8edff;
	--c-green: #16a34a;
	--c-green-soft: #dcfce7;
	--c-star: #f2a516;
	--grad-accent: linear-gradient(120deg, #f7b733 0%, #f29c1f 45%, #e07b12 100%);
	--grad-text: linear-gradient(100deg, #d9890a 0%, #b2620a 55%, #9a4c0b 100%);

	/* Surfaces & text */
	--c-bg: #f7f6f3;
	--c-bg-alt: #efede8;
	--c-surface: #ffffff;
	--c-surface-2: #f6f5f1;
	--c-ink: #0b1220;
	--c-ink-2: #2a3346;
	--c-muted: #586174;
	--c-dim: #8a92a3;
	--c-line: #e7e4dd;
	--c-line-2: #d9d5cc;
	--c-header: rgba(247, 246, 243, .82);

	/* Buttons */
	--c-btn: #0b1220;
	--c-btn-ink: #ffffff;
	--c-btn-hover: #1c2740;

	/* Dark panels (CTA) stay dark in both modes */
	--c-panel: #0b1220;
	--c-panel-ink: #f4f1ea;
	--c-panel-muted: #a7b0c0;

	/* Effects */
	--shadow-sm: 0 1px 2px rgba(11, 18, 32, .04), 0 6px 18px -8px rgba(11, 18, 32, .10);
	--shadow: 0 2px 6px rgba(11, 18, 32, .04), 0 26px 60px -28px rgba(11, 18, 32, .22);
	--shadow-lg: 0 3px 10px rgba(11, 18, 32, .05), 0 44px 100px -40px rgba(11, 18, 32, .34);
	--glow: radial-gradient(60% 60% at 70% 20%, rgba(247, 183, 51, .28), transparent 70%), radial-gradient(50% 50% at 15% 30%, rgba(59, 91, 219, .14), transparent 70%);

	/* Type */
	--font-head: "Gilroy", "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-ui: "Lato", "Inter", system-ui, sans-serif;
	--fw-display: 300;
	--fw-title: 700;

	/* Shape & layout */
	--radius-sm: 10px;
	--radius: 16px;
	--radius-lg: 24px;
	--radius-pill: 999px;
	--wrap: 1200px;
	--wrap-narrow: 760px;
	--gutter: clamp(16px, 4vw, 32px);
	--section-y: clamp(64px, 9vw, 112px);
	--header-h: 76px;
	--admin-bar: 0px;
	--c-media-band: #0b1220; /* Behind article images, in both themes. */          /* height of the WordPress admin bar when logged in */
	--ease: cubic-bezier(.2, .7, .2, 1);

	color-scheme: light;
}

:root[data-theme="dark"] {
	--c-accent: #f7b733;
	--c-accent-strong: #f29c1f;
	--c-accent-ink: #f7b733;
	--c-accent-soft: rgba(247, 183, 51, .12);
	--c-blue: #8ea2ff;
	--c-blue-soft: rgba(142, 162, 255, .12);
	--c-green: #4ade80;
	--c-green-soft: rgba(74, 222, 128, .12);
	--grad-text: linear-gradient(100deg, #fcd27a 0%, #f7b733 50%, #f29c1f 100%);

	--c-bg: #0b1120;
	--c-bg-alt: #0e1628;
	--c-surface: #121b2d;
	--c-surface-2: #172236;
	--c-ink: #eef1f6;
	--c-ink-2: #cfd5e0;
	--c-muted: #9aa4b6;
	--c-dim: #6d778a;
	--c-line: #1f2a3e;
	--c-line-2: #2b374e;
	--c-header: rgba(11, 17, 32, .78);

	--c-btn: #f4f1ea;
	--c-btn-ink: #0b1220;
	--c-btn-hover: #ffffff;

	--c-panel: #131d33;

	--shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
	--shadow: 0 24px 60px -30px rgba(0, 0, 0, .6);
	--shadow-lg: 0 40px 90px -40px rgba(0, 0, 0, .7);
	--glow: radial-gradient(60% 60% at 70% 20%, rgba(247, 183, 51, .14), transparent 70%), radial-gradient(50% 50% at 15% 30%, rgba(142, 162, 255, .12), transparent 70%);

	color-scheme: dark;
}

/* Logged-in admin bar: keep the sticky header, menu and sidebars below it.
   WordPress shows it at 32px, 46px on tablets/phones, and lets it scroll away below 600px. */
:root:has(body.admin-bar) { --admin-bar: 32px; }
@media (max-width: 782px) { :root:has(body.admin-bar) { --admin-bar: 46px; } }
@media (max-width: 600px) { :root:has(body.admin-bar) { --admin-bar: 0px; } }

/* Bangla: Hind Siliguri for Bengali glyphs, Inter for Latin */
html[lang^="bn"] {
	--font-head: "Hind Siliguri", "Gilroy", "Lato", system-ui, sans-serif;
	--font-body: "Hind Siliguri", "Inter", system-ui, sans-serif;
	--font-ui: "Hind Siliguri", "Lato", system-ui, sans-serif;
	--fw-display: 600;
}

/* ----------------------------------------------------------
   2. Base
   ---------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--admin-bar) + var(--header-h) + 16px); }

body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

html[lang^="bn"] body { line-height: 1.75; }

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
p { margin: 0 0 1em; }
ul, ol { padding: 0; margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; font-family: var(--font-head); font-weight: var(--fw-title); line-height: 1.15; letter-spacing: -.02em; color: var(--c-ink); }
em { font-style: normal; }
::selection { background: var(--c-accent); color: #0b1220; }

:focus-visible { outline: 2px solid var(--c-accent-strong); outline-offset: 3px; border-radius: 6px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
	position: absolute; left: 16px; top: -60px; z-index: 1000;
	padding: 10px 16px; border-radius: var(--radius-sm);
	background: var(--c-btn); color: var(--c-btn-ink); font-weight: 600; text-decoration: none;
	transition: top .2s;
}
.skip-link:focus { top: 12px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ----------------------------------------------------------
   3. Layout & sections
   ---------------------------------------------------------- */
.site-container { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.site-container--narrow { max-width: calc(var(--wrap-narrow) + var(--gutter) * 2); }

.section { position: relative; padding-top: var(--pt, var(--section-y)); padding-bottom: var(--pb, var(--section-y)); }
.section--alt { background: var(--c-bg-alt); }
.section--dark { background: var(--c-panel); color: var(--c-panel-ink); }
.section--dark .section-title, .section--dark h3 { color: var(--c-panel-ink); }
.section--dark .section-intro { color: var(--c-panel-muted); }

.section-head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head-row .section-head { margin-bottom: 0; }
.section-head-row__link { margin-bottom: 6px; }
.section-foot { margin-top: 40px; text-align: center; }

.eyebrow {
	display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
	font-family: var(--font-ui); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
	color: var(--c-accent-ink);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--grad-accent); }
.eyebrow--light { color: var(--c-accent); }
html[lang^="bn"] .eyebrow { letter-spacing: .02em; font-size: 14px; }

.section-title { font-size: clamp(30px, 4.2vw, 46px); }
.section-title em, .hero__title em, .page-header__title em, .cta__title em {
	background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700;
}
.section-intro { font-size: 18px; color: var(--c-muted); margin: 0; }

.card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.empty-state { padding: 24px; border: 1px dashed var(--c-line-2); border-radius: var(--radius); color: var(--c-muted); text-align: center; }

/* ----------------------------------------------------------
   4. Buttons, badges, tags
   ---------------------------------------------------------- */
.btn {
	--btn-bg: var(--c-btn); --btn-ink: var(--c-btn-ink); --btn-line: transparent;
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 46px; padding: 10px 20px; border-radius: 12px; border: 1px solid var(--btn-line);
	background: var(--btn-bg); color: var(--btn-ink);
	font-family: var(--font-ui); font-size: 15px; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap;
	transition: transform .2s var(--ease), background-color .2s, box-shadow .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--c-btn-hover); }
.btn--secondary { --btn-bg: var(--c-surface); --btn-ink: var(--c-ink); --btn-line: var(--c-line-2); }
.btn--secondary:hover { border-color: var(--c-ink); }
.btn--light { --btn-bg: #f4f1ea; --btn-ink: #0b1220; }
.btn--outline-light { --btn-bg: transparent; --btn-ink: #f4f1ea; --btn-line: rgba(244, 241, 234, .3); }
.btn--outline-light:hover { border-color: #f4f1ea; }
.btn--lg { min-height: 54px; padding: 14px 26px; font-size: 16px; border-radius: 14px; }
.btn--block { width: 100%; }
.btn .icon--upwork { width: 22px; height: 22px; }
.btn__arrow { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.btn:hover .btn__arrow { transform: translate(2px, -2px); }

.arrow-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-ui); font-weight: 700; text-decoration: none; color: var(--c-ink); }
.arrow-link .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.arrow-link:hover .icon { transform: translateX(4px); }
.arrow-link:hover span { text-decoration: underline; }

.icon-btn {
	display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0;
	border: 1px solid var(--c-line); border-radius: 12px; background: var(--c-surface); color: var(--c-ink);
	transition: border-color .2s, background-color .2s;
}
.icon-btn:hover { border-color: var(--c-line-2); }
.icon-btn .icon { width: 20px; height: 20px; }

.badge {
	display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--radius-pill);
	background: var(--c-surface); border: 1px solid var(--c-line); color: var(--c-ink-2);
	font-family: var(--font-ui); font-size: 13px; font-weight: 700; line-height: 1.2;
}
.badge .icon { width: 16px; height: 16px; color: var(--c-accent-strong); }
.badge--accent { background: var(--c-accent-soft); border-color: transparent; color: var(--c-accent-ink); }
.badge--success { background: var(--c-green-soft); border-color: transparent; color: var(--c-green); }

.status-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--c-green); flex: none; }
.status-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: var(--c-green); opacity: .35; animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .5; } 100% { transform: scale(1.8); opacity: 0; } }

.status-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: var(--radius-pill); background: var(--c-green-soft); color: var(--c-green); font-family: var(--font-ui); font-size: 14px; font-weight: 700; }

.chip { display: inline-block; padding: 3px 10px; border-radius: var(--radius-pill); background: var(--c-accent-soft); color: var(--c-accent-ink); font-family: var(--font-ui); font-size: 12px; font-weight: 700; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.tag-list li { padding: 6px 12px; border-radius: var(--radius-pill); background: var(--c-surface-2); border: 1px solid var(--c-line); font-family: var(--font-ui); font-size: 14px; font-weight: 700; color: var(--c-ink-2); }
.tag-list--sm li { padding: 3px 10px; font-size: 12px; }

.check-list { display: grid; gap: 10px; list-style: none; margin: 0 0 1.5em; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { width: 20px; height: 20px; margin-top: 3px; padding: 3px; border-radius: 50%; background: var(--c-green-soft); color: var(--c-green); stroke-width: 2.4; }
.check-list--sm { gap: 8px; font-size: 15px; color: var(--c-ink-2); margin: 0; }
.check-list--sm .icon { width: 18px; height: 18px; margin-top: 2px; }

.stars { display: inline-flex; gap: 2px; color: var(--c-star); }
.stars .icon { width: 16px; height: 16px; }

.icon-box { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--c-ink); color: var(--c-bg); flex: none; }
.icon-box .icon { width: 24px; height: 24px; }
.icon-box--soft { background: var(--c-accent-soft); color: var(--c-accent-ink); }

/* ----------------------------------------------------------
   5. Header & navigation
   ---------------------------------------------------------- */
.site-header {
	position: sticky; top: var(--admin-bar); z-index: 100;
	background: var(--c-header); border-bottom: 1px solid transparent;
	-webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
	transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--c-line); box-shadow: var(--shadow-sm); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand__avatar { position: relative; width: 42px; height: 42px; flex: none; }
.brand__avatar img { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; }
.brand__status { position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border-radius: 50%; background: var(--c-green); border: 2px solid var(--c-bg); }
.brand__text { display: grid; line-height: 1.2; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 17px; }
.brand__role { font-family: var(--font-ui); font-size: 12.5px; color: var(--c-muted); }

.main-nav__list { display: flex; gap: 4px; list-style: none; }
.main-nav__list a {
	display: block; padding: 8px 14px; border-radius: 10px;
	font-family: var(--font-ui); font-size: 15px; font-weight: 700; color: var(--c-ink-2); text-decoration: none;
	transition: background-color .2s, color .2s;
}
.main-nav__list a:hover { background: var(--c-surface); color: var(--c-ink); }
.main-nav__list .current-menu-item > a,
.main-nav__list .current_page_parent > a,
.main-nav__list .current-menu-ancestor > a { color: var(--c-ink); background: var(--c-surface); box-shadow: inset 0 0 0 1px var(--c-line); }
.main-nav__mobile-cta { display: none; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-switch { display: inline-flex; padding: 3px; border: 1px solid var(--c-line); border-radius: 12px; background: var(--c-surface); }
.lang-switch a { padding: 6px 10px; border-radius: 9px; font-family: var(--font-ui); font-size: 13px; font-weight: 700; line-height: 1.2; color: var(--c-muted); text-decoration: none; }
.lang-switch a.is-active { background: var(--c-ink); color: var(--c-bg); }

.theme-toggle__moon { display: none; }
:root[data-theme="dark"] .theme-toggle__sun { display: none; }
:root[data-theme="dark"] .theme-toggle__moon { display: block; }

.nav-toggle { display: none; }
.nav-toggle__close { display: none; }

/* ----------------------------------------------------------
   6. Hero & page header
   ---------------------------------------------------------- */
.hero { overflow: hidden; padding-top: var(--pt, clamp(48px, 7vw, 88px)); }
.hero__glow { position: absolute; inset: 0; background: var(--glow); pointer-events: none; }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 80px); align-items: center; }

.hero__badges { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-bottom: 24px; }
.hero__title { font-size: clamp(40px, 6.2vw, 72px); font-weight: var(--fw-display); line-height: 1.04; letter-spacing: -.035em; margin-bottom: 22px; }
html[lang^="bn"] .hero__title { line-height: 1.25; letter-spacing: 0; }
.hero__text { max-width: 560px; font-size: clamp(17px, 1.6vw, 20px); color: var(--c-muted); margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero__highlights { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; font-family: var(--font-ui); font-size: 15px; font-weight: 700; color: var(--c-ink-2); }
.hero__highlights li { display: flex; align-items: center; gap: 8px; }
.hero__highlights .icon { width: 18px; height: 18px; color: var(--c-green); stroke-width: 2.4; }

.hero__visual { position: relative; justify-self: center; width: 100%; max-width: 440px; }
.hero__portrait { position: relative; border-radius: 32px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--grad-accent); box-shadow: var(--shadow-lg); }
.hero__portrait::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.hero__image { width: 100%; height: 100%; object-fit: cover; }
.hero__card {
	position: absolute; display: grid; gap: 2px; padding: 14px 18px; border-radius: 18px;
	background: var(--c-surface); border: 1px solid var(--c-line); box-shadow: var(--shadow);
	font-family: var(--font-ui);
}
.hero__card--rating { left: -32px; bottom: 36px; }
.hero__card--rating strong { font-family: var(--font-head); font-size: 26px; line-height: 1.1; }
.hero__card--rating span:last-child { font-size: 13px; color: var(--c-muted); }
.hero__card--stack { right: -22px; top: 32px; display: flex; gap: 10px; color: var(--c-accent-ink); }
.hero__card--stack .icon { width: 26px; height: 26px; }

.page-header { position: relative; overflow: hidden; padding-top: var(--pt, clamp(48px, 7vw, 88px)); padding-bottom: var(--pb, clamp(40px, 6vw, 72px)); }
.page-header .site-container { position: relative; }
.page-header__title { max-width: 900px; font-size: clamp(36px, 5.4vw, 62px); font-weight: var(--fw-display); line-height: 1.08; letter-spacing: -.03em; margin-bottom: 18px; }
html[lang^="bn"] .page-header__title { line-height: 1.3; letter-spacing: 0; }
.page-header__intro { max-width: 700px; font-size: clamp(17px, 1.6vw, 20px); color: var(--c-muted); margin-bottom: 0; }
.page-header .hero__highlights { margin-top: 24px; }
.page-header__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.page-header__search { max-width: 460px; margin-top: 28px; }

.breadcrumbs { margin-bottom: 18px; font-family: var(--font-ui); font-size: 14px; color: var(--c-dim); }
.breadcrumbs:empty { display: none; }
.breadcrumbs a { color: var(--c-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--c-ink); text-decoration: underline; }
.breadcrumbs .separator { margin: 0 6px; }

/* ----------------------------------------------------------
   7. Trust bar, services, features
   ---------------------------------------------------------- */
.trust-bar { padding-top: var(--pt, 8px); padding-bottom: var(--pb, 24px); }
/* 1px gaps over the line colour draw the dividers, whatever the number of columns. */
.trust-bar__list {
	display: grid; grid-template-columns: repeat(6, auto); gap: 1px; list-style: none; overflow: hidden; /* auto: each column fits its value on one line */
	background: var(--c-line); border: 1px solid var(--c-line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.trust-bar__item { display: grid; align-content: start; gap: 2px; padding: 22px 24px; background: var(--c-surface); }
.trust-bar__value { font-family: var(--font-head); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; letter-spacing: -.02em; white-space: nowrap; }
.trust-bar__label { font-family: var(--font-ui); font-size: 14px; color: var(--c-muted); }
.trust-bar__note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 16px 0 0; font-family: var(--font-ui); font-size: 14px; color: var(--c-muted); }
.trust-bar__note .icon { color: #14a800; width: 22px; height: 22px; }

.services__grid { display: grid; gap: 20px; }
.services__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.services__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.services__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service-card {
	display: flex; flex-direction: column; gap: 14px; padding: 28px;
	background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-lg);
	transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--c-line-2); }
.service-card--featured { background: linear-gradient(var(--c-surface), var(--c-surface)) padding-box, var(--grad-accent) border-box; border: 1.5px solid transparent; }
.service-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.service-card__title { font-size: 21px; margin: 4px 0 0; }
.service-card__text { color: var(--c-muted); margin: 0; font-size: 16px; }
.service-card__link { margin-top: auto; padding-top: 8px; }

.features__wrap { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.features--stacked .features__wrap { grid-template-columns: 1fr; }
.features__head { position: sticky; top: calc(var(--admin-bar) + var(--header-h) + 32px); }
.features--stacked .features__head { position: static; }
.features__button { margin-top: 28px; }
.features__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.features--stacked .features__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature { display: grid; gap: 14px; align-content: start; padding: 24px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-lg); }
.feature__title { font-size: 18px; margin-bottom: 6px; }
.feature__text { margin: 0; color: var(--c-muted); font-size: 15.5px; }

/* ----------------------------------------------------------
   8. Work
   ---------------------------------------------------------- */
.work-grid__items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.work-grid__items--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.project-card { display: flex; flex-direction: column; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.project-card__media { position: relative; display: block; padding: 34px 18px 0; background: var(--c-surface-2); border-bottom: 1px solid var(--c-line); overflow: hidden; }
.project-card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border-radius: 10px 10px 0 0; box-shadow: var(--shadow); transition: transform .6s var(--ease); }
.project-card:hover .project-card__media img { transform: translateY(-6px) scale(1.01); }
.project-card__media .browser-frame__dots { position: absolute; top: 14px; left: 20px; }
.project-card__body { display: grid; gap: 10px; padding: 22px 24px 26px; }
.project-card__type { margin: 0; font-family: var(--font-ui); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-accent-ink); }
.project-card__title { font-size: 22px; margin: 0; }
.project-card__title a { text-decoration: none; }
.project-card__title a::after { content: ""; position: absolute; inset: 0; }
.project-card { position: relative; }
.project-card__excerpt { margin: 0; color: var(--c-muted); font-size: 15.5px; }

.browser-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--c-line); background: var(--c-surface-2); box-shadow: var(--shadow-lg); padding-top: 34px; position: relative; }
.browser-frame img { width: 100%; }
.browser-frame__dots { position: absolute; top: 13px; left: 16px; display: flex; gap: 6px; }
.browser-frame__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--c-line-2); }
.browser-frame__dots i:first-child { background: #f87171; }
.browser-frame__dots i:nth-child(2) { background: #fbbf24; }
.browser-frame__dots i:nth-child(3) { background: #34d399; }

.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter-chips a { padding: 8px 16px; border-radius: var(--radius-pill); border: 1px solid var(--c-line); background: var(--c-surface); font-family: var(--font-ui); font-weight: 700; font-size: 14px; text-decoration: none; color: var(--c-ink-2); }
.filter-chips a.is-active, .filter-chips a:hover { background: var(--c-ink); color: var(--c-bg); border-color: var(--c-ink); }

/* ----------------------------------------------------------
   9. Testimonials
   ---------------------------------------------------------- */
.testimonials__grid { columns: 3 300px; column-gap: 20px; }
.review-card { break-inside: avoid; display: grid; gap: 16px; margin: 0 0 20px; padding: 26px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-lg); }
.review-card__quote { margin: 0; font-size: 17px; line-height: 1.6; color: var(--c-ink); }
.review-card__quote p { margin: 0; }
.review-card__meta { display: grid; gap: 4px; padding-top: 14px; border-top: 1px solid var(--c-line); font-family: var(--font-ui); }
.review-card__project { font-weight: 700; font-size: 15px; }
.review-card__source { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--c-muted); }
.review-card__source .icon { width: 18px; height: 18px; color: #14a800; }
.rating-summary { display: flex; align-items: center; gap: 14px; padding: 14px 20px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); font-family: var(--font-ui); }
.rating-summary strong { font-family: var(--font-head); font-size: 40px; line-height: 1; }
.rating-summary div { display: grid; gap: 2px; font-size: 14px; color: var(--c-muted); }

/* ----------------------------------------------------------
   10. Process, Tech stack
   ---------------------------------------------------------- */
.process__steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; list-style: none; counter-reset: step; }
.process__step { position: relative; padding: 28px 24px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-lg); }
.process__num { display: inline-block; margin-bottom: 18px; font-family: var(--font-head); font-size: 44px; font-weight: 700; line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.process__title { font-size: 19px; }
.process__text { margin: 0; color: var(--c-muted); font-size: 15.5px; }

.tech-stack__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.stack-group { padding: 24px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-lg); }
.stack-group__title { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-family: var(--font-head); font-weight: 700; font-size: 18px; }
.stack-group__title .icon { color: var(--c-accent-ink); }

/* ----------------------------------------------------------
   11. About, FAQ
   ---------------------------------------------------------- */
.about__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.about--reverse .about__media { order: 2; }
.about__image { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow-lg); }
.about__text { color: var(--c-ink-2); margin-bottom: 24px; }
.about__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 8px 0 28px; }
.about__stats div { display: flex; flex-direction: column-reverse; padding: 16px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); }
.about__stats dt { font-family: var(--font-ui); font-size: 13px; color: var(--c-muted); }
.about__stats dd { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 26px; line-height: 1.2; }

.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.faq__list { display: grid; gap: 12px; }
.faq__item { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); transition: border-color .2s; }
.faq__item[open] { border-color: var(--c-line-2); box-shadow: var(--shadow-sm); }
.faq__question { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; cursor: pointer; list-style: none; font-family: var(--font-head); font-weight: 700; font-size: 17.5px; }
.faq__question::-webkit-details-marker { display: none; }
.faq__icon { position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--c-surface-2); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--c-ink); border-radius: 2px; transition: transform .25s var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__answer { padding: 0 22px 20px; color: var(--c-muted); }
.faq__answer p:last-child { margin: 0; }

/* ----------------------------------------------------------
   12. CTA, Contact & Contact Form 7
   ---------------------------------------------------------- */
.cta__panel {
	position: relative; overflow: hidden; padding: clamp(40px, 6vw, 72px); border-radius: 32px; text-align: center;
	background: var(--c-panel); color: var(--c-panel-ink);
	background-image: radial-gradient(60% 80% at 85% 0%, rgba(247, 183, 51, .32), transparent 60%), radial-gradient(50% 70% at 0% 100%, rgba(59, 91, 219, .28), transparent 60%);
}
.cta__title { max-width: 760px; margin: 0 auto 14px; font-size: clamp(30px, 4.4vw, 50px); color: var(--c-panel-ink); }
.cta__text { max-width: 560px; margin: 0 auto 30px; font-size: 18px; color: var(--c-panel-muted); }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.contact__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact__details { display: grid; gap: 16px; list-style: none; margin-bottom: 28px; }
.contact__details li { display: flex; align-items: center; gap: 14px; }
.contact__details small { display: block; font-family: var(--font-ui); font-size: 13px; color: var(--c-muted); }
.contact__details a, .contact__details strong { font-weight: 600; text-decoration: none; }
.contact__details a:hover { text-decoration: underline; }
.upwork-card { display: grid; gap: 14px; justify-items: start; padding: 24px; border-radius: var(--radius-lg); background: var(--c-surface); border: 1px solid var(--c-line); }
.upwork-card p { margin: 0; color: var(--c-muted); }
.upwork-card__logo { width: 34px; height: 34px; color: #14a800; }
.contact__form { padding: clamp(24px, 4vw, 40px); }

.wpcf7-form { display: grid; gap: 18px; }
.wpcf7-form .hidden-fields-container { display: none; }
.wpcf7 form .wpcf7-response-output { display: none; }
/* Success is shown in the popup below; errors keep the inline message. */
.wpcf7 form:is(.invalid, .failed, .spam, .unaccepted, .aborted, .payment-required) .wpcf7-response-output { display: block; border: 1px solid; }

/* Success popup after the contact form is sent */
.sent-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; }
.sent-modal[hidden] { display: none; }
.sent-modal__backdrop {
	position: absolute; inset: 0; background: rgba(11, 18, 32, .55);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	opacity: 0; transition: opacity .35s var(--ease);
}
.sent-modal__panel {
	position: relative; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto;
	padding: clamp(28px, 5vw, 44px); border-radius: 28px; text-align: center;
	background: radial-gradient(120% 60% at 50% 0%, var(--c-green-soft), transparent 60%), var(--c-surface);
	border: 1px solid var(--c-line); box-shadow: var(--shadow-lg);
	opacity: 0; transform: translateY(24px) scale(.96);
	transition: opacity .4s var(--ease), transform .5s var(--ease);
}
.sent-modal__panel:focus { outline: none; }
.sent-modal.is-open .sent-modal__backdrop { opacity: 1; }
.sent-modal.is-open .sent-modal__panel { opacity: 1; transform: none; }

.sent-modal__icon { width: 76px; height: 76px; margin: 4px auto 18px; border-radius: 50%; background: var(--c-green-soft); display: grid; place-items: center; }
.sent-modal__icon svg { width: 52px; height: 52px; fill: none; stroke: var(--c-green); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.sent-modal__icon circle { stroke-dasharray: 151; stroke-dashoffset: 151; }
.sent-modal__icon path { stroke-dasharray: 36; stroke-dashoffset: 36; }
.sent-modal.is-open .sent-modal__icon circle { animation: sent-draw .6s .15s var(--ease) forwards; }
.sent-modal.is-open .sent-modal__icon path { animation: sent-draw .4s .6s var(--ease) forwards; }
@keyframes sent-draw { to { stroke-dashoffset: 0; } }

.sent-modal__title { margin: 0 0 10px; font-size: clamp(24px, 3.4vw, 30px); }
.sent-modal__text { margin: 0 0 22px; color: var(--c-muted); }
.sent-modal__text strong { color: var(--c-ink); font-weight: 600; word-break: break-all; }
.sent-modal__label { margin: 0 0 10px; font-family: var(--font-ui); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-accent-ink); }
.sent-modal__steps { display: grid; gap: 10px; margin: 0 0 16px; padding: 0; list-style: none; counter-reset: sent; text-align: left; }
.sent-modal__steps li {
	counter-increment: sent; display: flex; gap: 12px; align-items: flex-start;
	padding: 12px 14px; border-radius: 14px; background: var(--c-surface-2); border: 1px solid var(--c-line); font-size: 15px;
}
.sent-modal__steps li::before {
	content: counter(sent); flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
	background: var(--c-accent-soft); color: var(--c-accent-ink); font-family: var(--font-ui); font-size: 13px; font-weight: 700;
}
.sent-modal__tip { margin: 0 0 24px; font-size: 13px; color: var(--c-dim); }
.sent-modal__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
body.modal-open { overflow: hidden; }

@media (max-width: 680px) {
	.sent-modal { align-items: end; padding: 0; }
	.sent-modal__panel { border-radius: 24px 24px 0 0; transform: translateY(40px); }
	.sent-modal__actions .btn { width: 100%; }
}
.wpcf7-form p { margin: 0; }
.wpcf7-form .form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.wpcf7-form label { display: grid; gap: 8px; font-family: var(--font-ui); font-size: 14px; font-weight: 700; color: var(--c-ink-2); }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
	width: 100%; padding: 13px 15px; border: 1px solid var(--c-line-2); border-radius: 12px;
	background: var(--c-surface); color: var(--c-ink); font: 400 16px/1.4 var(--font-body);
	transition: border-color .2s, box-shadow .2s;
}
.wpcf7-form textarea { min-height: 150px; resize: vertical; }
/* Own arrow instead of the browser's, which sits against the field's edge. */
.wpcf7-form select {
	appearance: none; -webkit-appearance: none; padding-right: 46px; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237a8497' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 16px;
}
.wpcf7-form input:focus, .wpcf7-form select:focus, .wpcf7-form textarea:focus { outline: none; border-color: var(--c-accent-strong); box-shadow: 0 0 0 4px var(--c-accent-soft); }
.wpcf7-form .wpcf7-submit {
	justify-self: start; min-height: 52px; padding: 14px 28px; border: 0; border-radius: 14px;
	background: var(--c-btn); color: var(--c-btn-ink); font: 700 16px/1 var(--font-ui); cursor: pointer;
	transition: transform .2s var(--ease), background-color .2s;
}
.wpcf7-form .wpcf7-submit:hover { background: var(--c-btn-hover); transform: translateY(-1px); }
/* Submit row: button + spinner side by side. The spinner shows only while the form is sending. */
.wpcf7-form .form-submit { display: flex; align-items: center; gap: 14px; }
.wpcf7-form .wpcf7-spinner {
	display: inline-block; width: 26px; height: 26px; margin: 0; flex: none;
	border-radius: 50%; border: 3px solid var(--c-line-2); border-top-color: var(--c-accent-strong);
	visibility: hidden; opacity: 0; transition: opacity .2s var(--ease);
}
.wpcf7 form.submitting .wpcf7-spinner { visibility: visible; opacity: 1; animation: sk-spin .7s linear infinite; }
.wpcf7 form.submitting .wpcf7-submit { opacity: .7; cursor: progress; pointer-events: none; }
@keyframes sk-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
	.wpcf7 form.submitting .wpcf7-spinner { animation: sk-spin 1.5s linear infinite !important; }
}
.wpcf7-not-valid-tip { margin-top: 6px; font-size: 13px; font-weight: 600; color: #dc2626; }
.wpcf7 form .wpcf7-response-output { margin: 4px 0 0; padding: 12px 16px; border-radius: 12px; font-size: 15px; }
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--c-green); background: var(--c-green-soft); color: var(--c-green); }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output { border-color: #f59e0b; background: var(--c-accent-soft); }
/* Cloudflare Turnstile: usually invisible; shows a small check only when a visitor looks suspicious. */
.wpcf7-form .form-turnstile:empty { display: none; }
.wpcf7-form .wpcf7-turnstile { min-height: 0; }
.wpcf7-form .wpcf7-turnstile iframe { max-width: 100%; border-radius: 12px; }
.wpcf7-form .form-note { font-size: 13px; color: var(--c-muted); }
.screen-reader-response { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

/* ----------------------------------------------------------
   13. Journal & articles
   ---------------------------------------------------------- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card { position: relative; display: flex; flex-direction: column; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card__media { display: block; aspect-ratio: 1200 / 630; background: var(--c-surface-2); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__placeholder { display: grid; place-items: center; height: 100%; background: var(--glow), var(--c-surface-2); color: var(--c-accent-ink); }
.post-card__placeholder .icon { width: 42px; height: 42px; }
.post-card__body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 22px 24px 24px; }
.post-card__meta { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--font-ui); font-size: 13px; color: var(--c-muted); }
.post-card__title { margin: 0; font-size: 20px; line-height: 1.3; }
.post-card__title a { text-decoration: none; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; }
.post-card__excerpt { margin: 0; font-size: 15.5px; color: var(--c-muted); }
.post-card__date { margin-top: auto; font-family: var(--font-ui); font-size: 13px; color: var(--c-dim); }

.pagination { margin-top: 48px; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--c-line); background: var(--c-surface); font-family: var(--font-ui); font-weight: 700; text-decoration: none; }
.page-numbers.current { background: var(--c-ink); color: var(--c-bg); border-color: var(--c-ink); }

.search-form { position: relative; }
.search-form .icon { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--c-dim); }
.search-form input[type="search"] { width: 100%; padding: 14px 16px 14px 46px; border: 1px solid var(--c-line-2); border-radius: 14px; background: var(--c-surface); color: var(--c-ink); font: 400 16px var(--font-body); }
.search-form input[type="search"]:focus { outline: none; border-color: var(--c-accent-strong); box-shadow: 0 0 0 4px var(--c-accent-soft); }

.article__header { padding: clamp(40px, 6vw, 72px) 0 32px; }
.article__title { font-size: clamp(34px, 5vw, 54px); font-weight: var(--fw-display); line-height: 1.1; letter-spacing: -.03em; }
html[lang^="bn"] .article__title { line-height: 1.3; letter-spacing: 0; }
.article__lead { font-size: 20px; color: var(--c-muted); }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 24px; font-family: var(--font-ui); font-size: 14px; color: var(--c-muted); }
.article__author { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--c-ink); }
.article__author img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.article__cover { margin: 0 auto 48px; }
.article__cover img { width: 100%; border-radius: var(--radius-lg); }
.article__body { padding-bottom: 32px; }
.article__footer { padding-bottom: 24px; }

.entry-content { font-size: 18px; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { font-size: clamp(26px, 3vw, 32px); margin-top: 1.8em; }
.entry-content h3 { font-size: 22px; margin-top: 1.6em; }
.entry-content a { color: var(--c-accent-ink); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
html[lang^="bn"] .entry-content ol { list-style-type: bengali; }
.entry-content li + li { margin-top: .4em; }
.entry-content blockquote { margin-inline: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--c-accent); font-size: 20px; color: var(--c-ink-2); }
.entry-content img { border-radius: var(--radius); }
.entry-content code { padding: 2px 6px; border-radius: 6px; background: var(--c-surface-2); border: 1px solid var(--c-line); font-size: .88em; }
.entry-content pre { overflow-x: auto; padding: 20px; border-radius: var(--radius); background: #0b1220; color: #e2e8f0; font-size: 15px; line-height: 1.6; }
.entry-content pre code { padding: 0; border: 0; background: none; color: inherit; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--c-line); text-align: left; }

.author-box { display: flex; gap: 18px; align-items: center; padding: 24px; border-radius: var(--radius-lg); background: var(--c-surface); border: 1px solid var(--c-line); }
.author-box__avatar { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; flex: none; }
.author-box__label { margin: 0; font-family: var(--font-ui); font-size: 13px; color: var(--c-muted); }
.author-box__name { margin: 0 0 4px; font-family: var(--font-head); font-weight: 700; font-size: 19px; }
.author-box__bio { margin: 0; font-size: 15px; color: var(--c-muted); }

/* Insights article layout: content left, sticky "On this page" + project card right */
.reading-progress { position: fixed; top: var(--admin-bar); left: 0; right: 0; z-index: 101; height: 3px; pointer-events: none; }
.reading-progress span { display: block; width: 100%; height: 100%; background: var(--grad-accent); transform: scaleX(0); transform-origin: 0 50%; }

.article__layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 64px); align-items: start; padding-bottom: 32px; }
.article__body { grid-column: 1; grid-row: 1; min-width: 0; max-width: 760px; }
.article__aside { grid-column: 2; grid-row: 1; align-self: stretch; }
.article__aside-inner { position: sticky; top: calc(var(--admin-bar) + var(--header-h) + 24px); display: grid; gap: 16px; }
.article__header .eyebrow { text-decoration: none; }
.article__header .article__title, .article__header .article__lead { max-width: 900px; }
.article__end-card { display: none; margin: 48px 0 24px; }

.toc { padding: 20px 22px; }
.toc__details summary { list-style: none; }
.toc__details summary::-webkit-details-marker { display: none; }
.toc__title { margin: 0 0 12px; font-family: var(--font-ui); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-dim); cursor: default; }
/* The list scrolls inside the card, so the "Planning a project?" card below always stays fully in view. */
.toc__list {
	display: grid; gap: 2px; margin: 0; padding: 0 4px 0 0; list-style: none; counter-reset: toc;
	max-height: max(160px, calc(100vh - var(--admin-bar) - var(--header-h) - 380px)); overflow-y: auto; overscroll-behavior: contain;
	scrollbar-width: thin; scrollbar-color: var(--c-line-2) transparent;
}
.toc__list li { counter-increment: toc; }
.toc__list a {
	display: flex; gap: 10px; padding: 7px 10px; border-radius: 10px;
	font-size: 14.5px; line-height: 1.45; color: var(--c-muted); text-decoration: none;
	transition: background-color .2s, color .2s;
}
.toc__list a::before { content: counter(toc) "."; flex: none; min-width: 18px; font-family: var(--font-ui); font-weight: 700; color: var(--c-dim); }
html[lang^="bn"] .toc__list a::before { content: counter(toc, bengali) "."; }
.toc__list a:hover { background: var(--c-surface-2); color: var(--c-ink); }
.toc__list a.is-active { background: var(--c-accent-soft); color: var(--c-ink); font-weight: 600; }
.toc__list a.is-active::before { color: var(--c-accent-ink); }

.planning-card {
	padding: 22px; border-radius: var(--radius-lg); border: 1px solid var(--c-line);
	background: radial-gradient(90% 120% at 100% 0%, var(--c-accent-soft), transparent 60%), var(--c-surface);
}
.planning-card__title { margin: 0 0 6px; font-family: var(--font-head); font-size: 20px; font-weight: 700; }
.planning-card__text { margin: 0 0 16px; font-size: 15px; color: var(--c-muted); }

.entry-content h2[id], .entry-content h3[id], .faq[id] { scroll-margin-top: calc(var(--admin-bar) + var(--header-h) + 24px); }
.entry-content .key-takeaways {
	margin: 0 0 2em; padding: 24px 26px; border-radius: var(--radius-lg);
	background: var(--c-surface); border: 1px solid var(--c-line); border-left: 4px solid var(--c-accent);
}
.entry-content .key-takeaways > * + * { margin-top: .6em; }
.entry-content .key-takeaways__title { margin: 0; font-family: var(--font-ui); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-accent-ink); }
.entry-content .key-takeaways ul { margin: 0; }
.entry-content .callout { padding: 18px 22px; border-radius: var(--radius); background: var(--c-blue-soft); color: var(--c-ink-2); }
.entry-content .callout p { margin: 0; }
.entry-content .wp-block-table { margin: 1.6em 0; overflow-x: auto; }
.entry-content .wp-block-table table { min-width: 520px; border: 1px solid var(--c-line); border-radius: var(--radius); border-collapse: separate; border-spacing: 0; overflow: hidden; background: var(--c-surface); }
.entry-content .wp-block-table thead { border: 0; }
.entry-content .wp-block-table th { background: var(--c-surface-2); font-family: var(--font-ui); font-size: 14px; font-weight: 700; }
.entry-content .wp-block-table td, .entry-content .wp-block-table th { border: 0; border-bottom: 1px solid var(--c-line); }
.entry-content .wp-block-table tr:last-child td { border-bottom: 0; }
.entry-content .faq { padding: 48px 0 8px; }
.entry-content .faq .site-container { padding: 0; }
.entry-content .faq__grid { grid-template-columns: 1fr; gap: 24px; }
.entry-content .faq .section-head { margin-bottom: 0; }


.post-grid--featured .post-card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
/* The whole image always shows: if the text is taller, a band fills the space above and below it. */
.post-grid--featured .post-card:first-child .post-card__media { aspect-ratio: auto; display: flex; align-items: center; background: var(--c-media-band); }
.post-grid--featured .post-card:first-child .post-card__media img { height: auto; aspect-ratio: 1200 / 630; }
.post-grid--featured .post-card:first-child .post-card__body { justify-content: center; padding: clamp(24px, 4vw, 48px); }
.post-grid--featured .post-card:first-child .post-card__date { margin-top: 0; }
.post-grid--featured .post-card:first-child .post-card__title { font-size: clamp(24px, 2.6vw, 32px); }

/* ----------------------------------------------------------
   14. Case study, video
   ---------------------------------------------------------- */
.page-header--case { padding-bottom: 40px; }
.case-study__cover { margin: 0 auto; }
.case-study__layout { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.case-study__facts { position: sticky; top: calc(var(--admin-bar) + var(--header-h) + 24px); padding: 24px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-lg); }
.case-study__facts dl { display: grid; gap: 14px; margin: 0 0 20px; }
.case-study__facts dt, .case-study__facts-label { font-family: var(--font-ui); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-dim); }
.case-study__facts dd { margin: 2px 0 0; font-weight: 600; }
.case-study__facts-label { margin-bottom: 10px; }
.case-study__story h2:first-child { margin-top: 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.gallery-grid figure { margin: 0; }
.gallery-grid img { width: 100%; border-radius: var(--radius); border: 1px solid var(--c-line); }

.video-block__frame { position: relative; max-width: 980px; margin: 0 auto; }
.video-block__frame video, .video-block__play, .video-block__frame iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-lg); background: #000; box-shadow: var(--shadow-lg); }
.video-block__play { position: relative; display: block; padding: 0; overflow: hidden; }
.video-block__poster { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .3s, transform .6s var(--ease); }
.video-block__play:hover .video-block__poster { opacity: 1; transform: scale(1.02); }
.video-block__icon { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: var(--grad-accent); color: #0b1220; box-shadow: 0 10px 40px rgba(0, 0, 0, .35); }
.video-block__icon .icon { width: 30px; height: 30px; margin-left: 4px; }
.video-block__frame figcaption { margin-top: 14px; text-align: center; font-size: 14px; color: var(--c-muted); }

/* ----------------------------------------------------------
   15. Footer, 404, misc
   ---------------------------------------------------------- */
.site-footer { padding: clamp(56px, 7vw, 88px) 0 32px; background: var(--c-bg-alt); border-top: 1px solid var(--c-line); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .7fr) minmax(0, .9fr); gap: 40px; }
.site-footer__name { display: inline-block; margin-bottom: 12px; font-family: var(--font-head); font-size: 26px; font-weight: 700; text-decoration: none; }
.site-footer__about { max-width: 440px; color: var(--c-muted); font-size: 15.5px; }
.site-footer__title { margin-bottom: 14px; font-family: var(--font-ui); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-dim); }
.site-footer__links { display: grid; gap: 10px; list-style: none; }
.site-footer__links a { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-ui); font-weight: 700; font-size: 15px; color: var(--c-ink-2); text-decoration: none; }
.site-footer__links a:hover { color: var(--c-ink); text-decoration: underline; }
.site-footer__social .icon { width: 20px; height: 20px; color: var(--c-muted); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--c-line); font-family: var(--font-ui); font-size: 14px; color: var(--c-dim); }
.site-footer__bottom p { margin: 0; }

.not-found { text-align: center; }
.not-found__code { margin: 0 0 8px; font-family: var(--font-head); font-size: clamp(90px, 18vw, 180px); font-weight: 700; line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.not-found__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

/* Reveal on scroll (only when JS has run and motion is allowed) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
	.js .reveal { opacity: 1; transform: none; }
}

/* ----------------------------------------------------------
   16. Responsive
   ---------------------------------------------------------- */
@media (max-width: 1100px) {
	.services__grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.process__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.header-cta { display: none; }
	.trust-bar__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
	:root { --header-h: 68px; }

	.nav-toggle { display: inline-grid; }
	.main-nav {
		position: fixed; inset: calc(var(--admin-bar) + var(--header-h)) 0 auto 0; z-index: 99;
		display: grid; gap: 16px; padding: 20px var(--gutter) 28px;
		background: var(--c-bg); border-bottom: 1px solid var(--c-line); box-shadow: var(--shadow-lg);
		opacity: 0; visibility: hidden; transform: translateY(-8px);
		transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
		max-height: calc(100vh - var(--admin-bar) - var(--header-h)); overflow-y: auto;
	}
	.nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
	.nav-open .nav-toggle__open { display: none; }
	.nav-open .nav-toggle__close { display: block; }
	.main-nav__list { flex-direction: column; gap: 2px; }
	.main-nav__list a { padding: 14px 12px; font-size: 18px; }
	.main-nav__mobile-cta { display: block; }

	.hero__grid, .about__grid, .contact__grid, .faq__grid, .features__wrap, .case-study__layout { grid-template-columns: 1fr; }
	.hero__visual { max-width: 380px; margin-top: 8px; }
	.features__head, .case-study__facts { position: static; }
	.about--reverse .about__media { order: 0; }
	.article__layout { grid-template-columns: 1fr; }
	.article__aside { grid-column: 1; grid-row: 1; }
	.article__body { grid-row: 2; }
	.article__aside-inner { position: static; }
	.article__aside-card { display: none; }
	.article__end-card { display: block; }
	.toc__details:not([open]) .toc__title { margin: 0; }
	.toc__title { cursor: pointer; display: flex; justify-content: space-between; }
	.toc__title::after { content: "+"; font-size: 18px; line-height: 1; }
	.toc__details[open] .toc__title::after { content: "–"; }
	.toc__list { max-height: none; }
	.post-grid--featured .post-card:first-child { grid-template-columns: 1fr; }
	.post-grid--featured .post-card:first-child .post-card__media { display: block; aspect-ratio: 1200 / 630; }
	.about__media { max-width: 420px; }
	.services__grid--3, .post-grid, .work-grid__items--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.features--stacked .features__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
	body { font-size: 16px; }
	.brand__role { display: none; }
	.header-actions { gap: 6px; }
	.icon-btn { width: 38px; height: 38px; }
	.lang-switch a { padding: 5px 8px; }

	.hero__card--rating { left: -8px; bottom: 20px; }
	.hero__card--stack { right: -6px; }
	.hero__actions .btn { width: 100%; }

	.trust-bar__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.trust-bar__item { padding: 18px; }
	.trust-bar__value { font-size: 5vw; white-space: normal; }

	.services__grid--2, .services__grid--3, .services__grid--4,
	.features__grid, .features--stacked .features__grid,
	.work-grid__items, .work-grid__items--3, .post-grid,
	.process__steps, .gallery-grid { grid-template-columns: 1fr; }
	.about__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wpcf7-form .form-row { grid-template-columns: 1fr; }
	.service-card, .feature, .review-card { padding: 22px; }
	.site-footer__grid { grid-template-columns: 1fr; }
	.cta__actions .btn { width: 100%; }
	.author-box { flex-direction: column; align-items: flex-start; }
}

/* Cloudflare's checkbox is never narrower than 300px. Keep it from stretching the contact form on phones. */
@media (max-width: 980px) {
	.contact__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 400px) {
	.contact__form { padding: 24px 14px; }
}
@media (max-width: 359px) {
	.wpcf7-form { grid-template-columns: minmax(0, 1fr); }
	.wpcf7-form .form-turnstile { overflow: hidden; }
	.form-turnstile .wpcf7-turnstile { transform: scale(.85); transform-origin: left top; }
}
