/*
Theme Name: BlankSlate Child
Theme URI: http://localhost/my-portfolio
Description: Navy-blue portfolio child theme of BlankSlate for Mohd. Ayan Khan — Front-End Web Developer (WordPress, Shopify, React, Elementor, Wix). One shared header/footer, page templates under /template, dark-first navy UI with a light toggle, Font Awesome icons and scroll-driven animation.
Author: Mohd. Ayan Khan
Author URI: https://github.com/ahadpa2than
Template: blankslate
Version: 3.1.0
Requires at least: 5.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v3 or Later
License URI: https://www.gnu.org/licenses/gpl.html
Text Domain: blankslate-child
*/

/* ==========================================================================
   1. Tokens — dark navy by default (confirmed look), light is the opt-in
   ========================================================================== */

:root {
	--bg: #060b16;
	--bg-alt: #0a1120;
	--surface: #0e1728;
	--surface-2: #131e33;
	--surface-3: #1b2942;
	--border: #1e2c47;
	--border-soft: #16223a;
	--text: #eef3fb;
	--text-soft: #bcc9de;
	--muted: #8394ae;

	/* Navy blue primary accent, plus a warm amber second accent used
	   sparingly (logo mark, badges, one highlight per section) so the page
	   does not read as blue-on-blue everywhere. */
	--accent: #5b9bff;
	--accent-2: #38bdf8;
	--accent-3: #7c9cff;
	--warm: #f5a524;
	--warm-soft: rgba(245, 165, 36, .14);
	--on-accent: #04122a;
	--on-warm: #2a1600;
	--link: #5b9bff;
	--danger: #fb7185;
	--accent-soft: rgba(91, 155, 255, .1);
	--accent-line: rgba(91, 155, 255, .28);
	--grad: linear-gradient(100deg, #5b9bff 0%, #7cb2ff 40%, #38bdf8 100%);
	--grad-soft: linear-gradient(150deg, rgba(91, 155, 255, .12), rgba(56, 189, 248, .07));
	--grad-warm: linear-gradient(120deg, #f5a524 0%, #f97316 100%);

	--shadow-sm: 0 1px 2px rgba(0, 0, 0, .55);
	--shadow: 0 12px 34px rgba(0, 0, 0, .5);
	--shadow-lg: 0 28px 70px rgba(0, 0, 0, .62);
	--glow: 0 0 40px rgba(91, 155, 255, .28);

	--grid-line: rgba(255, 255, 255, .028);
	--noise-opacity: .035;

	--font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--display: "Poppins", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

	--max: 1200px;
	--gutter: 24px;
	--radius: 18px;
	--radius-sm: 12px;
	--section-y: 110px;
	--header-h: 76px;

	--ease: cubic-bezier(.22, 1, .36, 1);
	color-scheme: dark;
}

:root[data-theme="light"] {
	--bg: #f8fafd;
	--bg-alt: #eef3f9;
	--surface: #ffffff;
	--surface-2: #f3f7fc;
	--surface-3: #e5ecf6;
	--border: #dbe4f0;
	--border-soft: #e9eff7;
	--text: #081228;
	--text-soft: #2c3a52;
	--muted: #5b6a83;

	--accent: #5b9bff;
	--accent-2: #0284c7;
	--accent-3: #3b82f6;
	--warm: #d97706;
	--warm-soft: rgba(217, 119, 6, .1);
	--danger: #dc2626;
	--on-accent: #04122a;
	--on-warm: #2a1600;
	--link: #1d4ed8;
	--accent-soft: rgba(29, 78, 216, .1);
	--accent-line: rgba(29, 78, 216, .26);
	--grad: linear-gradient(100deg, #1d4ed8 0%, #3b82f6 40%, #0284c7 100%);
	--grad-soft: linear-gradient(150deg, rgba(29, 78, 216, .1), rgba(2, 132, 199, .06));
	--grad-warm: linear-gradient(120deg, #d97706 0%, #ea580c 100%);

	--shadow-sm: 0 1px 2px rgba(8, 18, 40, .05);
	--shadow: 0 12px 34px rgba(8, 18, 40, .09);
	--shadow-lg: 0 28px 70px rgba(8, 18, 40, .13);
	--glow: 0 0 40px rgba(29, 78, 216, .2);

	--grid-line: rgba(8, 18, 40, .04);
	--noise-opacity: .02;

	color-scheme: light;
}

/* ==========================================================================
   2. Base
   ========================================================================== */

/* Was missing entirely — every element with both a width and padding was
   rendering wider than its box (content-box default), which is what caused
   the hero text, stat cards and social row to overflow the viewport on
   narrow phones instead of wrapping. */
*, *::before, *::after { box-sizing: border-box; }

/* No scroll-behavior: smooth here on purpose — main.js animates scrolling with
   its own easing, and the CSS version would fight it frame by frame. The
   padding still keeps native jumps clear of the sticky header. */
html { scroll-padding-top: calc(var(--header-h) + 24px); }

/* Gentle fade-in on first paint so the page settles instead of snapping in. */
@keyframes bsc-page-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

.bsc-js body { animation: bsc-page-in .5s var(--ease) both; }

body {
	position: relative;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.68;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
	transition: background-color .4s var(--ease), color .4s var(--ease);
}

/* Blueprint grid + drifting colour wash, fixed behind all content. */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -2;
	pointer-events: none;
	background-image:
		linear-gradient(var(--grid-line) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
	background-size: 64px 64px;
	-webkit-mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 40%, transparent 100%);
	mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 40%, transparent 100%);
}

/* Film grain — stops large flat areas looking synthetic. */
body::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	opacity: var(--noise-opacity);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: var(--link); text-decoration: none; transition: color .2s var(--ease); }
a:hover, a:focus { color: var(--accent-2); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--display);
	font-weight: 600;
	line-height: 1.18;
	/* Sora is already fairly tight; heavy negative tracking made headings look
	   cramped and over-bold in the system-font fallback. */
	letter-spacing: -.02em;
	color: var(--text);
}

