/* ---------------------------------------------------------
   Shared hero theme — used by index, about, works_creative, contacts_image
   --------------------------------------------------------- */

/* Animated radial-gradient mesh background */
.hero-gradient-bg {
	position: absolute;
	inset: 0;
	z-index: 1;
	background-color: #050509;
	background-image:
		radial-gradient(at 18% 22%, rgba(26, 15, 46, 0.85) 0px, transparent 55%),
		radial-gradient(at 82% 18%, rgba(10, 32, 48, 0.75) 0px, transparent 50%),
		radial-gradient(at 75% 82%, rgba(10, 14, 31, 0.9) 0px, transparent 55%),
		radial-gradient(at 22% 78%, rgba(40, 18, 60, 0.7) 0px, transparent 50%);
	background-size: 180% 180%, 160% 160%, 200% 200%, 170% 170%;
	background-position: 0% 0%, 100% 0%, 100% 100%, 0% 100%;
	animation:
		heroMesh1 32s ease-in-out infinite,
		heroMesh2 45s ease-in-out infinite,
		heroMesh3 26s ease-in-out infinite;
}
.hero-gradient-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0.05;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
@keyframes heroMesh1 {
	0%, 100% { background-position: 0% 0%, 100% 0%, 100% 100%, 0% 100%; }
	50% { background-position: 30% 20%, 70% 30%, 60% 70%, 30% 60%; }
}
@keyframes heroMesh2 {
	0%, 100% { background-size: 180% 180%, 160% 160%, 200% 200%, 170% 170%; }
	50% { background-size: 210% 210%, 190% 190%, 170% 170%, 200% 200%; }
}
@keyframes heroMesh3 {
	0%, 100% { filter: hue-rotate(0deg); }
	50% { filter: hue-rotate(12deg); }
}

/* Hero chat layout */
.hero-chat-wrap {
	position: relative;
	z-index: 3;
	width: 100%;
	max-width: 680px;
	margin: 0 auto;
	padding: 24px;
	box-sizing: border-box;
	text-align: left;
	font-family: 'Roboto', system-ui, -apple-system, sans-serif;
}
.hero-name {
	margin: 0 0 4px 2px;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
}
.hero-role {
	margin: 0 0 28px 2px;
	font-size: 32px;
	font-weight: 300;
	line-height: 1.15;
	color: #ffffff;
}
.hero-role strong {
	color: #4bffa5;
	font-weight: 500;
}

/* Chat bubbles */
.chat-bubble {
	display: inline-block;
	max-width: 88%;
	padding: 14px 18px;
	border-radius: 18px;
	font-size: 17px;
	line-height: 1.55;
	word-wrap: break-word;
}
.chat-row {
	display: flex;
	margin-bottom: 14px;
}
.chat-row.user { justify-content: flex-end; }
.chat-row.assistant { justify-content: flex-start; }
.chat-bubble.user {
	background: linear-gradient(135deg, #4bffa5 0%, #3ee89a 100%);
	color: #071a10;
	font-weight: 500;
	border-bottom-right-radius: 6px;
}
.chat-bubble.assistant {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	color: #f0f0f5;
	border-bottom-left-radius: 6px;
	min-height: 24px;
}
.chat-bubble.assistant p { margin: 0 0 12px 0; }
.chat-bubble.assistant p:last-child { margin-bottom: 0; }
.chat-text .accent { color: #4bffa5; }

.typing-dots {
	display: inline-flex;
	gap: 5px;
	align-items: center;
	height: 20px;
}
.typing-dots span {
	width: 7px;
	height: 7px;
	background: rgba(255, 255, 255, 0.55);
	border-radius: 50%;
	animation: dotBounce 1.2s infinite ease-in-out;
}
.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes dotBounce {
	0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
	30% { transform: translateY(-4px); opacity: 1; }
}

.chat-caret {
	display: inline-block;
	width: 2px;
	height: 1.05em;
	margin-left: 2px;
	background: #4bffa5;
	vertical-align: text-bottom;
	transform: translateY(2px);
}
.chat-caret.blink { animation: caretBlink 1s steps(2, start) infinite; }
@keyframes caretBlink { to { visibility: hidden; } }

/* CTA */
.hero-cta-wrap {
	margin-top: 22px;
	padding-left: 2px;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}
.hero-cta-wrap.revealed,
.hero-cta-wrap.static {
	opacity: 1;
	transform: translateY(0);
}
.hero-cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 26px;
	background: #4bffa5;
	color: #071a10;
	text-decoration: none;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.02em;
	border-radius: 999px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	border: none;
	cursor: pointer;
}
.hero-cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 30px rgba(75, 255, 165, 0.25);
	color: #071a10;
}
.hero-cta .arrow { transition: transform 0.2s ease; }
.hero-cta:hover .arrow { transform: translateX(3px); }