h1 { font-size: clamp(2.25rem, 5.6vw, 4rem); font-weight: 600; letter-spacing: -.03em; }
h2 { font-size: clamp(1.75rem, 3.9vw, 2.6rem); }
h3 { font-size: 1.2rem; font-weight: 500; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

img { max-width: 100%; height: auto; display: block; }

code, pre { font-family: var(--mono); font-size: .9em; }

::selection { background: var(--accent); color: var(--on-accent); }

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

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

.skip-link:focus {
	position: fixed; top: 12px; left: 12px; z-index: 999;
	width: auto; height: auto; clip: auto;
	padding: 10px 18px;
	background: var(--accent); color: var(--on-accent); border-radius: 10px;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 10px; border: 2px solid var(--bg-alt); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ==========================================================================
   3. Keyframes
   ========================================================================== */

@keyframes bsc-fade-up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

@keyframes bsc-float {
	0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
	33%      { transform: translate3d(30px, -36px, 0) scale(1.07); }
	66%      { transform: translate3d(-24px, 22px, 0) scale(.95); }
}

@keyframes bsc-grad { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

@keyframes bsc-shimmer { 0% { background-position: -420px 0; } 100% { background-position: 420px 0; } }

@keyframes bsc-blink { 0%, 45% { opacity: 1; } 50%, 95% { opacity: 0; } }

@keyframes bsc-pulse-ring {
	0%   { transform: scale(.85); opacity: .75; }
	70%  { transform: scale(1.4); opacity: 0; }
	100% { transform: scale(1.4); opacity: 0; }
}

@keyframes bsc-spin-slow { to { transform: rotate(360deg); } }

@keyframes bsc-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@keyframes bsc-scanline { 0% { transform: translateY(-100%); } 100% { transform: translateY(1000%); } }

@keyframes bsc-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ==========================================================================
   4. Layout shell
   ========================================================================== */

#wrapper { display: flex; flex-direction: column; min-height: 100vh; }

/* Flex items default to min-width:auto, which lets a non-wrapping
   descendant (the tech marquee's ticker row, in particular) force this
   whole column wider than the viewport instead of being clipped/scrolled
   internally — this was the actual cause of the mobile horizontal overflow. */
#wrapper > * { min-width: 0; }

#container { flex: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

#content { padding: 56px 0; }

.bsc-full #container { max-width: none; padding: 0; }
.bsc-full #content { padding: 0; }

.bsc-inner { width: 100%; max-width: var(--max); margin: 0 auto; }
.bsc-inner--narrow { max-width: 840px; }

.bsc-section { position: relative; padding: var(--section-y) var(--gutter); }

.bsc-section--alt { background: var(--bg-alt); border-block: 1px solid var(--border-soft); }

.bsc-center { text-align: center; margin-top: 52px; }

/* ==========================================================================
   5. Cursor spotlight + scroll progress
   ========================================================================== */

.bsc-spotlight {
	position: fixed;
	top: 0; left: 0;
	width: 520px; height: 520px;
	margin: -260px 0 0 -260px;
	z-index: 0;
	pointer-events: none;
	opacity: 0;
	background: radial-gradient(circle, rgba(91, 155, 255, .07), transparent 62%);
	transition: opacity .5s var(--ease);
	will-change: transform;
}

.bsc-spotlight.is-on { opacity: 1; }

:root[data-theme="light"] .bsc-spotlight { background: radial-gradient(circle, rgba(29, 78, 216, .07), transparent 62%); }

.bsc-progress {
	position: fixed; top: 0; left: 0; right: 0; z-index: 120;
	height: 3px; pointer-events: none;
}

.bsc-progress__bar {
	display: block; height: 100%; width: 0;
	background: var(--grad);
	box-shadow: 0 0 16px rgba(91, 155, 255, .7);
	transition: width .1s linear;
}

/* ==========================================================================
   6. Header
   ========================================================================== */

#header {
	position: sticky; top: 0; z-index: 100;
	background: color-mix(in srgb, var(--bg) 72%, transparent);
	border-bottom: 1px solid transparent;
	transition: background-color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}

@supports (backdrop-filter: blur(16px)) { #header { backdrop-filter: saturate(180%) blur(18px); } }

#header.is-stuck {
	background: color-mix(in srgb, var(--bg) 90%, transparent);
	border-bottom-color: var(--border);
	box-shadow: var(--shadow);
}

.bsc-header__inner {
	display: flex; align-items: center; justify-content: space-between; gap: 20px;
	width: 100%; max-width: var(--max); min-height: var(--header-h);
	/*margin: 0 auto; padding: 12px var(--gutter);*/
}

.bsc-header__actions { display: flex; align-items: center; gap: 12px; }

.bsc-logo { display: inline-flex; align-items: center; gap: 12px; }
.bsc-logo:hover { text-decoration: none; }

.bsc-logo__mark {
	position: relative;
	display: grid; place-items: center;
	width: 44px; height: 44px;
	background: transparent;
	border: 1.5px solid var(--text);
	border-radius: 50%;
	transition: transform .35s var(--ease), background-color .35s var(--ease);
}

.bsc-logo:hover .bsc-logo__mark { background: var(--surface-2); }

.bsc-logo__initials {
	font-family: var(--display);
	font-size: .92rem; font-weight: 600;
	letter-spacing: -.02em;
	color: var(--text);
}

.bsc-logo:hover .bsc-logo__mark { transform: rotate(-8deg) scale(1.07); }

.bsc-logo--image img { display: block; height: 44px; width: auto; max-width: 220px; object-fit: contain; }

.bsc-logo__text { display: flex; flex-direction: column; line-height: 1.25; }
.bsc-logo__name { font-family: var(--display); font-size: 1rem; font-weight: 700; letter-spacing: -.02em; color: var(--text); }
.bsc-logo__role { font-size: .73rem; color: var(--muted); }

.bsc-nav__panel { display: flex; align-items: center; gap: 22px; }

.bsc-nav ul, .bsc-menu {
	display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
	list-style: none; margin: 0; padding: 0;
}

.bsc-nav a {
	position: relative;
	display: inline-block;
	padding: 8px 14px;
	font-size: .93rem; font-weight: 550;
	color: var(--text-soft);
	border-radius: 10px;
	transition: color .2s var(--ease), background-color .2s var(--ease);
}

.bsc-nav a::after {
	content: "";
	position: absolute; left: 14px; right: 14px; bottom: 3px;
	height: 2px; border-radius: 2px;
	background: var(--accent);
	transform: scaleX(0); transform-origin: left;
	transition: transform .3s var(--ease);
}

.bsc-nav a:hover { color: var(--text); background: var(--surface-2); }
.bsc-nav a:hover::after { transform: scaleX(1); }

.bsc-nav .current-menu-item > a,
.bsc-nav .current_page_item > a { color: var(--link); }
.bsc-nav .current-menu-item > a::after,
.bsc-nav .current_page_item > a::after { transform: scaleX(1); }

.bsc-nav__cta { color: var(--on-accent) !important; }
.bsc-nav__cta::after { display: none; }
.bsc-nav__cta:hover { color: var(--on-accent) !important; }

/* `.bsc-nav a:hover` (above) paints every nav link with a dark surface on
   hover; on the Hire Me button that made its dark text vanish. The button
   keeps a solid, slightly lighter accent on hover instead. */
.bsc-nav a.bsc-nav__cta:hover,
.bsc-nav a.bsc-nav__cta:focus-visible {
	background: var(--accent-3);
	color: var(--on-accent) !important;
}

.bsc-theme-toggle {
	position: relative;
	display: grid; place-items: center;
	width: 42px; height: 42px; padding: 0;
	color: var(--text-soft);
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: 12px;
	cursor: pointer;
	overflow: hidden;
	transition: color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}

.bsc-theme-toggle:hover { color: var(--accent); border-color: var(--accent-line); transform: translateY(-2px); }

.bsc-theme-toggle__icon {
	position: absolute;
	display: grid; place-items: center;
	transition: transform .45s var(--ease), opacity .3s var(--ease);
}

.bsc-theme-toggle__icon--sun { transform: none; opacity: 1; }
.bsc-theme-toggle__icon--moon { transform: translateY(130%) rotate(-40deg); opacity: 0; }

:root[data-theme="light"] .bsc-theme-toggle__icon--sun { transform: translateY(-130%) rotate(40deg); opacity: 0; }
:root[data-theme="light"] .bsc-theme-toggle__icon--moon { transform: none; opacity: 1; }

.bsc-nav-toggle {
	display: none;
	width: 42px; height: 42px; padding: 0;
	color: var(--text);
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: 12px;
	cursor: pointer;
}

.bsc-nav-toggle__bars { display: grid; gap: 5px; justify-items: center; }

.bsc-nav-toggle__bars span {
	display: block; width: 18px; height: 2px;
	background: currentColor; border-radius: 2px;
	transition: transform .3s var(--ease), opacity .2s var(--ease);
}

.bsc-nav-open .bsc-nav-toggle__bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.bsc-nav-open .bsc-nav-toggle__bars span:nth-child(2) { opacity: 0; }
.bsc-nav-open .bsc-nav-toggle__bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   7. Buttons and small parts
   ========================================================================== */

.bsc-btn {
	position: relative;
	display: inline-flex; align-items: center; justify-content: center; gap: 9px;
	padding: 14px 28px;
	font-size: .94rem; font-weight: 600;
	letter-spacing: -.01em;
	color: var(--on-accent);
	background: var(--accent);
	border: 0; border-radius: 999px;
	cursor: pointer;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(91, 155, 255, .18);
	transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
}

.bsc-btn i { font-size: .95em; }

.bsc-btn::before {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .5) 50%, transparent 80%);
	transform: translateX(-120%);
	transition: transform .7s var(--ease);
}

.bsc-btn:hover {
	color: var(--on-accent); text-decoration: none;
	transform: translateY(-3px);
	box-shadow: 0 18px 44px rgba(91, 155, 255, .3);
}

.bsc-btn:hover::before { transform: translateX(120%); }

.bsc-btn--ghost {
	background: var(--surface-2);
	color: var(--text);
	box-shadow: inset 0 0 0 1px var(--border);
}

.bsc-btn--ghost:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--accent-line), var(--shadow); }

.bsc-btn--ember { background: var(--accent-2); color: #fff; box-shadow: 0 10px 30px rgba(56, 189, 248, .24); }
.bsc-btn--ember:hover { color: #fff; box-shadow: 0 18px 44px rgba(56, 189, 248, .34); }

.bsc-btn--sm { padding: 10px 20px; font-size: .87rem; }

.bsc-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.bsc-actions--center { justify-content: center; }

.bsc-eyebrow {
	display: inline-flex; align-items: center; gap: 9px;
	margin-bottom: 20px;
	padding: 7px 16px;
	font-size: .73rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
	color: var(--link);
	background: var(--accent-soft);
	border: 1px solid var(--accent-line);
	border-radius: 999px;
}

.bsc-eyebrow--dot::before {
	content: "";
	width: 7px; height: 7px; border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 0 4px var(--accent-soft);
	animation: bsc-pulse-ring 2s ease-out infinite;
}

.bsc-badge {
	display: inline-block;
	margin-left: 10px; padding: 4px 11px;
	font-size: .64rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase;
	vertical-align: middle;
	color: var(--on-warm);
	background: var(--warm);
	border-radius: 999px;
}

.bsc-dot { display: inline-block; width: 3px; height: 3px; margin: 0 9px; vertical-align: middle; background: currentColor; border-radius: 50%; opacity: .6; }

.bsc-taglist { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 18px 0 0; padding: 0; }

.bsc-taglist li {
	padding: 5px 7px;
	font-size: .7rem; font-weight: 560;
	color: var(--text-soft);
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: 8px;
	transition: color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}

.bsc-taglist li:hover { color: var(--link); border-color: var(--accent-line); transform: translateY(-2px); }

.bsc-note { margin-top: 18px; font-size: .85rem; color: var(--muted); }

.bsc-bullets { list-style: none; margin: 18px 0 0; padding: 0; }

.bsc-bullets li {
	position: relative;
	padding-left: 28px; margin-bottom: 10px;
	font-size: .93rem; color: var(--text-soft);
}

.bsc-bullets li::before {
	content: "\f00c";
	font-family: "Font Awesome 6 Free"; font-weight: 900;
	position: absolute; left: 0; top: 0;
	font-size: .78rem;
	color: var(--accent);
}

.bsc-social { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 34px 0 0; padding: 0; }
.bsc-social--center { justify-content: center; }

.bsc-social a {
	display: inline-grid; place-items: center;
	width: 46px; height: 46px;
	font-size: 1.05rem;
	color: var(--text-soft);
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: 14px;
	transition: all .25s var(--ease);
}

.bsc-social a:hover {
	color: var(--on-accent);
	background: var(--accent);
	border-color: var(--accent);
	transform: translateY(-4px);
	box-shadow: var(--glow);
	text-decoration: none;
}

/* ==========================================================================
   8. Section heads with split-word reveal
   ========================================================================== */

.bsc-section-head { max-width: 680px; margin-bottom: 58px; }
.bsc-section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.bsc-section-head p { margin-top: 16px; color: var(--muted); font-size: 1.05rem; }

.bsc-section-head__title { position: relative; display: block; width: fit-content; }
.bsc-section-head--center .bsc-section-head__title { margin-inline: auto; }

.bsc-section-head__title::after {
	content: "";
	position: absolute; left: 0; bottom: -14px;
	width: 68px; height: 4px;
	background: var(--grad); border-radius: 4px;
}

.bsc-section-head--center .bsc-section-head__title::after { left: 50%; transform: translateX(-50%); }

.bsc-word { display: inline-block; }

.bsc-js [data-split] .bsc-word {
	opacity: 0;
	transform: translateY(24px) rotate(2deg);
	transition: opacity .55s var(--ease), transform .55s var(--ease);
	transition-delay: calc(var(--w) * 70ms);
}

.bsc-js [data-split].is-visible .bsc-word,
.bsc-js .is-visible [data-split] .bsc-word { opacity: 1; transform: none; }

/* ==========================================================================
   8b. Floating bubbles — site-wide ambient layer
   ========================================================================== */

/* Bubbles start just below the viewport (bottom: -10vh) and travel up past the
   top, so the whole journey has to be negative Y. */
@keyframes bsc-rise {
	0%   { transform: translate3d(0, 0, 0) scale(.55); opacity: 0; }
	10%  { opacity: .9; }
	85%  { opacity: .9; }
	100% { transform: translate3d(var(--drift, 40px), -118vh, 0) scale(1.15); opacity: 0; }
}

@keyframes bsc-wobble {
	0%, 100% { margin-left: 0; }
	50%      { margin-left: var(--wobble, 26px); }
}

.bsc-bubbles {
	position: fixed;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
}

.bsc-bubble {
	position: absolute;
	bottom: -10vh;
	display: block;
	width: var(--size, 40px);
	height: var(--size, 40px);
	border-radius: 50%;
	background:
		radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .5), rgba(255, 255, 255, .06) 42%, transparent 62%),
		radial-gradient(circle at 50% 50%, rgba(91, 155, 255, .22), rgba(56, 189, 248, .1));
	border: 1px solid rgba(140, 190, 255, .22);
	box-shadow: inset 0 0 18px rgba(140, 190, 255, .16), 0 0 24px rgba(91, 155, 255, .1);
	backdrop-filter: blur(1px);
	animation:
		bsc-rise var(--dur, 26s) linear infinite,
		bsc-wobble calc(var(--dur, 26s) / 4) ease-in-out infinite;
	animation-delay: var(--delay, 0s), var(--delay, 0s);
	will-change: transform;
}

:root[data-theme="light"] .bsc-bubble {
	background:
		radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .85), rgba(255, 255, 255, .2) 42%, transparent 62%),
		radial-gradient(circle at 50% 50%, rgba(29, 78, 216, .13), rgba(2, 132, 199, .07));
	border-color: rgba(29, 78, 216, .16);
	box-shadow: inset 0 0 18px rgba(29, 78, 216, .1), 0 0 20px rgba(29, 78, 216, .07);
}

/* #header is deliberately NOT in this list: it is sticky with z-index 100
   (see section 4). Listing it here used to flatten it to z-index 1, which let
   hero elements (portrait chips, pills) paint over the open mobile menu. */
#container, #footer { position: relative; z-index: 1; }

/* Tinted bands stay slightly translucent, so bubbles still read through them
   instead of vanishing for whole sections at a time. */
.bsc-section--alt,
.bsc-pagehead,
.bsc-marquee {
	background: color-mix(in srgb, var(--bg-alt) 88%, transparent);
}

#footer { background: color-mix(in srgb, var(--bg-alt) 92%, transparent); }

/* ==========================================================================
   9. Orbs
   ========================================================================== */

.bsc-orbs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }

.bsc-orb { position: absolute; display: block; border-radius: 50%; filter: blur(80px); opacity: .28; will-change: transform; }

.bsc-orb--1 { width: 440px; height: 440px; top: -130px; left: -90px; background: #5b9bff; animation: bsc-float 21s ease-in-out infinite; }
.bsc-orb--2 { width: 380px; height: 380px; top: 42%; right: -120px; background: #38bdf8; animation: bsc-float 26s ease-in-out infinite reverse; }
.bsc-orb--3 { width: 320px; height: 320px; bottom: -120px; left: 44%; background: #7c9cff; animation: bsc-float 30s ease-in-out infinite; opacity: .18; }

/* ==========================================================================
   10. Hero
   ========================================================================== */

.bsc-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(72px, 10vw, 128px) var(--gutter) clamp(70px, 8vw, 104px);
	border-bottom: 1px solid var(--border-soft);
}

.bsc-hero__inner {
	position: relative; z-index: 2;
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
	gap: 66px;
	align-items: center;
	width: 100%; max-width: var(--max); margin: 0 auto;
}

.bsc-hero__title { margin-bottom: 16px; }

.bsc-hero__name {
	position: relative;
	background: var(--grad);
	background-size: 220% 220%;
	-webkit-background-clip: text; background-clip: text;
	color: transparent;
	animation: bsc-grad 9s ease infinite;
}

.bsc-hero__typed {
	font-family: var(--display);
	display: flex; align-items: center; gap: 5px;
	min-height: 2.2em;
	font-size: clamp(1.15rem, 2.9vw, 1.7rem);
	font-weight: 680;
	color: var(--text-soft);
	margin-bottom: 22px;
}

.bsc-hero__typed-word { color: var(--link); }

.bsc-hero__cursor {
	display: inline-block;
	width: 3px; height: 1.1em;
	background: var(--accent);
	border-radius: 2px;
	animation: bsc-blink 1.1s steps(1) infinite;
}

.bsc-hero__lead { max-width: 580px; font-size: clamp(1rem, 2vw, 1.12rem); color: var(--muted); }

.bsc-hero__strip {
	display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
	margin-top: 34px; padding-top: 26px;
	border-top: 1px solid var(--border);
	font-size: .82rem; color: var(--muted);
}

.bsc-hero__strip i { color: var(--accent); margin-right: 7px; }

/* Portrait */

.bsc-portrait { position: relative; justify-self: center; width: min(420px, 100%); }

.bsc-portrait__frame {
	position: relative;
	aspect-ratio: 1;
	border-radius: 32% 68% 64% 36% / 42% 38% 62% 58%;
	overflow: hidden;
	box-shadow: var(--shadow-lg);
	animation: bsc-morph 16s ease-in-out infinite;
}

@keyframes bsc-morph {
	0%, 100% { border-radius: 32% 68% 64% 36% / 42% 38% 62% 58%; }
	34%      { border-radius: 64% 36% 42% 58% / 56% 64% 36% 44%; }
	67%      { border-radius: 44% 56% 60% 40% / 36% 48% 52% 64%; }
}

.bsc-portrait__frame img { width: 100%; height: 100%; object-fit: cover; }
.bsc-portrait__frame img.is-bw { filter: grayscale(1) contrast(1.05); }

.bsc-portrait__ring {
	position: absolute; inset: -20px;
	border-radius: 50%;
	background: conic-gradient(from 0deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent));
	filter: blur(3px);
	opacity: .4;
	z-index: -1;
	animation: bsc-spin-slow 20s linear infinite;
}

.bsc-portrait__chip {
	position: absolute;
	display: flex; align-items: center; gap: 10px;
	padding: 12px 17px;
	font-size: .82rem; font-weight: 660;
	color: var(--text);
	background: color-mix(in srgb, var(--surface) 88%, transparent);
	border: 1px solid var(--border);
	border-radius: 15px;
	box-shadow: var(--shadow);
	backdrop-filter: blur(10px);
	white-space: nowrap;
}

.bsc-portrait__chip i { color: var(--accent); }
.bsc-portrait__chip strong { color: var(--link); }

.bsc-portrait__chip--1 { top: 6%; left: -24px; animation: bsc-bob 6s ease-in-out infinite; }
.bsc-portrait__chip--2 { bottom: 12%; right: -28px; animation: bsc-bob 7.5s ease-in-out infinite .8s; }
.bsc-portrait__chip--3 { bottom: 46%; left: -40px; animation: bsc-bob 8.5s ease-in-out infinite .4s; }

/* ==========================================================================
   11. Page head
   ========================================================================== */

.bsc-pagehead {
	position: relative;
	overflow: hidden;
	padding: clamp(66px, 9vw, 112px) var(--gutter);
	background: var(--bg-alt);
	border-bottom: 1px solid var(--border-soft);
	text-align: center;
}

.bsc-pagehead .bsc-inner { position: relative; z-index: 2; max-width: 800px; }
.bsc-pagehead__lead { margin-top: 18px; font-size: 1.06rem; color: var(--muted); }

/* Split variant — text on the left, a decorative illustration on the
   right, for pageheads that would otherwise carry no imagery at all. */
.bsc-pagehead--split { text-align: left; }

.bsc-pagehead__grid {
	max-width: var(--max) !important;
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	align-items: center;
	gap: 48px;
}

.bsc-pagehead__art { width: 100%; height: auto; filter: drop-shadow(var(--shadow-lg)); }

@media (max-width: 900px) {
	.bsc-pagehead--split { text-align: center; }
	.bsc-pagehead__grid { grid-template-columns: 1fr; }
	.bsc-pagehead__art { display: none; }
}

.bsc-crumbs { margin-top: 22px; font-size: .84rem; color: var(--muted); }
.bsc-crumbs a { color: var(--text-soft); }

/* Breadcrumb trail — matches the BreadcrumbList JSON-LD emitted in the head. */
.bsc-breadcrumb { margin-top: 26px; font-size: .82rem; }

.bsc-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bsc-breadcrumb li { display: inline-flex; align-items: center; gap: 10px; }

.bsc-breadcrumb a { color: var(--muted); }
.bsc-breadcrumb a:hover { color: var(--link); }

.bsc-breadcrumb span[aria-current] { color: var(--text-soft); font-weight: 600; }

.bsc-breadcrumb i { font-size: .6rem; color: var(--border); }

/* Left-align on templates whose page head is not centred. */
.bsc-article .bsc-breadcrumb ol { justify-content: flex-start; }

/* ==========================================================================
   12. Stats
   ========================================================================== */

.bsc-stats-band { padding: 0 var(--gutter); margin-top: -52px; position: relative; z-index: 5; }

.bsc-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 1px;
	background: var(--border);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-lg);
}