/* Neutralize template's .h-title absolute positioning */
.section.started .started-content.started-chat {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

@media (max-width: 640px) {
	.hero-role { font-size: 26px; }
	.chat-bubble { font-size: 16px; padding: 12px 16px; }
	.hero-chat-wrap { padding: 16px; }
	/* Lock the assistant bubble to a fixed size on mobile so the CTA +
	   trusted-by row don't get pushed down as tokens stream in. Bubble
	   becomes internally scrollable once text overflows. */
	.chat-bubble.assistant {
		min-height: 260px;
		max-height: 260px;
		overflow-y: auto;
		overscroll-behavior: contain;
	}
}

/* ---------------------------------------------------------
   Inner-page reskin — scoped to body.hero-themed so it
   only activates on opted-in pages.
   --------------------------------------------------------- */
body.hero-themed {
	background: #050509;
	color: #e8e8ef;
}

body.hero-themed .container,
body.hero-themed .wrapper {
	background: transparent;
}

/* Glassmorphic content cards */
body.hero-themed .content-box,
body.hero-themed .service-item,
body.hero-themed .info-list,
body.hero-themed .skills,
body.hero-themed .resume-items .resume-item,
body.hero-themed .post-prev,
body.hero-themed .info-cont {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-radius: 18px;
	color: #e8e8ef;
}

body.hero-themed .content-box,
body.hero-themed .content-box p,
body.hero-themed .service-item p,
body.hero-themed .desc,
body.hero-themed .text {
	color: #cfcfdb;
}

/* Section titles */
body.hero-themed .title .title_inner,
body.hero-themed h1, body.hero-themed h2, body.hero-themed h3, body.hero-themed h4 {
	color: #ffffff;
}
body.hero-themed .title:after {
	background: #4bffa5 !important;
}

/* Service item icons + headings */
body.hero-themed .service-item .icon {
	color: #4bffa5;
}
body.hero-themed .service-item .name {
	color: #ffffff;
}

/* Info list (About) */
body.hero-themed .info-list li strong { color: #4bffa5; }
body.hero-themed .info-list li { border-bottom-color: rgba(255, 255, 255, 0.06); }

/* Skills bars */
body.hero-themed .skills .skill .progressbar {
	background: rgba(255, 255, 255, 0.08);
}
body.hero-themed .skills .skill .progressbar > div {
	background: #4bffa5 !important;
}

/* Portfolio grid */
body.hero-themed .filter-menu .f_btn label {
	color: rgba(255, 255, 255, 0.6);
}
body.hero-themed .filter-menu .f_btn input:checked + label,
body.hero-themed .filter-menu .f_btn label:hover {
	color: #4bffa5;
}
body.hero-themed .box-item .image {
	border-radius: 14px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.03);
}
body.hero-themed .box-item .image:hover {
	box-shadow: 0 10px 40px rgba(75, 255, 165, 0.18);
}
body.hero-themed .box-item .info {
	color: #ffffff;
}
body.hero-themed .box-item .info.circle {
	background: rgba(5, 5, 9, 0.78);
	color: #ffffff;
}
body.hero-themed .box-item .name,
body.hero-themed .box-item .name a { color: #ffffff; }
body.hero-themed .box-item .category { color: rgba(255, 255, 255, 0.55); }

/* Contact form bubbles */
body.hero-themed .contact_form input[type=text],
body.hero-themed .contact_form input[type=email],
body.hero-themed .contact_form textarea {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: #ffffff;
	border-radius: 18px;
	padding: 14px 18px;
	font-family: 'Roboto', sans-serif;
}
body.hero-themed .contact_form textarea { min-height: 140px; }
body.hero-themed .contact_form input::placeholder,
body.hero-themed .contact_form textarea::placeholder {
	color: rgba(255, 255, 255, 0.4);
}
body.hero-themed .contact_form input:focus,
body.hero-themed .contact_form textarea:focus {
	border-color: #4bffa5;
	outline: none;
}
body.hero-themed .contact_form label { color: rgba(255, 255, 255, 0.6); }

/* Buttons */
body.hero-themed .btn,
body.hero-themed button.btn {
	background: #4bffa5 !important;
	color: #071a10 !important;
	border: none !important;
	border-radius: 999px !important;
	padding: 14px 28px !important;
	font-weight: 600 !important;
	letter-spacing: 0.02em;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	line-height: 1 !important;
	min-height: 48px;
}
body.hero-themed .btn .circle { display: none !important; }
body.hero-themed .btn .lnk {
	position: static !important;
	display: inline-block;
	color: #071a10 !important;
	line-height: 1 !important;
}
body.hero-themed .btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 30px rgba(75, 255, 165, 0.25);
}

/* Links */
body.hero-themed a { color: #cfcfdb; }
body.hero-themed a:hover { color: #4bffa5; }
body.hero-themed a.hero-cta,
body.hero-themed a.hero-cta:hover,
.hero-cta,
.hero-cta:hover { color: #071a10; }

/* Tightened consistency layer */
body.hero-themed .section.started .centrize { padding: 120px 0 80px; }
@media (max-width: 768px) {
	body.hero-themed .section.started .centrize { padding: 90px 0 60px; }
}
body.hero-themed .hero-name {
	font-size: 13px;
	letter-spacing: 0.18em;
	margin-bottom: 14px;
}
body.hero-themed .hero-role {
	font-size: clamp(34px, 5vw, 56px);
	line-height: 1.1;
	margin-bottom: 28px;
}
body.hero-themed .content-box { padding: 40px; border-radius: 18px; }
body.hero-themed .service-items,
body.hero-themed .box-items { gap: 24px; }
body.hero-themed .service-item,
body.hero-themed .box-item { padding: 28px; border-radius: 16px; }
body.hero-themed .filter-menu a,
body.hero-themed button[type="submit"] {
	background: #4bffa5 !important;
	color: #071a10 !important;
	border: none !important;
	border-radius: 999px !important;
	padding: 12px 24px !important;
	font-weight: 600 !important;
	letter-spacing: 0.02em;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
body.hero-themed .filter-menu a:hover,
body.hero-themed button[type="submit"]:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 30px rgba(75, 255, 165, 0.25);
}
body.hero-themed .filter-menu a.active {
	box-shadow: inset 0 0 0 2px rgba(7, 26, 16, 0.35);
}
body.hero-themed h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.1; }
body.hero-themed h2,
body.hero-themed .title .title_inner { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.2; }
body.hero-themed h3 { font-size: 20px; line-height: 1.3; }
body.hero-themed p { font-size: 16px; line-height: 1.65; }

/* About page components */
body.hero-themed .section.about .content,
body.hero-themed .section.service .content,
body.hero-themed .section.skills .content { max-width: 1100px; margin: 0 auto; }
.about-tldr {
	padding: 36px 40px;
	margin-bottom: 28px;
}
.about-tldr p {
	font-size: clamp(18px, 1.6vw, 22px);
	line-height: 1.55;
	color: #e8e8ef;
	margin: 0;
}
.about-tldr strong { color: #4bffa5; font-weight: 600; }
.about-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-bottom: 28px;
}
.about-stat { padding: 32px 28px; text-align: left; }
.about-stat .num {
	font-size: clamp(36px, 5vw, 56px);
	font-weight: 700;
	color: #4bffa5;
	line-height: 1;
	margin-bottom: 8px;
	letter-spacing: -0.02em;
}
.about-stat .label {
	font-size: 12px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
}
.about-now { padding: 32px 36px; margin-bottom: 28px; }
.about-now .now-eyebrow {
	font-size: 12px;
	letter-spacing: 0.22em;
	color: #4bffa5;
	margin: 0 0 14px;
	font-weight: 700;
}
.about-now .now-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.about-now .now-list li {
	position: relative;
	padding-left: 22px;
	color: rgba(255, 255, 255, 0.82);
	line-height: 1.6;
}
.about-now .now-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 10px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #4bffa5;
	box-shadow: 0 0 12px rgba(75, 255, 165, 0.5);
}
.about-contact-strip {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 20px;
}
body.hero-themed a.contact-pill,
.contact-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.75);
	font-size: 13px;
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease;
}
body.hero-themed a.contact-pill:hover {
	border-color: rgba(75, 255, 165, 0.4);
	color: #4bffa5;
}
.contact-pill strong {
	color: #4bffa5;
	font-weight: 600;
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
@media (max-width: 768px) {
	.about-stats { grid-template-columns: 1fr; }
}

/* Skills grouped chips */
.skills-groups {
	padding: 36px 40px;
	display: flex;
	flex-direction: column;
	gap: 22px;
}
.skills-group {
	display: grid;
	grid-template-columns: 140px 1fr;
	align-items: start;
	gap: 20px;
	padding-bottom: 22px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.skills-group:last-child { border-bottom: none; padding-bottom: 0; }
.skills-group .group-label {
	font-size: 12px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #4bffa5;
	font-weight: 600;
	padding-top: 6px;
}
@media (max-width: 768px) {
	.skills-groups { padding: 28px 24px; }
	.skills-group { grid-template-columns: 1fr; gap: 12px; }
}

/* Portfolio end-of-list CTA cards */
.project-ctas {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin-top: 20px;
}
.project-cta-card {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 28px !important;
	text-decoration: none;
	transition: transform 0.3s ease, border-color 0.3s ease;
}
body.hero-themed a.project-cta-card,
body.hero-themed a.project-cta-card:hover { color: #e8e8ef; }
.project-cta-card:hover {
	transform: translateY(-4px);
	border-color: rgba(75, 255, 165, 0.4) !important;
}
.cta-icon {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: rgba(75, 255, 165, 0.1);
	border: 1px solid rgba(75, 255, 165, 0.25);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #4bffa5;
	font-size: 22px;
	flex-shrink: 0;
}
.cta-body { flex: 1; }
.cta-title {
	font-size: 17px;
	font-weight: 600;
	color: #fff;
	margin-bottom: 4px;
}
.cta-desc {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.65);
	line-height: 1.45;
}
.cta-arrow {
	font-size: 22px;
	color: #4bffa5;
	transition: transform 0.3s ease;
}
.project-cta-card:hover .cta-arrow { transform: translateX(4px); }
@media (max-width: 768px) {
	.project-ctas { grid-template-columns: 1fr; gap: 16px; }
}

/* Home trusted-by row */
.trusted-by {
	margin-top: 48px;
	max-width: 800px;
}
.trusted-label {
	font-size: 11px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.45);
	margin-bottom: 14px;
}
.trusted-marks {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 28px;
}
.trusted-marks li {
	font-size: 14px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.78);
	letter-spacing: 0.02em;
	padding: 0;
	background: none;
	border: none;
}
@media (max-width: 600px) {
	.trusted-by { margin-top: 36px; }
	.trusted-marks { gap: 10px 18px; }
	.trusted-marks li { font-size: 13px; }
}