.bsc-stat {
	display: flex; flex-direction: column; align-items: center; gap: 7px;
	padding: 32px 22px;
	text-align: center;
	background: var(--surface);
	transition: background-color .3s var(--ease);
}

.bsc-stat:hover { background: var(--surface-2); }
.bsc-stat i { font-size: 1.1rem; color: var(--accent); }

.bsc-stat__value {
	font-family: var(--display);
	font-size: clamp(1.9rem, 4vw, 2.6rem);
	font-weight: 800; letter-spacing: -.045em;
	color: var(--text);
}

.bsc-stat__value span { color: var(--link); }
.bsc-stat__label { font-size: .83rem; color: var(--muted); }

/* ==========================================================================
   13. Cards
   ========================================================================== */

.bsc-grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.bsc-grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.bsc-grid--3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.bsc-grid--4 { grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); }

.bsc-card {
	position: relative;
	display: flex; flex-direction: column;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
	transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}

.bsc-card::after {
	content: "";
	position: absolute; inset: 0;
	border-radius: inherit;
	padding: 1px;
	background: var(--grad);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	mask-composite: exclude;
	opacity: 0;
	transition: opacity .35s var(--ease);
	pointer-events: none;
}

.bsc-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.bsc-card:hover::after { opacity: 1; }

.bsc-card__media {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: linear-gradient(100deg, var(--surface-2) 30%, var(--surface-3) 50%, var(--surface-2) 70%) 0 0 / 420px 100%;
	animation: bsc-shimmer 1.8s linear infinite;
}

.bsc-card__img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .7s var(--ease); }
.bsc-card:hover .bsc-card__img { transform: scale(1.07); }

.bsc-card__fallback {
	position: absolute; inset: 0;
	display: grid; place-items: center;
	background: var(--grad);
	background-size: 200% 200%;
	animation: bsc-grad 10s ease infinite;
}

.bsc-card__fallback span { font-size: 4rem; font-weight: 800; color: var(--on-accent); }

.bsc-card__num {
	position: absolute; top: 14px; left: 16px; z-index: 3;
	padding: 5px 11px;
	font-size: .72rem; font-weight: 750; letter-spacing: .1em;
	color: #fff;
	background: rgba(6, 11, 22, .68);
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 8px;
	backdrop-filter: blur(6px);
}

.bsc-card__overlay {
	position: absolute; inset: 0; z-index: 2;
	display: grid; place-items: center;
	background: linear-gradient(180deg, rgba(6, 11, 22, .05), rgba(6, 11, 22, .8));
	opacity: 0;
	transition: opacity .35s var(--ease);
}

.bsc-card:hover .bsc-card__overlay { opacity: 1; }

.bsc-card__overlay-btn {
	display: inline-flex; align-items: center; gap: 9px;
	padding: 11px 22px;
	font-size: .87rem; font-weight: 680;
	color: var(--on-accent);
	background: var(--accent);
	border-radius: 999px;
	transform: translateY(14px);
	transition: transform .35s var(--ease);
}

.bsc-card:hover .bsc-card__overlay-btn { transform: none; }

.bsc-card__body { display: flex; flex-direction: column; flex: 1; padding: 26px; }

.bsc-card__title { margin-bottom: 10px; font-size: 1.2rem; }
.bsc-card__title a { color: var(--text); }
.bsc-card__title a:hover { color: var(--link); }

.bsc-card__meta {
	display: flex; align-items: center; flex-wrap: wrap;
	margin-bottom: 10px;
	font-size: .74rem; font-weight: 680; letter-spacing: .1em; text-transform: uppercase;
	color: var(--link);
}

.bsc-card__excerpt { color: var(--muted); font-size: .94rem; margin: 0; }

/* Brand logo tile — real client logos, so the tile stays neutral and just
   contains them; logos come in wildly different aspect ratios. */
.bsc-brand {
	display: grid; place-items: center;
	flex: 0 0 auto;
	width: 52px; height: 52px;
	padding: 7px;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 13px;
	overflow: hidden;
	transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.bsc-brand img { width: 100%; height: 100%; object-fit: contain; }

.bsc-card:hover .bsc-brand { transform: rotate(-6deg) scale(1.06); box-shadow: var(--glow); }

.bsc-brand--lg { width: 62px; height: 62px; padding: 8px; border-radius: 15px; }

.bsc-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.bsc-card__headtext { min-width: 0; }
.bsc-card__head .bsc-card__meta { margin-bottom: 4px; }
.bsc-card__head .bsc-card__title { margin-bottom: 0; }

.bsc-project-row__brandrow { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.bsc-project-row__brandrow .bsc-card__meta { margin: 0; }

.bsc-card__icon {
	display: inline-grid; place-items: center;
	width: 56px; height: 56px;
	margin-bottom: 20px;
	font-size: 1.5rem;
	color: var(--accent);
	background: var(--grad-soft);
	border: 1px solid var(--border);
	border-radius: 16px;
	transition: transform .35s var(--ease), color .35s var(--ease);
}

.bsc-card:hover .bsc-card__icon { transform: translateY(-5px) rotate(-7deg); }

.bsc-card--highlight { border-color: var(--accent-line); }
.bsc-card--highlight .bsc-card__icon { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }

/* ==========================================================================
   14. Platform cards
   ========================================================================== */

.bsc-platform { position: relative; overflow: hidden; }

.bsc-platform__top { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }

.bsc-platform__icon {
	display: grid; place-items: center;
	flex: 0 0 auto;
	width: 58px; height: 58px;
	font-size: 1.85rem;
	color: var(--accent);
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: 16px;
	transition: all .35s var(--ease);
}

.bsc-card:hover .bsc-platform__icon { color: var(--on-accent); background: var(--accent); border-color: var(--accent); transform: rotate(-6deg); }

.bsc-platform__name { font-size: 1.3rem; margin: 0; }
.bsc-platform__pct { margin-left: auto; font-size: .95rem; font-weight: 750; color: var(--link); }

.bsc-meter { height: 7px; margin-top: auto; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.bsc-taglist + .bsc-meter { position: relative; top: 20px; margin-bottom: 20px; }

.bsc-meter__fill {
	display: block; height: 100%; width: 0;
	background: var(--grad);
	border-radius: 999px;
	transition: width 1.3s var(--ease);
}

/* Skill chips */

.bsc-chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; list-style: none; margin: 0; padding: 0; }

.bsc-chip {
	display: inline-flex; align-items: center; gap: 7px;
	padding: 5px 10px;
	font-size: .7rem; font-weight: 600;
	color: var(--text-soft);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 999px;
	transition: all .28s var(--ease);
}

.bsc-chip i { font-size: 1.05rem; color: var(--accent); transition: color .28s var(--ease); }

.bsc-chip:hover {
	color: var(--text);
	border-color: var(--accent-line);
	transform: translateY(-4px);
	box-shadow: var(--shadow);
}

/* ==========================================================================
   15. Split layout, panels
   ========================================================================== */

.bsc-split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 60px; align-items: start; }
.bsc-split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }

.bsc-prose { max-width: 720px; }
.bsc-prose h2 { margin-bottom: 18px; }
.bsc-prose ul, .bsc-prose ol { margin: 0 0 1.1em 1.3em; list-style: revert; }
.bsc-prose li { margin-bottom: 9px; color: var(--text-soft); }

.bsc-panel {
	position: relative;
	padding: 32px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.bsc-panel h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 1.08rem; }

/* Sora sits tight to a preceding icon, so headings that lead with one get an
   explicit gap rather than relying on the whitespace in the markup. */
h1 > i, h2 > i, h3 > i, h4 > i { margin-right: 9px; color: var(--accent); }
.bsc-panel h3 > i { margin-right: 0; }
.bsc-panel__subhead { margin-top: 30px; }
.bsc-panel__note { margin-top: 18px; font-size: .85rem; color: var(--muted); }
.bsc-panel--accent { background: var(--grad-soft); border-color: var(--accent-line); }

.bsc-facts { list-style: none; margin: 0; padding: 0; }

.bsc-facts li {
	display: flex; flex-direction: column; gap: 3px;
	padding: 14px 0;
	border-bottom: 1px solid var(--border-soft);
}

.bsc-facts li:last-child { border-bottom: 0; }
.bsc-facts span { font-size: .73rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.bsc-facts strong { font-size: .95rem; font-weight: 650; word-break: break-word; }
.bsc-facts i { color: var(--accent); margin-right: 7px; }

/* ==========================================================================
   16. Company spotlight
   ========================================================================== */

.bsc-company {
	position: relative;
	overflow: hidden;
	padding: clamp(40px, 6vw, 64px);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 26px;
	box-shadow: var(--shadow-lg);
}

.bsc-company__grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 52px; align-items: start; }

.bsc-company__badge {
	display: inline-flex; align-items: center; gap: 12px;
	margin-bottom: 22px;
	padding: 10px 18px 10px 12px;
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: 999px;
}

.bsc-company__badge:hover { text-decoration: none; border-color: var(--accent-line); }

.bsc-company__logo {
	display: grid; place-items: center;
	width: 92px; height: 38px;
	padding: 5px 8px;
	/*background: #fff;*/
	border-radius: 9px;
	overflow: hidden;
}
.bsc-split__main h2 {
  font-size: 24px;
}

.bsc-company__logo img { width: 100%; height: 100%; object-fit: contain; }

.bsc-company__badge b { font-size: .95rem; font-weight: 700; color: var(--text); }
.bsc-company__badge span { font-size: .78rem; color: var(--muted); }

.bsc-company h2 { margin-bottom: 18px; }
.bsc-company p { color: var(--text-soft); }

.bsc-company__tenure {
	display: flex; flex-wrap: wrap; gap: 14px;
	margin-top: 30px;
}

.bsc-tenure-card {
	flex: 1 1 150px;
	padding: 20px;
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
}

.bsc-tenure-card i { font-size: 1.1rem; color: var(--accent); margin-bottom: 10px; display: block; }
.bsc-tenure-card strong { display: block; font-size: 1.05rem; font-weight: 720; }
.bsc-tenure-card span { font-size: .78rem; color: var(--muted); }

.bsc-company__roles { display: grid; gap: 16px; }

.bsc-company__role {
	display: flex; gap: 16px;
	padding: 22px;
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	transition: transform .3s var(--ease), border-color .3s var(--ease);
}

.bsc-company__role:hover { transform: translateX(6px); border-color: var(--accent-line); }

.bsc-company__role i {
	flex: 0 0 auto;
	display: grid; place-items: center;
	width: 44px; height: 44px;
	font-size: 1.1rem;
	color: var(--accent);
	background: var(--grad-soft);
	border-radius: 12px;
}

.bsc-company__role h3 { font-size: 1rem; margin-bottom: 5px; }
.bsc-company__role p { font-size: .89rem; color: var(--muted); margin: 0; }

/* ==========================================================================
   16b. Freelance band
   ========================================================================== */

.bsc-freelance {
	position: relative;
	overflow: hidden;
	padding: clamp(38px, 6vw, 62px);
	background: var(--surface);
	border: 1px solid var(--accent-line);
	border-radius: 26px;
	box-shadow: var(--shadow-lg);
}

.bsc-freelance::before {
	content: "";
	position: absolute; inset: 0;
	background: var(--grad-soft);
	pointer-events: none;
}

.bsc-freelance__grid {
	position: relative; z-index: 2;
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: 52px;
	align-items: start;
}

.bsc-freelance h2 { margin-bottom: 16px; }
.bsc-freelance__intro { color: var(--text-soft); }

.bsc-freelance__subhead {
	margin: 28px 0 0;
	font-size: .78rem; font-weight: 700;
	letter-spacing: .12em; text-transform: uppercase;
	color: var(--muted);
}

.bsc-freelance__points { display: grid; gap: 14px; }

.bsc-freelance__point {
	display: flex; gap: 16px;
	padding: 20px 22px;
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	transition: transform .3s var(--ease), border-color .3s var(--ease);
}

.bsc-freelance__point:hover { transform: translateX(6px); border-color: var(--accent-line); }

.bsc-freelance__point i {
	flex: 0 0 auto;
	display: grid; place-items: center;
	width: 42px; height: 42px;
	font-size: 1.05rem;
	color: var(--accent);
	background: var(--grad-soft);
	border-radius: 12px;
}

.bsc-freelance__point h3 { font-size: .98rem; margin-bottom: 5px; }
.bsc-freelance__point p { font-size: .88rem; color: var(--muted); margin: 0; }

/* ==========================================================================
   17. Timeline
   ========================================================================== */

.bsc-timeline { position: relative; padding-left: 38px; }

.bsc-timeline::before {
	content: "";
	position: absolute; left: 8px; top: 12px; bottom: 12px;
	width: 2px;
	background: linear-gradient(180deg, var(--accent), var(--accent-2), transparent);
}

.bsc-timeline__item { position: relative; margin-bottom: 46px; }
.bsc-timeline__item:last-child { margin-bottom: 0; }

.bsc-timeline__item::before {
	content: "";
	position: absolute; left: -38px; top: 9px;
	width: 18px; height: 18px;
	background: var(--accent);
	border: 4px solid var(--bg-alt);
	border-radius: 50%;
	box-shadow: 0 0 0 4px var(--accent-soft);
}

.bsc-timeline__head h3 { font-size: 1.3rem; }
.bsc-timeline__company { margin: 6px 0 0; font-weight: 680; color: var(--link); }
.bsc-timeline__period { margin: 5px 0 0; font-size: .87rem; color: var(--muted); }
.bsc-timeline__meta { margin: 2px 0 0; font-size: .81rem; color: var(--muted); }

.bsc-live {
	display: inline-flex; align-items: center; gap: 7px;
	margin-left: 10px; padding: 3px 11px;
	font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	color: var(--on-accent); background: var(--accent);
	border-radius: 999px; vertical-align: middle;
}

/* ==========================================================================
   18. Process steps
   ========================================================================== */

.bsc-step {
	position: relative;
	padding: 32px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
	transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}

.bsc-step:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); border-color: var(--accent-line); }

.bsc-step__ghost {
	font-family: var(--display);
	position: absolute; top: -18px; right: 6px;
	font-size: 5.5rem; font-weight: 800; line-height: 1;
	color: var(--text);
	opacity: .04;
	pointer-events: none;
}

.bsc-step i { font-size: 1.5rem; color: var(--accent); margin-bottom: 16px; display: block; }
.bsc-step h3 { margin-bottom: 9px; font-size: 1.12rem; }
.bsc-step p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ==========================================================================
   19. Project showcase rows
   ========================================================================== */

.bsc-showcase { display: grid; gap: 100px; }

.bsc-project-row {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
	gap: 58px;
	align-items: center;
}

.bsc-project-row--flip .bsc-project-row__visual { order: 2; }

.bsc-project-row__visual {
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-lg);
	border: 1px solid var(--border);
	transition: transform .5s var(--ease), border-color .5s var(--ease);
}

.bsc-project-row__visual:hover { transform: translateY(-8px); border-color: var(--accent-line); }

.bsc-project-row__shot {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: linear-gradient(100deg, var(--surface-2) 30%, var(--surface-3) 50%, var(--surface-2) 70%) 0 0 / 420px 100%;
	animation: bsc-shimmer 1.8s linear infinite;
}

.bsc-project-row__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .9s var(--ease); }
.bsc-project-row__visual:hover .bsc-project-row__shot img { transform: scale(1.05); }

.bsc-project-row__fallback {
	position: absolute; inset: 0;
	display: grid; place-items: center;
	background: var(--grad);
	background-size: 200% 200%;
	animation: bsc-grad 11s ease infinite;
}

.bsc-project-row__fallback span { font-size: 5.5rem; font-weight: 800; color: var(--on-accent); }

.bsc-browserbar {
	display: flex; align-items: center; gap: 8px;
	padding: 13px 16px;
	background: var(--surface-2);
	border-bottom: 1px solid var(--border);
}