/* Credentials grid */
body.hero-themed .section.credentials .content { max-width: 1100px; margin: 0 auto; }
.credentials-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
.cred-card {
	padding: 24px;
	text-align: left;
}
.cred-icon {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: rgba(75, 255, 165, 0.1);
	border: 1px solid rgba(75, 255, 165, 0.25);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #4bffa5;
	font-size: 18px;
	margin-bottom: 14px;
}
.cred-label {
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.5);
	margin-bottom: 6px;
}
.cred-title {
	font-size: 17px;
	font-weight: 600;
	color: #fff;
	margin-bottom: 6px;
	line-height: 1.3;
}
.cred-desc {
	font-size: 14px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.7);
}
@media (max-width: 900px) {
	.credentials-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
	.credentials-grid { grid-template-columns: 1fr; }
}

/* Contact form status */
body.hero-themed .form-status {
	margin-top: 18px;
	font-size: 14px;
	line-height: 1.5;
	min-height: 20px;
}
body.hero-themed .form-status.success { color: #4bffa5; }
body.hero-themed .form-status.error { color: #ff6b6b; }
body.hero-themed .form-status.pending { color: rgba(255, 255, 255, 0.6); }

/* Experience timeline */
body.hero-themed .section.experience .content { max-width: 1100px; margin: 0 auto; }
.exp-timeline {
	list-style: none;
	margin: 0;
	padding: 0 0 0 28px;
	position: relative;
}
.exp-timeline::before {
	content: "";
	position: absolute;
	left: 6px;
	top: 8px;
	bottom: 8px;
	width: 1px;
	background: linear-gradient(180deg, rgba(75,255,165,0.5), rgba(75,255,165,0.05));
}
.exp-item {
	position: relative;
	margin-bottom: 22px;
	list-style: none;
}
.exp-item:last-child { margin-bottom: 0; }
.exp-dot {
	position: absolute;
	left: -28px;
	top: 24px;
	width: 13px;
	height: 13px;
	border-radius: 50%;
	background: #4bffa5;
	box-shadow: 0 0 16px rgba(75, 255, 165, 0.5), 0 0 0 4px rgba(75, 255, 165, 0.1);
}
.exp-body { padding: 24px 28px; }
.exp-meta {
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.5);
	margin-bottom: 8px;
}
.exp-role {
	font-size: 18px;
	font-weight: 600;
	color: #fff;
	margin: 0 0 4px;
	line-height: 1.3;
}
.exp-company {
	font-size: 14px;
	color: #4bffa5;
	font-weight: 500;
	margin-bottom: 12px;
}
.exp-desc {
	font-size: 15px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.75);
	margin: 0;
}
@media (max-width: 600px) {
	.exp-timeline { padding-left: 22px; }
	.exp-dot { left: -22px; width: 11px; height: 11px; }
	.exp-body { padding: 20px; }
}