.bsc-browserbar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.bsc-browserbar i:nth-child(1) { background: #ff5f57; }
.bsc-browserbar i:nth-child(2) { background: #febc2e; }
.bsc-browserbar i:nth-child(3) { background: #28c840; }

.bsc-browserbar span {
	flex: 1;
	margin-left: 8px; padding: 5px 13px;
	font-size: .72rem; font-family: var(--mono); color: var(--muted);
	background: var(--surface);
	border-radius: 999px;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.bsc-project-row__num { font-size: .78rem; font-family: var(--mono); font-weight: 700; letter-spacing: .18em; color: var(--link); margin-bottom: 14px; }
.bsc-project-row__title { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-bottom: 16px; }
.bsc-project-row__summary { color: var(--muted); }
.bsc-project-row .bsc-actions { margin-top: 28px; }

/* ==========================================================================
   19b. Project filters + project cards
   ========================================================================== */

.bsc-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-bottom: 48px;
}

.bsc-filter {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 11px 20px;
	font: inherit;
	font-size: .9rem;
	font-weight: 600;
	color: var(--text-soft);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 999px;
	cursor: pointer;
	transition: all .25s var(--ease);
}

.bsc-filter i { font-size: 1.05rem; color: var(--accent); transition: color .25s var(--ease); }

.bsc-filter b {
	min-width: 22px;
	padding: 1px 7px;
	font-size: .72rem;
	font-weight: 700;
	color: var(--muted);
	background: var(--surface-3);
	border-radius: 999px;
	transition: all .25s var(--ease);
}

.bsc-filter:hover {
	color: var(--text);
	border-color: var(--accent-line);
	transform: translateY(-2px);
}

.bsc-filter.is-active {
	color: var(--on-accent);
	background: var(--accent);
	border-color: var(--accent);
	box-shadow: 0 10px 26px rgba(91, 155, 255, .22);
}

.bsc-filter.is-active i { color: var(--on-accent); }
.bsc-filter.is-active b { color: var(--accent); background: rgba(4, 18, 42, .18); }

/* Filtering out a card: collapse it rather than leaving a gap in the grid. */
.bsc-card--project.is-hidden { display: none; }

.bsc-card--project.is-filtering {
	animation: bsc-pop .4s var(--ease) both;
}

@keyframes bsc-pop {
	from { opacity: 0; transform: translateY(14px) scale(.97); }
	to   { opacity: 1; transform: none; }
}

.bsc-card--project .bsc-card__media {
	aspect-ratio: auto;
	background: var(--surface-2);
	animation: none;
}

.bsc-card__shot {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: linear-gradient(100deg, var(--surface-2) 30%, var(--surface-3) 50%, var(--surface-2) 70%) 0 0 / 420px 100%;
	animation: bsc-shimmer 1.8s linear infinite;
}

.bsc-card__flag {
	position: absolute;
	top: 56px;
	right: 14px;
	z-index: 4;
	padding: 5px 12px;
	font-size: .66rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--on-warm);
	background: var(--warm);
	border-radius: 999px;
}

.bsc-card__points { margin-top: 16px; }
.bsc-card__points li { font-size: .87rem; margin-bottom: 7px; }

.bsc-card__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 20px;
	font-size: .88rem;
	font-weight: 650;
}

.bsc-card__link i { transition: transform .25s var(--ease); }
.bsc-card__link:hover i { transform: translateX(4px); }

.bsc-empty-filter {
	padding: 60px 20px;
	text-align: center;
	color: var(--muted);
}

.bsc-empty-filter i { display: block; font-size: 2.4rem; color: var(--accent); margin-bottom: 16px; }

/* ==========================================================================
   20. Marquee
   ========================================================================== */

.bsc-marquee {
	position: relative;
	overflow: hidden;
	padding: 26px 0;
	border-block: 1px solid var(--border-soft);
	background: var(--bg-alt);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.bsc-marquee__track { display: flex; width: max-content; animation: bsc-marquee 36s linear infinite; }
.bsc-marquee:hover .bsc-marquee__track { animation-play-state: paused; }

.bsc-marquee__item {
	display: inline-flex; align-items: center; gap: 13px;
	padding: 0 30px;
	font-size: 1.1rem; font-weight: 680;
	color: var(--muted);
	white-space: nowrap;
	transition: color .3s var(--ease);
}

.bsc-marquee__item i { color: var(--accent); font-size: 1.25rem; }
.bsc-marquee__item:hover { color: var(--text); }

/* ==========================================================================
   21. FAQ
   ========================================================================== */

.bsc-faq { display: grid; gap: 14px; max-width: 860px; margin: 0 auto; }

.bsc-faq__item {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	overflow: hidden;
	transition: border-color .3s var(--ease);
}

.bsc-faq__item[open] { border-color: var(--accent-line); }

.bsc-faq__q {
	display: flex; align-items: center; justify-content: space-between; gap: 18px;
	padding: 22px 26px;
	font-size: 1.02rem; font-weight: 650;
	cursor: pointer;
	list-style: none;
}

.bsc-faq__q::-webkit-details-marker { display: none; }

.bsc-faq__icon { flex: 0 0 auto; color: var(--accent); transition: transform .3s var(--ease); }
.bsc-faq__item[open] .bsc-faq__icon { transform: rotate(135deg); }

.bsc-faq__a { padding: 0 26px 24px; color: var(--muted); font-size: .95rem; }

/* ==========================================================================
   22. Forms + Contact Form 7
   ========================================================================== */

.bsc-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 18px; }

.bsc-field { margin-bottom: 20px; }
.bsc-field label { display: block; margin-bottom: 8px; font-size: .85rem; font-weight: 640; color: var(--text); }
.bsc-field label span { color: var(--danger); }

.bsc-field input,
.bsc-field textarea,
.bsc-field select,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
	width: 100%;
	padding: 14px 16px;
	font: inherit; font-size: .95rem;
	color: var(--text);
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}

.bsc-field textarea, .wpcf7 textarea { resize: vertical; min-height: 150px; }

.bsc-field input:focus,
.bsc-field textarea:focus,
.bsc-field select:focus,
.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
	outline: none;
	background: var(--surface);
	border-color: var(--accent);
	box-shadow: 0 0 0 4px var(--accent-soft);
}

.bsc-field ::placeholder, .wpcf7 ::placeholder { color: var(--muted); opacity: .75; }

/* CF7 resets — its own stylesheet is dequeued, this styles what remains.
   CF7 always renders the response element, so it stays hidden until the form
   actually reports a state; otherwise an empty bordered box sits under submit. */
.wpcf7 form .wpcf7-response-output { display: none; }

.wpcf7 form.sent .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
	display: block;
	margin: 22px 0 0;
	padding: 14px 18px;
	font-size: .9rem;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--surface-2);
	color: var(--text-soft);
}

.wpcf7 form.sent .wpcf7-response-output { border-color: var(--accent-line); background: var(--accent-soft); color: var(--text); }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output { border-color: rgba(251, 113, 133, .55); background: rgba(251, 113, 133, .1); }

.wpcf7-not-valid-tip { margin-top: 7px; font-size: .8rem; color: var(--danger); }

/* Captcha field — a short answer box, so it should not span the full width. */
.bsc-field--quiz input[type="text"] { max-width: 180px; }

.bsc-field--quiz label {
	display: inline-flex;
	align-items: center;
	gap: 9px;
}

.bsc-field--quiz label::before {
	content: "\f3ed";
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	color: var(--accent);
}

/* The honeypot field must stay in the DOM for bots but never be seen or
   focusable by a real visitor. */
.wpcf7 .wpcf7-honeypot-container,
.wpcf7 input[name="website-url"] {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}
.wpcf7 .wpcf7-not-valid { border-color: rgba(251, 113, 133, .6); }
.wpcf7-spinner { margin-left: 12px; }

.wpcf7 .bsc-field p { margin: 0; }
.wpcf7 p { margin-bottom: 0; }

.bsc-channels { list-style: none; margin: 0; padding: 0; }

.bsc-channels li {
	display: flex; align-items: center; gap: 15px;
	padding: 15px 0;
	border-bottom: 1px solid var(--border-soft);
}

.bsc-channels li:last-child { border-bottom: 0; }

.bsc-channels__icon {
	display: grid; place-items: center;
	flex: 0 0 auto;
	width: 44px; height: 44px;
	font-size: 1.05rem;
	color: var(--accent);
	background: var(--grad-soft);
	border: 1px solid var(--border);
	border-radius: 13px;
}

.bsc-channels__body { display: flex; flex-direction: column; min-width: 0; }
.bsc-channels__label { font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.bsc-channels__body a, .bsc-channels__body strong { font-size: .94rem; font-weight: 640; word-break: break-word; }

/* ==========================================================================
   23. Map
   ========================================================================== */

.bsc-map {
	position: relative;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
}

.bsc-map iframe { display: block; width: 100%; height: 420px; border: 0; filter: grayscale(.35) contrast(1.05); }
:root:not([data-theme="light"]) .bsc-map iframe { filter: grayscale(.6) invert(.92) hue-rotate(180deg) contrast(.92); }

.bsc-map__card {
	position: absolute; left: 20px; bottom: 20px;
	display: flex; align-items: center; gap: 14px;
	max-width: calc(100% - 40px);
	padding: 16px 20px;
	background: color-mix(in srgb, var(--surface) 92%, transparent);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow);
	backdrop-filter: blur(10px);
}

.bsc-map__pin { font-size: 1.3rem; color: var(--accent-2); }
.bsc-map__card strong { display: block; font-size: .95rem; }
.bsc-map__card span { font-size: .82rem; color: var(--muted); }

/* ==========================================================================
   24. CTA band
   ========================================================================== */

.bsc-cta {
	position: relative;
	overflow: hidden;
	text-align: center;
	background: var(--surface);
	border: 1px solid var(--accent-line);
	border-radius: 28px;
	padding: clamp(52px, 8vw, 92px) 32px;
	box-shadow: var(--shadow-lg);
}

.bsc-cta::before {
	content: "";
	position: absolute; inset: 0;
	background: var(--grad-soft);
	pointer-events: none;
}

.bsc-cta__content { position: relative; z-index: 2; }
.bsc-cta h2 { margin-bottom: 16px; }
.bsc-cta p { color: var(--muted); max-width: 600px; margin: 0 auto; }

/* ==========================================================================
   25. Blog
   ========================================================================== */

.bsc-post-card .bsc-card__media { aspect-ratio: 16 / 9; }

.bsc-post-card__cat {
	position: absolute; top: 14px; right: 14px; z-index: 3;
	padding: 5px 12px;
	font-size: .69rem; font-weight: 680; letter-spacing: .07em; text-transform: uppercase;
	color: var(--on-accent);
	background: var(--accent);
	border-radius: 999px;
}

.bsc-post-meta { display: flex; align-items: center; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }

.bsc-single__hero {
	position: relative;
	margin-bottom: 48px;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--border);
	box-shadow: var(--shadow-lg);
}

.bsc-single__hero img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }

.bsc-article { max-width: 780px; margin: 0 auto; }
.bsc-article .entry-content { font-size: 1.06rem; color: var(--text-soft); }
.bsc-article .entry-content > * + * { margin-top: 1.35em; }
.bsc-article .entry-content h2 { margin-top: 1.9em; font-size: 1.75rem; }
.bsc-article .entry-content h3 { margin-top: 1.6em; font-size: 1.32rem; }
.bsc-article .entry-content ul, .bsc-article .entry-content ol { margin-left: 1.4em; list-style: revert; }
.bsc-article .entry-content li { margin-bottom: .5em; }