/* Header / footer transparency */
body.hero-themed .header {
	background: rgba(13, 12, 20, 0.6);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
body.hero-themed .footer { background: transparent; }
body.hero-themed .top-menu .menu li a { color: rgba(255, 255, 255, 0.7); }
body.hero-themed .top-menu .menu li a:hover,
body.hero-themed .top-menu .menu li.current-menu-item a { color: #4bffa5; }

/* Sliding nav panel (mobile + tablet) */
body.hero-themed .header .menu-btn:before,
body.hero-themed .header .menu-btn:after,
body.hero-themed .header .menu-btn span {
	background: #4bffa5;
	height: 2px;
	border-radius: 2px;
}
@media (max-width: 1199px) {
	body.hero-themed .header.active .top-menu {
		position: fixed;
		top: 0;
		right: 0;
		width: min(320px, 85vw);
		height: 100vh;
		margin: 0;
		padding: 100px 32px 40px;
		background: rgba(10, 12, 18, 0.85);
		backdrop-filter: blur(20px);
		-webkit-backdrop-filter: blur(20px);
		border-left: 1px solid rgba(75, 255, 165, 0.2);
		box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
		text-align: left;
		opacity: 1;
		visibility: visible;
		z-index: 40;
		overflow-y: auto;
		animation: navSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
	}
	@keyframes navSlideIn {
		from { transform: translateX(100%); opacity: 0; }
		to { transform: translateX(0); opacity: 1; }
	}
	body.hero-themed .header.active .top-menu .menu-top-menu-container { display: block; }
	body.hero-themed .header.active .top-menu ul { display: flex; flex-direction: column; gap: 4px; }
	body.hero-themed .header.active .top-menu ul li {
		display: block;
		margin: 0;
		opacity: 0;
		transform: translateX(20px);
		animation: navItemIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
	}
	body.hero-themed .header.active .top-menu ul li:nth-child(1) { animation-delay: 0.08s; }
	body.hero-themed .header.active .top-menu ul li:nth-child(2) { animation-delay: 0.14s; }
	body.hero-themed .header.active .top-menu ul li:nth-child(3) { animation-delay: 0.20s; }
	body.hero-themed .header.active .top-menu ul li:nth-child(4) { animation-delay: 0.26s; }
	body.hero-themed .header.active .top-menu ul li:nth-child(5) { animation-delay: 0.32s; }
	body.hero-themed .header.active .top-menu ul li:nth-child(6) { animation-delay: 0.38s; }
	@keyframes navItemIn {
		to { opacity: 1; transform: translateX(0); }
	}
	body.hero-themed .header.active .top-menu ul li a {
		display: block;
		font-size: 18px;
		font-weight: 600;
		line-height: 1;
		padding: 16px 18px;
		border-radius: 12px;
		color: #e8e8ef;
		opacity: 1;
		border: 1px solid transparent;
		transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
	}
	body.hero-themed .header.active .top-menu ul li a:hover,
	body.hero-themed .header.active .top-menu ul li.current-menu-item a {
		background: rgba(75, 255, 165, 0.08);
		border-color: rgba(75, 255, 165, 0.25);
		color: #4bffa5;
		transform: translateX(4px);
	}
	body.hero-themed .header.active .top-menu .sub-menu,
	body.hero-themed .header.active .top-menu .children { display: none !important; }
	body.hero-themed .header.active .top-menu ul li.menu-item-has-children > a .mask-lnk:after { display: none !important; content: none !important; }
	body.hero-themed .header.active .menu-btn {
		position: fixed;
		right: 28px;
		top: 28px;
		z-index: 50;
	}
}
body.hero-themed .lines .line-col { background: rgba(255, 255, 255, 0.03); }

/* Portfolio: hero project cards + archive */
body.hero-themed .filter-menu { display: none; }
body.hero-themed .section.works .content { max-width: 1100px; margin: 0 auto; }
.project-cards {
	display: flex;
	flex-direction: column;
	gap: 60px;
	margin: 40px 0 60px;
}
.project-card {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 40px;
	align-items: center;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(10px);
	border-radius: 20px;
	padding: 28px;
	transition: transform 0.3s ease, border-color 0.3s ease;
}
.project-card:hover {
	transform: translateY(-4px);
	border-color: rgba(75, 255, 165, 0.3);
}
.project-card.reverse { grid-template-columns: 1fr 1.1fr; }
.project-card.reverse .project-thumb { order: 2; }
.project-card.reverse .project-body { order: 1; }
.project-thumb {
	display: block;
	overflow: hidden;
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, 0.06);
	aspect-ratio: 16/10;
}
.project-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}
.project-card:hover .project-thumb img { transform: scale(1.04); }
.project-body { color: #e8e8ef; }
.project-meta {
	font-size: 12px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.5);
	margin: 0 0 10px;
}
.project-title {
	font-size: clamp(24px, 2.6vw, 32px);
	margin: 0 0 14px;
	color: #fff;
	line-height: 1.15;
}
.project-desc {
	font-size: 15px;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.75);
	margin: 0 0 18px;
}
.stack-chips {
	list-style: none;
	padding: 0;
	margin: 0 0 22px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.stack-chips li {
	display: inline-flex;
	align-items: center;
	font-size: 13px;
	line-height: 1;
	padding: 10px 16px;
	border-radius: 999px;
	background: rgba(75, 255, 165, 0.08);
	border: 1px solid rgba(75, 255, 165, 0.25);
	color: #a5ffd0;
	letter-spacing: 0.02em;
	white-space: nowrap;
	list-style: none;
}
.stack-chips li::before,
.stack-chips li::after { display: none !important; content: none !important; }
body.hero-themed .skills-groups .stack-chips,
body.hero-themed .stack-chips {
	list-style: none;
	padding: 0;
	margin: 0;
}
body.hero-themed .section.skills .skills-groups li {
	background: rgba(75, 255, 165, 0.08);
	box-shadow: none;
}
/* Neutralize template .skills ul / li defaults bleeding into our chips */
body.hero-themed .section.skills .skills-groups ul,
body.hero-themed .section.skills .skills-groups ul.stack-chips {
	margin: 0;
	padding: 0;
	font-size: 13px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
}
body.hero-themed .section.skills .skills-groups ul li,
body.hero-themed .section.skills .skills-groups ul.stack-chips li {
	position: static;
	padding: 10px 16px;
	margin: 0;
	width: auto;
	height: auto;
	display: inline-flex;
	align-items: center;
	line-height: 1;
	font-size: 13px;
	border-radius: 999px;
	background: rgba(75, 255, 165, 0.08);
	border: 1px solid rgba(75, 255, 165, 0.25);
	color: #a5ffd0;
	white-space: nowrap;
}
.project-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.project-links .hero-cta { padding: 11px 20px; font-size: 14px; }
.hero-cta.outline {
	background: transparent;
	color: #4bffa5;
	border: 1px solid rgba(75, 255, 165, 0.45);
}
body.hero-themed a.hero-cta.outline,
body.hero-themed a.hero-cta.outline:hover { color: #4bffa5; }
.hero-cta.outline:hover {
	background: rgba(75, 255, 165, 0.08);
	border-color: #4bffa5;
}

@media (max-width: 768px) {
	.project-card,
	.project-card.reverse {
		grid-template-columns: 1fr;
		gap: 22px;
		padding: 20px;
	}
	.project-card.reverse .project-thumb { order: 0; }
	.project-card.reverse .project-body { order: 0; }
	.project-cards { gap: 36px; }
}

/* Archive */
.project-archive {
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 18px;
	padding: 24px 28px;
	margin-top: 20px;
}
.project-archive summary {
	cursor: pointer;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.02em;
	list-style: none;
	display: flex;
	align-items: center;
	gap: 12px;
}
.project-archive summary::-webkit-details-marker { display: none; }
.project-archive summary::before {
	content: "+";
	display: inline-block;
	width: 22px;
	height: 22px;
	line-height: 20px;
	text-align: center;
	border-radius: 50%;
	background: rgba(75, 255, 165, 0.15);
	color: #4bffa5;
	font-weight: 700;
	transition: transform 0.2s ease;
}
.project-archive[open] summary::before { content: "−"; }
.archive-count {
	color: rgba(255, 255, 255, 0.45);
	font-weight: 400;
	font-size: 14px;
}
.archive-list {
	list-style: none;
	padding: 0;
	margin: 24px 0 0;
	display: flex;
	flex-direction: column;
}
.archive-list li {
	display: grid;
	grid-template-columns: 70px 1fr auto;
	gap: 16px;
	align-items: center;
	padding: 14px 4px;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	font-size: 14px;
}
.archive-list li:first-child { border-top: none; }
.archive-list .year {
	color: rgba(255, 255, 255, 0.45);
	font-variant-numeric: tabular-nums;
}
body.hero-themed .archive-list li a {
	color: #e8e8ef;
	text-decoration: none;
	transition: color 0.2s ease;
}
body.hero-themed .archive-list li a:hover { color: #4bffa5; }
.archive-list .cat {
	color: rgba(255, 255, 255, 0.4);
	font-size: 12px;
	text-align: right;
}
@media (max-width: 600px) {
	.archive-list li {
		grid-template-columns: 50px 1fr;
		gap: 10px;
	}
	.archive-list .cat { grid-column: 2; text-align: left; }
}

/* Project case study expandable block */
body.hero-themed .project-case-study {
	margin-top: 22px;
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 12px;
	background: rgba(255,255,255,0.03);
	padding: 14px 18px;
}
body.hero-themed .project-case-study summary {
	cursor: pointer;
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #4bffa5;
	list-style: none;
	outline: none;
}
body.hero-themed .project-case-study summary::-webkit-details-marker { display: none; }
body.hero-themed .project-case-study summary::after {
	content: " +";
	color: rgba(255,255,255,0.5);
}
body.hero-themed .project-case-study[open] summary::after { content: " −"; }
body.hero-themed .project-case-study .cs-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	margin-top: 14px;
}
body.hero-themed .project-case-study h4 {
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(255,255,255,0.55);
	margin: 0 0 6px;
}
body.hero-themed .project-case-study p {
	font-size: 14px;
	line-height: 1.55;
	color: #cfcfdb;
	margin: 0;
}
@media (max-width: 768px) {
	body.hero-themed .project-case-study .cs-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* Case study architecture diagram (inside project-case-study) */
body.hero-themed .cs-diagram {
	margin: 20px 0 0;
	padding: 0;
	border-radius: 12px;
	overflow: hidden;
	background: rgba(255,255,255,0.02);
	border: 1px solid rgba(255,255,255,0.06);
}
body.hero-themed .cs-diagram img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 360px;
	object-fit: contain;
	background: #0b0b14;
}
body.hero-themed .cs-diagram figcaption {
	font-size: 12px;
	line-height: 1.55;
	color: rgba(255,255,255,0.55);
	padding: 10px 14px 12px;
	letter-spacing: 0.02em;
}

/* Tech decisions (ADR) section on About */
body.hero-themed .section.tech-decisions .section-lede {
	color: rgba(255,255,255,0.6);
	font-size: 14px;
	margin: 0 0 24px;
	max-width: 640px;
}
body.hero-themed .adr-list {
	display: grid;
	gap: 12px;
	max-width: 860px;
}
body.hero-themed .adr {
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 14px;
	background: rgba(255,255,255,0.03);
	padding: 16px 20px;
	transition: border-color 0.2s ease, background 0.2s ease;
}
body.hero-themed .adr[open] {
	border-color: rgba(75,255,165,0.35);
	background: rgba(75,255,165,0.04);
}
body.hero-themed .adr summary {
	cursor: pointer;
	list-style: none;
	outline: none;
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}
body.hero-themed .adr summary::-webkit-details-marker { display: none; }
body.hero-themed .adr summary::after {
	content: "+";
	color: #4bffa5;
	font-size: 18px;
	line-height: 1;
	margin-left: auto;
}
body.hero-themed .adr[open] summary::after { content: "−"; }
body.hero-themed .adr-title {
	font-size: 15px;
	font-weight: 600;
	color: #f0f0f5;
	letter-spacing: 0.01em;
}
body.hero-themed .adr-meta {
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(255,255,255,0.45);
}
body.hero-themed .adr-body {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid rgba(255,255,255,0.06);
}
body.hero-themed .adr-body p {
	margin: 0 0 10px;
	font-size: 14px;
	line-height: 1.6;
	color: #cfcfdb;
}
body.hero-themed .adr-body p:last-child { margin-bottom: 0; }
body.hero-themed .adr-body strong {
	color: #4bffa5;
	font-weight: 600;
	letter-spacing: 0.02em;
}
@media (max-width: 640px) {
	body.hero-themed .adr summary { flex-direction: column; gap: 4px; }
	body.hero-themed .adr summary::after { position: absolute; right: 20px; top: 16px; }
	body.hero-themed .adr { position: relative; }
}

/* Mobile-menu social strip — shown only when the header switches to
   the hamburger dropdown (≤1199px). Hides on desktop so the top menu
   stays clean. */
body.hero-themed .top-menu-social { display: none; }
@media (max-width: 1199px) {
	body.hero-themed .top-menu-social {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 10px 12px;
		margin-top: 24px;
		padding-top: 20px;
		border-top: 1px solid rgba(255,255,255,0.08);
	}
	body.hero-themed .top-menu-social-link {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		padding: 10px 18px;
		border-radius: 999px;
		border: 1px solid rgba(255,255,255,0.12);
		background: rgba(255,255,255,0.03);
		color: #e8e8ef !important;
		font-size: 13px;
		letter-spacing: 0.12em;
		text-transform: uppercase;
		transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
	}
	body.hero-themed .top-menu-social-link:hover,
	body.hero-themed .top-menu-social-link:focus-visible {
		border-color: #4bffa5;
		color: #4bffa5 !important;
		background: rgba(75,255,165,0.06);
	}
	body.hero-themed .top-menu-social-link .icon { font-size: 16px; }
}

/* On mobile, retire the orphaned GitHub soc-box in the footer. The
   link now lives in the mobile menu; the footer keeps only the
   Codementor badge, centered. */
@media (max-width: 720px) {
	body.hero-themed .footer { text-align: center; }
	body.hero-themed .footer .soc-box { display: none; }
	body.hero-themed .footer .copy { float: none; display: inline-block; }
}

/* Featured skills group (Mobile) — subtle accent border to visually
   elevate it above the other stack categories. */
body.hero-themed .skills-group.featured {
	border-left: 2px solid #4bffa5;
	padding-left: 14px;
	margin-left: -16px;
}
body.hero-themed .skills-group.featured .group-label {
	color: #4bffa5;
}

/* ---------------------------------------------------------
   Claude-style "Thinking" state + "Thought for Xs" header
   --------------------------------------------------------- */

/* Model/mode meta row above the assistant reply. Reads as a Claude UI
   pastiche: model name + mode + a soft accent pulse while thinking. */
.assistant-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	font-size: 11px;
	letter-spacing: 0.03em;
	color: rgba(255,255,255,0.48);
	margin: -2px 0 10px;
	padding-bottom: 9px;
	border-bottom: 1px solid rgba(255,255,255,0.07);
}
.meta-model {
	color: rgba(255,255,255,0.78);
	font-weight: 500;
}
.meta-sep { color: rgba(255,255,255,0.28); }
.meta-mode {
	font-style: italic;
	transition: color 0.3s ease;
}
.chat-bubble.assistant.thinking-done .meta-mode {
	color: rgba(75,255,165,0.65);
}
.meta-pulse {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #4bffa5;
	box-shadow: 0 0 0 0 rgba(75,255,165,0.55);
	animation: meta-pulse 1.8s ease-out infinite;
	margin-left: auto;
	flex-shrink: 0;
}
@keyframes meta-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(75,255,165,0.55); opacity: 1; }
	70%  { box-shadow: 0 0 0 7px rgba(75,255,165,0); opacity: 0.75; }
	100% { box-shadow: 0 0 0 0 rgba(75,255,165,0); opacity: 1; }
}
.chat-bubble.assistant.thinking-done .meta-pulse {
	animation: none;
	background: rgba(75,255,165,0.45);
	box-shadow: none;
	opacity: 0.55;
}

/* Bubble glow — pulses while thinking, fades on completion. */
.chat-bubble.assistant.thinking-active {
	border-color: rgba(75,255,165,0.28);
	animation: bubble-thinking-pulse 2.2s ease-in-out infinite;
}
@keyframes bubble-thinking-pulse {
	0%, 100% {
		box-shadow:
			0 0 0 1px rgba(75,255,165,0.14),
			0 0 24px -6px rgba(75,255,165,0.28);
	}
	50% {
		box-shadow:
			0 0 0 1px rgba(75,255,165,0.28),
			0 0 38px -3px rgba(75,255,165,0.48);
	}
}
.chat-bubble.assistant.thinking-done {
	transition: border-color 0.8s ease, box-shadow 0.8s ease;
	border-color: rgba(255,255,255,0.1);
	box-shadow: none;
}

/* Idle "breathing" state — applied ~900ms after thinking-done so the
   fade-out transition finishes cleanly first. Much slower and gentler
   than the thinking pulse so it doesn't compete with the CTA buttons. */
.chat-bubble.assistant.thinking-done.thinking-idle {
	animation: bubble-idle-breathe 5.5s ease-in-out infinite;
}
@keyframes bubble-idle-breathe {
	0%, 100% { box-shadow: 0 0 22px -8px rgba(75,255,165,0.06); }
	50%      { box-shadow: 0 0 32px -4px rgba(75,255,165,0.16); }
}