.bsc-article .entry-content blockquote {
	margin: 1.8em 0; padding: 22px 28px;
	background: var(--surface);
	border-left: 3px solid var(--accent);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	color: var(--text-soft); font-style: italic;
}

.bsc-article .entry-content img { border-radius: var(--radius-sm); }
.bsc-article .entry-content a { text-decoration: underline; text-underline-offset: 3px; }

.bsc-article .entry-content pre {
	padding: 20px 24px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	overflow-x: auto;
}

.bsc-postnav {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px;
	margin-top: 60px; padding-top: 38px;
	border-top: 1px solid var(--border);
}

.bsc-postnav a {
	display: block; padding: 22px 26px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	transition: transform .3s var(--ease), border-color .3s var(--ease);
}

.bsc-postnav a:hover { transform: translateY(-4px); border-color: var(--accent-line); text-decoration: none; }
.bsc-postnav span { display: block; font-size: .73rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.bsc-postnav strong { font-size: .98rem; font-weight: 640; color: var(--text); }

.bsc-pagination { margin-top: 58px; text-align: center; }
.bsc-pagination ul { list-style: none; margin: 0; padding: 0; display: inline-flex; flex-wrap: wrap; gap: 8px; }

.bsc-pagination .page-numbers {
	display: inline-grid; place-items: center;
	min-width: 46px; height: 46px; padding: 0 14px;
	font-weight: 640; color: var(--text-soft);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 12px;
	transition: all .25s var(--ease);
}

.bsc-pagination .page-numbers:hover { color: var(--link); border-color: var(--accent-line); transform: translateY(-2px); text-decoration: none; }
.bsc-pagination .page-numbers.current { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }

.bsc-searchform { display: flex; gap: 10px; max-width: 500px; margin: 0 auto; }

.bsc-searchform input[type="search"] {
	flex: 1; padding: 14px 20px;
	font: inherit; font-size: .95rem;
	color: var(--text);
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: 999px;
}

.bsc-searchform input[type="search"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

.bsc-empty { text-align: center; padding: 70px 20px; }
.bsc-empty__icon { font-size: 3rem; color: var(--accent); margin-bottom: 20px; }

.bsc-404__code {
	font-family: var(--display);
	font-size: clamp(6rem, 22vw, 14rem);
	font-weight: 800; line-height: .88; letter-spacing: -.07em;
	background: var(--grad);
	background-size: 200% 200%;
	-webkit-background-clip: text; background-clip: text;
	color: transparent;
	animation: bsc-grad 9s ease infinite;
}

/* ==========================================================================
   26. Comments
   ========================================================================== */

#comments { margin-top: 64px; padding-top: 42px; border-top: 1px solid var(--border); }
.comments-title, #reply-title { margin-bottom: 26px; font-size: 1.45rem; }

#comments .comments > ul, #comments ul.children { list-style: none; margin: 0; padding: 0; }
#comments ul.children { margin-top: 18px; padding-left: 26px; border-left: 1px solid var(--border); }
#comments li.comment { margin-bottom: 18px; }

#comments li.comment article,
#comments li.comment > div {
	padding: 22px 26px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
}

#comments .avatar { width: 44px; height: 44px; border-radius: 50%; float: left; margin-right: 14px; }
#comments .comment-meta, #comments .comment-author { font-size: .88rem; color: var(--muted); }
#comments .comment-author .fn, #comments cite { font-style: normal; font-weight: 660; color: var(--text); }
#comments .comment-content, #comments .comment-body p { margin-top: 12px; color: var(--text-soft); font-size: .95rem; }
#comments .reply { margin-top: 12px; }

#comments .comment-reply-link {
	display: inline-block; padding: 6px 15px;
	font-size: .8rem; font-weight: 640;
	color: var(--link); background: var(--accent-soft);
	border: 1px solid var(--accent-line); border-radius: 999px;
}

#comments .comment-reply-link:hover { color: var(--on-accent); background: var(--accent); text-decoration: none; }

#respond { margin-top: 42px; padding: 32px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
#respond p { margin-bottom: 16px; }
#respond label { display: block; margin-bottom: 7px; font-size: .85rem; font-weight: 640; color: var(--text); }

#respond input[type="text"], #respond input[type="email"], #respond input[type="url"], #respond textarea {
	width: 100%; padding: 13px 16px;
	font: inherit; font-size: .95rem;
	color: var(--text); background: var(--surface-2);
	border: 1px solid var(--border); border-radius: var(--radius-sm);
}

#respond textarea { resize: vertical; min-height: 130px; }
#respond input:focus, #respond textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

#respond .form-submit input[type="submit"],
.wpcf7 input[type="submit"] {
	padding: 14px 30px;
	font: inherit; font-size: .94rem; font-weight: 600;
	color: var(--on-accent); background: var(--accent);
	border: 0; border-radius: 999px; cursor: pointer;
	box-shadow: 0 10px 30px rgba(91, 155, 255, .2);
	transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

#respond .form-submit input[type="submit"]:hover,
.wpcf7 input[type="submit"]:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(91, 155, 255, .3); }

#respond .comment-notes, #respond .comment-form-cookies-consent label { font-size: .84rem; font-weight: 400; color: var(--muted); }
#respond .comment-form-cookies-consent { display: flex; align-items: center; gap: 9px; }
#respond .comment-form-cookies-consent input { width: auto; }

/* ==========================================================================
   26b. Fixed action dock (back-to-top + WhatsApp)
   ========================================================================== */

@keyframes bsc-ping {
	0%   { transform: scale(.9); opacity: .75; }
	70%  { transform: scale(1.9); opacity: 0; }
	100% { transform: scale(1.9); opacity: 0; }
}

.bsc-dock {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 110;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.bsc-dock__btn {
	position: relative;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	padding: 0;
	font-size: 1.15rem;
	color: #fff;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transition: transform .3s var(--ease), box-shadow .3s var(--ease), opacity .3s var(--ease);
}

.bsc-dock__btn:hover { color: #fff; text-decoration: none; transform: translateY(-4px) scale(1.06); }
.bsc-dock__btn i { position: relative; z-index: 2; }

/* Tooltip on hover, so the buttons stay compact but still explain themselves. */
.bsc-dock__btn::after {
	content: attr(data-tip);
	position: absolute;
	right: calc(100% + 14px);
	top: 50%;
	transform: translateY(-50%) translateX(8px);
	padding: 8px 14px;
	font-size: .78rem;
	font-weight: 600;
	white-space: nowrap;
	color: var(--text);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 10px;
	box-shadow: var(--shadow);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}

.bsc-dock__btn:hover::after,
.bsc-dock__btn:focus-visible::after {
	opacity: 1;
	visibility: visible;
	transform: translateY(-50%) translateX(0);
}

/* Back to top — hidden until there is something to scroll back up from. */
.bsc-dock__btn--top {
	color: var(--on-accent);
	background: var(--accent);
	box-shadow: 0 10px 28px rgba(91, 155, 255, .32);
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px) scale(.85);
}

.bsc-dock__btn--top:hover { color: var(--on-accent); }

.bsc-dock.is-scrolled .bsc-dock__btn--top {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.bsc-dock.is-scrolled .bsc-dock__btn--top:hover { transform: translateY(-4px) scale(1.06); }

/* Progress ring around the back-to-top button. */
.bsc-dock__ring {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
	pointer-events: none;
}

.bsc-dock__ring circle {
	fill: none;
	stroke-width: 2.5;
	stroke-linecap: round;
}

.bsc-dock__ring-track { stroke: rgba(4, 18, 42, .18); }

.bsc-dock__ring-fill {
	stroke: var(--on-accent);
	stroke-dasharray: 126;
	stroke-dashoffset: 126;
	transition: stroke-dashoffset .12s linear;
}

/* WhatsApp */
.bsc-dock__btn--wa {
	font-size: 1.45rem;
	background: linear-gradient(135deg, #22b559, #128c40);
	box-shadow: 0 10px 28px rgba(18, 140, 64, .38);
}

.bsc-dock__ping {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, .6);
	animation: bsc-ping 2.6s ease-out infinite;
	pointer-events: none;
}

@media (max-width: 640px) {
	.bsc-dock { right: 16px; bottom: 16px; gap: 10px; }
	.bsc-dock__btn { width: 48px; height: 48px; }
	/* Touch devices have no hover, so the tooltip would only ever get stuck. */
	.bsc-dock__btn::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.bsc-dock__ping { animation: none; opacity: 0; }
}

/* ==========================================================================
   27. Footer
   ========================================================================== */

#footer { position: relative; overflow: hidden; background: var(--bg-alt); border-top: 1px solid var(--border); color: var(--muted); font-size: .93rem; }

.bsc-footer__glow {
	position: absolute; top: -180px; left: 50%; transform: translateX(-50%);
	width: 680px; height: 320px;
	background: radial-gradient(circle, rgba(91, 155, 255, .16), transparent 68%);
	filter: blur(60px);
	pointer-events: none;
}

.bsc-footer__inner {
	position: relative; z-index: 2;
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
	gap: 44px;
	width: 100%; max-width: var(--max); margin: 0 auto;
	padding: 72px var(--gutter) 46px;
}

.bsc-footer__bio { margin: 20px 0 8px; max-width: 340px; }
.bsc-footer__muted { font-size: .85rem; }
.bsc-footer__muted i { color: var(--accent); margin-right: 7px; }

.bsc-footer__col h3 { margin-bottom: 20px; font-size: .77rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text); }
.bsc-footer__menu { list-style: none; margin: 0; padding: 0; }
.bsc-footer__menu li { margin-bottom: 11px; }
.bsc-footer__menu a { color: var(--muted); transition: color .2s var(--ease), padding-left .2s var(--ease); }
.bsc-footer__menu a:hover { color: var(--link); padding-left: 6px; text-decoration: none; }
.bsc-footer__menu i { width: 18px; color: var(--accent); }

#copyright {
	position: relative; z-index: 2;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
	max-width: var(--max); margin: 0 auto;
	padding: 24px var(--gutter) 36px;
	border-top: 1px solid var(--border-soft);
	font-size: .85rem;
}

.bsc-totop { display: inline-flex; align-items: center; gap: 8px; font-weight: 640; color: var(--text-soft); }
.bsc-totop:hover { color: var(--link); text-decoration: none; }

/* ==========================================================================
   28. Misc fallbacks
   ========================================================================== */

#sidebar ul { list-style: none; margin: 0; padding: 0; }
.widget-container { margin-bottom: 30px; }
.entry-title { margin-bottom: 12px; }
.entry-content ul, .entry-content ol { margin-left: 1.4em; list-style: revert; }

/* ==========================================================================
   29. Reveal + parallax
   ========================================================================== */

.bsc-js [data-reveal] {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity .55s var(--ease), transform .55s var(--ease);
	transition-delay: var(--reveal-delay, 0ms);
}

.bsc-js [data-reveal].is-visible { opacity: 1; transform: none; }

[data-parallax] { will-change: transform; }

.bsc-hero__inner > * { animation: bsc-fade-up .95s var(--ease) both; }
.bsc-hero__inner > *:nth-child(2) { animation-delay: .16s; }

/* ==========================================================================
   30. Responsive
   ========================================================================== */

@media (max-width: 1060px) {
	.bsc-hero__inner { grid-template-columns: 1fr; gap: 50px; text-align: center; }
	.bsc-hero__typed { justify-content: center; }
	.bsc-hero__lead { margin-inline: auto; }
	.bsc-hero .bsc-actions, .bsc-hero__strip { justify-content: center; }
	.bsc-hero .bsc-social { justify-content: center; }
	.bsc-portrait { order: -1; width: min(330px, 76%); }

	.bsc-split, .bsc-split--even { grid-template-columns: 1fr; gap: 40px; }
	.bsc-company__grid { grid-template-columns: 1fr; gap: 40px; }
	.bsc-freelance__grid { grid-template-columns: 1fr; gap: 36px; }

	.bsc-project-row { grid-template-columns: 1fr; gap: 34px; }
	.bsc-project-row--flip .bsc-project-row__visual { order: 0; }
	.bsc-showcase { gap: 70px; }

	.bsc-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
	.bsc-nav-toggle { display: grid; place-items: center; }

	.bsc-nav__panel {
		position: fixed;
		inset: var(--header-h) 12px auto 12px;
		z-index: 95;
		flex-direction: column;
		align-items: stretch;
		gap: 4px;
		padding: 18px;
		background: var(--surface);
		border: 1px solid var(--border);
		border-radius: var(--radius);
		box-shadow: var(--shadow-lg);
		backdrop-filter: blur(18px);
		transform: translateY(-14px) scale(.98);
		opacity: 0; visibility: hidden;
		transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
	}

	.bsc-nav-open .bsc-nav__panel { transform: none; opacity: 1; visibility: visible; }

	.bsc-nav ul, .bsc-menu { flex-direction: column; align-items: stretch; gap: 2px; }
	.bsc-nav a { display: block; padding: 13px 14px; font-size: 1rem; }
	.bsc-nav a::after { display: none; }
	.bsc-nav__cta { margin-top: 12px; text-align: center; }
	.bsc-nav-open { overflow: hidden; }
}

@media (max-width: 782px) {
	:root { --section-y: 74px; }

	.bsc-stats-band { margin-top: -34px; }
	.bsc-stat { padding: 24px 16px; }

	.bsc-portrait__chip--1 { left: -6px; }
	.bsc-portrait__chip--2 { right: -6px; }
	.bsc-portrait__chip--3 { display: none; }

	.bsc-footer__inner { grid-template-columns: 1fr; gap: 36px; padding-top: 54px; }
	#copyright { justify-content: center; text-align: center; }

	.bsc-timeline { padding-left: 28px; }
	.bsc-timeline__item::before { left: -28px; width: 14px; height: 14px; }

	.bsc-company { padding: 30px 24px; }
	.bsc-map iframe { height: 320px; }
}

@media (max-width: 520px) {
	.bsc-portrait__chip { font-size: .74rem; padding: 9px 13px; }
	.bsc-project-row__fallback span { font-size: 3.6rem; }
	.bsc-map__card { left: 12px; bottom: 12px; padding: 13px 16px; }
}

/* ==========================================================================
   30b. Print — the Resume page is the one people actually print or save as PDF
   ========================================================================== */

@media print {
	/* Force the light palette; a navy page would eat a printer cartridge. */
	:root {
		--bg: #fff;
		--bg-alt: #fff;
		--surface: #fff;
		--surface-2: #fff;
		--surface-3: #eee;
		--border: #ccc;
		--border-soft: #ddd;
		--text: #000;
		--text-soft: #222;
		--muted: #555;
		--link: #0645ad;
		--accent: #0645ad;
		--on-accent: #fff;
		--grad: none;
		--grad-soft: none;
		--shadow: none;
		--shadow-sm: none;
		--shadow-lg: none;
	}

	body { background: #fff !important; color: #000; font-size: 11pt; }
	body::before, body::after { display: none !important; }

	/* Chrome, navigation and decoration have no meaning on paper. */
	#header,
	#footer,
	.bsc-dock,
	.bsc-progress,
	.bsc-bubbles,
	.bsc-orbs,
	.bsc-spotlight,
	.bsc-breadcrumb,
	.bsc-marquee,
	.bsc-cta,
	.bsc-freelance,
	.bsc-actions,
	.bsc-searchform,
	.bsc-filters,
	.bsc-map { display: none !important; }

	.bsc-section { padding: 14pt 0 !important; }
	.bsc-pagehead { padding: 0 0 14pt !important; border-bottom: 1pt solid #ccc; text-align: left; }

	.bsc-card,
	.bsc-panel,
	.bsc-step { border: 1pt solid #ccc !important; box-shadow: none !important; break-inside: avoid; }

	.bsc-split { display: block !important; }
	.bsc-split__aside { margin-top: 18pt; }

	.bsc-timeline__item { break-inside: avoid; }

	/* Reveal animations must not leave printed content invisible. */
	.bsc-js [data-reveal],
	.bsc-js [data-split] .bsc-word { opacity: 1 !important; transform: none !important; }

	.bsc-meter { border: 1pt solid #999; }
	.bsc-meter__fill { background: #666 !important; }

	.bsc-hero__name,
	.bsc-stat__value,
	.bsc-404__code { -webkit-text-fill-color: #000; color: #000 !important; background: none !important; }

	/* Spell out link targets, since a printed page cannot be clicked. */
	.bsc-article .entry-content a::after,
	.bsc-prose a::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; word-break: break-all; }

	a { text-decoration: underline; }

	@page { margin: 14mm; }
}

/* ==========================================================================
   31. Motion preferences
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }

	*, *::before, *::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
	}

	.bsc-js [data-reveal],
	.bsc-js [data-split] .bsc-word { opacity: 1; transform: none; }

	.bsc-orb, .bsc-spotlight { animation: none; display: none; }
	.bsc-bubbles { display: none; }
}

/* ==========================================================================
   23. Plain PHP contact form additions (honeypot field, flash messages)
   ========================================================================== */

.bsc-form__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.bsc-note--success,
.bsc-note--error {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 18px;
	margin: 0 0 22px;
	font-size: .9rem;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border);
}

.bsc-note--success { border-color: var(--accent-line); background: var(--accent-soft); color: var(--text); }
.bsc-note--error { border-color: rgba(251, 113, 133, .55); background: rgba(251, 113, 133, .1); color: var(--text); }

/* ==========================================================================
   24. Homepage featured-projects slider
   ========================================================================== */

.bsc-slider { position: relative; }

.bsc-slider__track {
	display: flex;
	gap: var(--gutter);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-left: 4px;
	padding: 4px 4px 28px;
	margin: 0 -4px;
	scrollbar-width: thin;
	scrollbar-color: var(--border) transparent;
}

.bsc-slider__track::-webkit-scrollbar { height: 8px; }
.bsc-slider__track::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }
.bsc-slider__track::-webkit-scrollbar-track { background: transparent; }

.bsc-slider__track > * {
	flex: 0 0 min(340px, 84vw);
	scroll-snap-align: start;
}

.bsc-slider__nav {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-bottom: 18px;
}

.bsc-slider__btn {
	display: grid;
	place-items: center;
	width: 42px; height: 42px;
	border-radius: 50%;
	border: 1px solid var(--border);
	background: var(--surface);
	color: var(--text);
	cursor: pointer;
	transition: border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}

.bsc-slider__btn:hover { border-color: var(--accent-line); color: var(--accent); transform: translateY(-2px); }
.bsc-slider__btn:disabled { opacity: .35; cursor: default; transform: none; }

@media (max-width: 760px) {
	.bsc-slider__nav { display: none; }
}