.thinking-state {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 2px 0;
}
.thinking-label {
	font-size: 17px;
	font-weight: 500;
	line-height: 1.2;
	background: linear-gradient(
		90deg,
		rgba(255,255,255,0.28) 0%,
		rgba(255,255,255,0.35) 35%,
		rgba(255,255,255,0.95) 50%,
		rgba(255,255,255,0.35) 65%,
		rgba(255,255,255,0.28) 100%
	);
	background-size: 250% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
	animation: thinking-shimmer 2.2s linear infinite;
}
.thinking-label::after { content: "\2026"; margin-left: 1px; }

@keyframes thinking-shimmer {
	0%   { background-position: 250% 0; }
	100% { background-position: -250% 0; }
}

/* Live-streaming reasoning trace. Fixed max-height with a fade mask at
   the top so older lines appear to "scroll away" as new ones arrive. */
.thinking-stream {
	position: relative;
	font-size: 13px;
	line-height: 1.55;
	color: rgba(255,255,255,0.52);
	font-style: italic;
	max-height: 68px;
	overflow-y: auto;
	padding-right: 4px;
	-ms-overflow-style: none;
	scrollbar-width: none;
	-webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 40%, #000 100%);
	mask-image: linear-gradient(to bottom, transparent 0%, #000 40%, #000 100%);
	transition: opacity 0.25s ease;
}
.thinking-stream::-webkit-scrollbar { display: none; }
.thinking-stream strong {
	color: rgba(255,255,255,0.88);
	font-weight: 600;
	font-style: normal;
}

/* Thought for Xs collapsible header */
.thought-header {
	margin: 0 0 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid rgba(255,255,255,0.07);
	animation: thought-header-in 0.35s ease both;
}
@keyframes thought-header-in {
	from { opacity: 0; transform: translateY(-4px); }
	to   { opacity: 1; transform: translateY(0); }
}
.thought-toggle {
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: rgba(255,255,255,0.5);
	font-family: inherit;
	font-size: 12px;
	letter-spacing: 0.04em;
	transition: color 0.2s ease;
}
.thought-toggle:hover,
.thought-toggle:focus-visible { color: #4bffa5; outline: none; }
.thought-chevron {
	display: inline-block;
	font-size: 10px;
	line-height: 1;
	transform: rotate(0deg);
	transition: transform 0.2s ease;
}
.thought-toggle[aria-expanded="true"] .thought-chevron {
	transform: rotate(90deg);
}
.thought-trace {
	margin-top: 10px;
	padding: 10px 14px;
	border-left: 2px solid rgba(75,255,165,0.3);
	background: rgba(255,255,255,0.025);
	border-radius: 4px;
	font-size: 12.5px;
	line-height: 1.6;
	color: rgba(255,255,255,0.55);
	font-style: italic;
	animation: thought-trace-in 0.25s ease both;
}
.thought-trace p { margin: 0; }
.thought-trace strong {
	color: rgba(75,255,165,0.92);
	font-weight: 600;
	font-style: normal;
}
@keyframes thought-trace-in {
	from { opacity: 0; max-height: 0; }
	to   { opacity: 1; max-height: 240px; }
}
