/**
 * Hasan Mahmud Portfolio — design system + layout.
 * All colour, gradient and shadow values are defined once as tokens.
 */

:root {
	--hm-navy-900: #070a16;
	--hm-navy-800: #0b1022;
	--hm-navy-700: #111834;
	--hm-charcoal: #14192b;
	--hm-line: rgba(255, 255, 255, 0.08);
	--hm-line-strong: rgba(255, 255, 255, 0.16);
	--hm-text: #eef1f8;
	--hm-text-muted: #9aa4c0;
	--hm-purple: #7c5cff;
	--hm-blue: #2ea8ff;
	--hm-accent-grad: linear-gradient(120deg, #7c5cff 0%, #2ea8ff 100%);
	--hm-surface: rgba(255, 255, 255, 0.04);
	--hm-surface-2: rgba(255, 255, 255, 0.06);
	--hm-glass: rgba(11, 16, 34, 0.72);
	--hm-shadow: 0 18px 50px -30px rgba(4, 7, 18, 0.9);
	--hm-radius: 18px;
	--hm-radius-sm: 12px;
	--hm-container: 1200px;
	--hm-font-head: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
	--hm-font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
	--hm-header-h: 74px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

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

body.hm-theme {
	margin: 0;
	background-color: var(--hm-navy-900);
	color: var(--hm-text);
	font-family: var(--hm-font-body);
	font-size: 1rem;
	line-height: 1.65;
	overflow-x: hidden;
}

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

a {
	color: inherit;
	text-decoration: none;
}

h1, h2, h3, h4 {
	font-family: var(--hm-font-head);
	line-height: 1.15;
	letter-spacing: -0.02em;
	margin: 0 0 0.6em;
	font-weight: 700;
}

p {
	margin: 0 0 1em;
}

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

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

.hm-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	background: var(--hm-navy-700);
	color: var(--hm-text);
	padding: 0.75rem 1rem;
}

.hm-skip-link:focus {
	left: 1rem;
	top: 1rem;
}

.hm-container {
	width: 100%;
	max-width: var(--hm-container);
	margin-inline: auto;
	padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.hm-narrow {
	max-width: 780px;
}

.hm-center {
	text-align: center;
}

.hm-muted {
	color: var(--hm-text-muted);
}

/* ---------- Header ---------- */

.hm-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: var(--hm-glass);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.25s ease, background 0.25s ease;
}

.hm-header.is-stuck {
	border-bottom-color: var(--hm-line);
	background: rgba(7, 10, 22, 0.9);
}

.hm-header__inner {
	min-height: var(--hm-header-h);
	display: flex;
	align-items: center;
	gap: 1.25rem;
	justify-content: space-between;
}

.hm-logo {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-family: var(--hm-font-head);
	font-weight: 800;
	letter-spacing: 0.12em;
	font-size: 0.9rem;
}

.hm-logo__mark {
	width: 26px;
	height: 26px;
	border-radius: 8px;
	background-image: var(--hm-accent-grad);
	flex: none;
}

.hm-nav__list {
	display: flex;
	align-items: center;
	gap: 1.4rem;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.92rem;
}

.hm-nav__list a {
	color: var(--hm-text-muted);
	transition: color 0.2s ease;
	padding-block: 0.25rem;
}

.hm-nav__list a:hover,
.hm-nav__list .current-menu-item > a {
	color: var(--hm-text);
}

.hm-header__actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.hm-burger {
	display: none;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	border: 1px solid var(--hm-line-strong);
	background: var(--hm-surface);
	cursor: pointer;
	position: relative;
}

.hm-burger__bars,
.hm-burger__bars::before,
.hm-burger__bars::after {
	position: absolute;
	left: 50%;
	width: 18px;
	height: 2px;
	background: var(--hm-text);
	transform: translateX(-50%);
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.hm-burger__bars {
	top: 50%;
	margin-top: -1px;
}

.hm-burger__bars::before {
	content: "";
	top: -6px;
}

.hm-burger__bars::after {
	content: "";
	top: 6px;
}

.hm-burger[aria-expanded="true"] .hm-burger__bars {
	background: transparent;
}

.hm-burger[aria-expanded="true"] .hm-burger__bars::before {
	transform: translateX(-50%) translateY(6px) rotate(45deg);
}

.hm-burger[aria-expanded="true"] .hm-burger__bars::after {
	transform: translateX(-50%) translateY(-6px) rotate(-45deg);
}

/* ---------- Buttons ---------- */

.hm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.85rem 1.5rem;
	border-radius: 999px;
	font-family: var(--hm-font-head);
	font-weight: 600;
	font-size: 0.95rem;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.hm-btn--sm {
	padding: 0.6rem 1.1rem;
	font-size: 0.85rem;
}

.hm-btn--primary {
	background-image: var(--hm-accent-grad);
	color: #fff;
	box-shadow: 0 12px 30px -16px rgba(124, 92, 255, 0.9);
}

.hm-btn--primary:hover {
	transform: translateY(-2px);
}

.hm-btn--ghost {
	border-color: var(--hm-line-strong);
	background: var(--hm-surface);
	color: var(--hm-text);
}

.hm-btn--ghost:hover {
	border-color: rgba(46, 168, 255, 0.6);
	background: var(--hm-surface-2);
}

.hm-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--hm-blue);
}

.hm-link:hover {
	color: var(--hm-purple);
}

/* ---------- Sections ---------- */

.hm-section {
	padding-block: clamp(3.5rem, 8vw, 7rem);
	position: relative;
}

.hm-section__head {
	max-width: 720px;
	margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.hm-section__title {
	font-size: clamp(1.85rem, 4vw, 2.9rem);
}

.hm-section__intro {
	color: var(--hm-text-muted);
	font-size: 1.05rem;
}

.hm-section__more {
	margin-top: 2.5rem;
}

.hm-eyebrow {
	font-size: 0.75rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--hm-blue);
	font-weight: 600;
	margin-bottom: 0.9rem;
}

.hm-eyebrow--pill {
	display: inline-block;
	border: 1px solid var(--hm-line-strong);
	border-radius: 999px;
	padding: 0.45rem 1rem;
	background: var(--hm-surface);
	color: var(--hm-text);
}

/* ---------- Hero ---------- */

.hm-hero {
	position: relative;
	padding-block: clamp(3rem, 7vw, 6rem) clamp(2.5rem, 6vw, 5rem);
	overflow: hidden;
}

.hm-hero__bg,
.hm-ai__bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
}

.hm-orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(90px);
	opacity: 0.5;
	animation: hm-float 18s ease-in-out infinite;
}

.hm-orb--1 {
	width: 480px;
	height: 480px;
	top: -160px;
	right: -120px;
	background: rgba(124, 92, 255, 0.5);
}

.hm-orb--2 {
	width: 380px;
	height: 380px;
	bottom: -160px;
	left: -100px;
	background: rgba(46, 168, 255, 0.35);
	animation-delay: -6s;
}

.hm-orb--3 {
	width: 520px;
	height: 520px;
	top: -180px;
	left: 40%;
	background: rgba(124, 92, 255, 0.28);
}

.hm-grid-lines {
	position: absolute;
	inset: 0;
	background-image: linear-gradient(var(--hm-line) 1px, transparent 1px),
		linear-gradient(90deg, var(--hm-line) 1px, transparent 1px);
	background-size: 72px 72px;
	mask-image: radial-gradient(circle at 50% 30%, rgba(0, 0, 0, 0.9), transparent 72%);
	opacity: 0.5;
}

@keyframes hm-float {
	0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
	50% { transform: translate3d(0, -28px, 0) scale(1.06); }
}

.hm-hero__inner {
	position: relative;
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
}

.hm-hero__title {
	font-size: clamp(2.3rem, 6vw, 4.1rem);
	font-weight: 800;
	background: linear-gradient(180deg, #ffffff 30%, #b9c3e0 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.hm-hero__text {
	color: var(--hm-text-muted);
	font-size: clamp(1rem, 1.6vw, 1.15rem);
	max-width: 34rem;
}

.hm-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	margin-top: 1.75rem;
}

.hm-hero__positioning {
	margin-top: 1.75rem;
	font-size: 0.9rem;
	color: var(--hm-text-muted);
	border-left: 2px solid var(--hm-purple);
	padding-left: 0.9rem;
}

.hm-hero__frame {
	position: relative;
	border-radius: 26px;
	overflow: hidden;
	border: 1px solid var(--hm-line-strong);
	background: var(--hm-surface);
	box-shadow: var(--hm-shadow);
}

.hm-hero__frame img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.hm-hero__badge {
	position: absolute;
	left: 1rem;
	right: 1rem;
	bottom: 1rem;
	padding: 0.85rem 1rem;
	border-radius: 14px;
	background: rgba(7, 10, 22, 0.72);
	backdrop-filter: blur(10px);
	border: 1px solid var(--hm-line);
	display: grid;
	gap: 0.15rem;
	font-size: 0.85rem;
}

.hm-hero__badge span {
	color: var(--hm-text-muted);
}

.hm-placeholder {
	display: grid;
	place-items: center;
	text-align: center;
	padding: 2rem;
	aspect-ratio: 4 / 5;
	color: var(--hm-text-muted);
	background-image: var(--hm-accent-grad);
	background-blend-mode: overlay;
	background-color: var(--hm-navy-700);
}

.hm-placeholder--tall {
	aspect-ratio: 4 / 5;
	border-radius: var(--hm-radius);
}

/* ---------- Trust bar ---------- */

.hm-trust {
	border-block: 1px solid var(--hm-line);
	background: rgba(255, 255, 255, 0.02);
}

.hm-trust__list {
	list-style: none;
	margin: 0;
	padding: 1.1rem 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 2rem;
	justify-content: space-between;
	font-size: 0.85rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--hm-text-muted);
}

/* ---------- Grid & cards ---------- */

.hm-grid {
	display: grid;
	gap: 1.25rem;
}

.hm-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hm-grid--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hm-card {
	background: var(--hm-surface);
	border: 1px solid var(--hm-line);
	border-radius: var(--hm-radius);
	padding: 1.5rem;
	transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
	position: relative;
	overflow: hidden;
}

.hm-card:hover {
	transform: translateY(-4px);
	border-color: var(--hm-line-strong);
	background: var(--hm-surface-2);
}

.hm-card--project {
	padding: 0;
	display: flex;
	flex-direction: column;
}

.hm-card__media {
	display: block;
	aspect-ratio: 16 / 11;
	background: linear-gradient(140deg, rgba(124, 92, 255, 0.35), rgba(46, 168, 255, 0.2));
	overflow: hidden;
}

.hm-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.hm-card--project:hover .hm-card__media img {
	transform: scale(1.04);
}

.hm-card__body {
	padding: 1.4rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	flex: 1;
}

.hm-card__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1rem;
}

.hm-card__num {
	font-family: var(--hm-font-head);
	font-size: 0.8rem;
	letter-spacing: 0.18em;
	color: var(--hm-text-muted);
}

.hm-card__meta {
	font-size: 0.75rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--hm-blue);
	margin: 0;
}

.hm-card__title {
	font-size: 1.2rem;
	margin: 0;
}

.hm-card__title--sm {
	font-size: 1rem;
}

.hm-card__text {
	color: var(--hm-text-muted);
	font-size: 0.95rem;
	margin: 0;
}

.hm-card__result {
	margin: 0.25rem 0 0;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--hm-text);
	border: 1px dashed var(--hm-line-strong);
	border-radius: 10px;
	padding: 0.5rem 0.75rem;
}

.hm-card--project .hm-btn {
	margin-top: auto;
	align-self: flex-start;
}

.hm-card--service .hm-link {
	margin-top: 0.75rem;
}

.hm-card--skill {
	text-align: left;
}

.hm-icon {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background-image: var(--hm-accent-grad);
	font-size: 1.15rem;
	color: #fff;
	margin-bottom: 0.5rem;
}

.hm-icon--img img {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	object-fit: cover;
}

.hm-icon--dot {
	background-image: var(--hm-accent-grad);
	width: 14px;
	height: 14px;
	border-radius: 50%;
}

/* ---------- About ---------- */

.hm-about__grid {
	display: grid;
	grid-template-columns: 0.85fr 1.15fr;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: start;
}

.hm-about__photo {
	border-radius: var(--hm-radius);
	border: 1px solid var(--hm-line-strong);
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.hm-about__block {
	margin-top: 1.75rem;
}

.hm-about__label {
	font-size: 0.78rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--hm-text-muted);
	margin-bottom: 0.6rem;
}

.hm-tags {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	padding: 0;
	margin: 0;
}

.hm-tag {
	border: 1px solid var(--hm-line-strong);
	border-radius: 999px;
	padding: 0.4rem 0.9rem;
	font-size: 0.85rem;
	background: var(--hm-surface);
}

.hm-prose {
	color: var(--hm-text-muted);
}

.hm-prose h2,
.hm-prose h3 {
	color: var(--hm-text);
}

.hm-prose a {
	color: var(--hm-blue);
	text-decoration: underline;
}

/* ---------- Results ---------- */

.hm-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
}

.hm-stat {
	border: 1px solid var(--hm-line);
	border-radius: var(--hm-radius);
	padding: 1.75rem;
	background: linear-gradient(160deg, rgba(124, 92, 255, 0.12), rgba(46, 168, 255, 0.06));
}

.hm-stat__value {
	font-family: var(--hm-font-head);
	font-size: clamp(2rem, 4vw, 2.9rem);
	font-weight: 800;
	margin: 0;
}

.hm-stat__label {
	margin: 0.35rem 0 0;
	color: var(--hm-text-muted);
	font-size: 0.9rem;
}

.hm-stats--compact .hm-stat {
	padding: 1.25rem;
}

.hm-results__note {
	margin-top: 1.25rem;
	font-size: 0.85rem;
	color: var(--hm-text-muted);
}

/* ---------- AI ---------- */

.hm-ai {
	overflow: hidden;
	border-block: 1px solid var(--hm-line);
}

.hm-ai__grid {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
}

.hm-ai__message {
	font-family: var(--hm-font-head);
	font-size: clamp(1.1rem, 2vw, 1.4rem);
	color: var(--hm-text);
}

.hm-ai__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
}

.hm-ai__item {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	border: 1px solid var(--hm-line);
	border-radius: var(--hm-radius-sm);
	padding: 0.75rem 0.9rem;
	background: var(--hm-surface);
	font-size: 0.92rem;
}

.hm-ai__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-image: var(--hm-accent-grad);
	flex: none;
}

/* ---------- Timeline ---------- */

.hm-timeline {
	list-style: none;
	margin: 0;
	padding: 0 0 0 1.5rem;
	border-left: 1px solid var(--hm-line-strong);
	display: grid;
	gap: 2rem;
}

.hm-timeline__item {
	position: relative;
}

.hm-timeline__marker {
	position: absolute;
	left: -1.9rem;
	top: 0.4rem;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background-image: var(--hm-accent-grad);
}

.hm-timeline__role {
	margin: 0 0 0.25rem;
	font-size: 1.25rem;
}

.hm-timeline__company {
	margin: 0;
	color: var(--hm-blue);
	font-size: 0.9rem;
}

.hm-timeline__dates {
	margin: 0.15rem 0 0.6rem;
	font-size: 0.85rem;
	color: var(--hm-text-muted);
}

.hm-timeline__text {
	color: var(--hm-text-muted);
	margin: 0;
	max-width: 60ch;
}

/* ---------- Testimonials ---------- */

.hm-slider {
	position: relative;
}

.hm-slider__viewport {
	overflow: hidden;
	border-radius: var(--hm-radius);
}

.hm-slider__track {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hm-slide {
	flex: 0 0 100%;
	padding: 0.25rem;
}

.hm-review {
	margin: 0;
	border: 1px solid var(--hm-line);
	border-radius: var(--hm-radius);
	background: linear-gradient(160deg, rgba(124, 92, 255, 0.1), rgba(255, 255, 255, 0.03));
	padding: clamp(1.5rem, 4vw, 2.75rem);
	display: grid;
	gap: 1rem;
}

.hm-stars {
	display: inline-flex;
	gap: 0.15rem;
	color: #ffc44d;
}

.hm-review__quote {
	margin: 0;
	font-family: var(--hm-font-head);
	font-size: clamp(1.05rem, 2vw, 1.4rem);
	line-height: 1.5;
}

.hm-review__quote--lg {
	font-size: clamp(1.15rem, 2.4vw, 1.6rem);
}

.hm-review__foot {
	display: flex;
	align-items: center;
	gap: 0.85rem;
}

.hm-review__avatar img {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid var(--hm-line-strong);
}

.hm-review__id {
	display: grid;
	font-size: 0.9rem;
}

.hm-review__id span {
	color: var(--hm-text-muted);
	font-size: 0.82rem;
}

.hm-review__media img {
	border-radius: var(--hm-radius-sm);
	border: 1px solid var(--hm-line);
}

.hm-slider__controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-top: 1.5rem;
}

.hm-slider__btn {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid var(--hm-line-strong);
	background: var(--hm-surface);
	color: var(--hm-text);
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.hm-slider__btn:hover {
	background: var(--hm-surface-2);
	transform: translateY(-2px);
}

.hm-slider__dots {
	display: flex;
	gap: 0.5rem;
}

.hm-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	border: 0;
	padding: 0;
	background: var(--hm-line-strong);
	cursor: pointer;
}

.hm-dot.is-active {
	background-image: var(--hm-accent-grad);
	width: 26px;
	border-radius: 999px;
}

/* ---------- Contact ---------- */

.hm-contact__grid {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: start;
}

.hm-contact__text {
	color: var(--hm-text-muted);
	font-size: 1.05rem;
}

.hm-contact__details,
.hm-social {
	list-style: none;
	margin: 1.5rem 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem 1.25rem;
	color: var(--hm-text-muted);
	font-size: 0.92rem;
}

.hm-social__link {
	border: 1px solid var(--hm-line-strong);
	border-radius: 999px;
	padding: 0.4rem 0.95rem;
	font-size: 0.85rem;
	color: var(--hm-text);
	display: inline-block;
}

.hm-social__link:hover {
	border-color: rgba(46, 168, 255, 0.6);
}

.hm-form {
	border: 1px solid var(--hm-line);
	border-radius: var(--hm-radius);
	background: var(--hm-surface);
	padding: clamp(1.25rem, 3vw, 2rem);
}

.hm-form__row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.hm-form__field {
	display: grid;
	gap: 0.4rem;
	margin: 0 0 1rem;
}

.hm-form label {
	font-size: 0.82rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--hm-text-muted);
}

.hm-form input,
.hm-form select,
.hm-form textarea {
	width: 100%;
	font: inherit;
	color: var(--hm-text);
	background: rgba(7, 10, 22, 0.6);
	border: 1px solid var(--hm-line-strong);
	border-radius: var(--hm-radius-sm);
	padding: 0.8rem 0.95rem;
}

.hm-form textarea {
	resize: vertical;
	min-height: 140px;
}

.hm-form input:focus,
.hm-form select:focus,
.hm-form textarea:focus {
	border-color: rgba(46, 168, 255, 0.7);
	outline: none;
	box-shadow: 0 0 0 3px rgba(46, 168, 255, 0.18);
}

.hm-form__honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.hm-form__submit {
	margin: 0.5rem 0 0;
}

.hm-notice {
	border-radius: var(--hm-radius-sm);
	padding: 0.9rem 1.1rem;
	margin-bottom: 1rem;
	border: 1px solid var(--hm-line-strong);
	font-size: 0.92rem;
}

.hm-notice--ok {
	border-color: rgba(70, 214, 150, 0.5);
	background: rgba(70, 214, 150, 0.12);
}

.hm-notice--error {
	border-color: rgba(255, 106, 106, 0.5);
	background: rgba(255, 106, 106, 0.12);
}

/* ---------- Single / archive ---------- */

.hm-single__hero {
	position: relative;
	overflow: hidden;
	padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 2.5rem);
}

.hm-single__hero > .hm-container {
	position: relative;
}

.hm-single__title {
	font-size: clamp(1.9rem, 4.5vw, 3.2rem);
}

.hm-single__lead {
	color: var(--hm-text-muted);
	font-size: 1.1rem;
	max-width: 60ch;
}

.hm-single__cover img {
	width: 100%;
	border-radius: var(--hm-radius);
	border: 1px solid var(--hm-line);
}

.hm-single__layout {
	display: grid;
	grid-template-columns: 1.4fr 0.6fr;
	gap: clamp(2rem, 5vw, 3.5rem);
	padding-block: clamp(2.5rem, 6vw, 4rem);
	align-items: start;
}

.hm-single__block {
	margin-bottom: 2.5rem;
}

.hm-single__block h2 {
	font-size: clamp(1.3rem, 2.5vw, 1.75rem);
}

.hm-panel {
	border: 1px solid var(--hm-line);
	border-radius: var(--hm-radius);
	background: var(--hm-surface);
	padding: 1.5rem;
	margin-bottom: 1.25rem;
	position: sticky;
	top: calc(var(--hm-header-h) + 1.5rem);
}

.hm-panel--cta {
	position: static;
	background: linear-gradient(160deg, rgba(124, 92, 255, 0.18), rgba(46, 168, 255, 0.08));
}

.hm-panel__title {
	font-size: 1.05rem;
	margin-bottom: 1rem;
}

.hm-details {
	margin: 0 0 1.25rem;
	display: grid;
	gap: 0.5rem;
	font-size: 0.9rem;
}

.hm-details dt {
	color: var(--hm-text-muted);
	font-size: 0.78rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.hm-details dd {
	margin: 0 0 0.5rem;
}

.hm-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 1rem;
}

.hm-gallery__item {
	margin: 0;
}

.hm-gallery__item img {
	border-radius: var(--hm-radius-sm);
	border: 1px solid var(--hm-line);
	width: 100%;
}

.hm-single__nav {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 2rem 4rem;
	border-top: 1px solid var(--hm-line);
	font-size: 0.92rem;
	color: var(--hm-text-muted);
}

.hm-breadcrumbs ol {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	padding: 0;
	margin: 0 0 1.25rem;
	font-size: 0.82rem;
	color: var(--hm-text-muted);
}

.hm-breadcrumbs li + li::before {
	content: "/";
	margin-right: 0.5rem;
	opacity: 0.5;
}

.hm-pagination {
	margin-top: 2.5rem;
}

.hm-pagination .page-numbers {
	display: inline-block;
	padding: 0.5rem 0.85rem;
	border: 1px solid var(--hm-line);
	border-radius: 10px;
	margin-right: 0.35rem;
	font-size: 0.9rem;
}

.hm-pagination .current {
	background-image: var(--hm-accent-grad);
	border-color: transparent;
}

/* ---------- Footer ---------- */

.hm-footer {
	border-top: 1px solid var(--hm-line);
	background: var(--hm-navy-800);
	padding-top: clamp(2.5rem, 6vw, 4rem);
}

.hm-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
	gap: 2rem;
	padding-bottom: 2.5rem;
}

.hm-footer__name {
	font-family: var(--hm-font-head);
	font-weight: 800;
	letter-spacing: 0.14em;
	margin: 0 0 0.35rem;
}

.hm-footer__role {
	color: var(--hm-blue);
	margin: 0 0 0.5rem;
	font-size: 0.92rem;
}

.hm-footer__tag {
	color: var(--hm-text-muted);
	font-size: 0.88rem;
	max-width: 34ch;
}

.hm-footer__title {
	font-size: 0.82rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--hm-text-muted);
	margin-bottom: 0.9rem;
}

.hm-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.5rem;
	font-size: 0.92rem;
	color: var(--hm-text-muted);
}

.hm-footer__list a:hover {
	color: var(--hm-text);
}

.hm-footer__widgets {
	padding-bottom: 2rem;
}

.hm-footer__bottom {
	border-top: 1px solid var(--hm-line);
	padding-block: 1.25rem;
	font-size: 0.85rem;
	color: var(--hm-text-muted);
}

.hm-footer__bottom p {
	margin: 0;
}

/* ---------- Scroll reveal ---------- */

.hm-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.hm-reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
	.hm-hero__inner,
	.hm-about__grid,
	.hm-ai__grid,
	.hm-contact__grid,
	.hm-single__layout {
		grid-template-columns: 1fr;
	}

	.hm-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hm-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

	.hm-panel { position: static; }

	.hm-hero__media { max-width: 460px; }
}

@media (max-width: 900px) {
	.hm-burger { display: block; }

	.hm-nav {
		position: fixed;
		inset: var(--hm-header-h) 0 auto;
		background: rgba(7, 10, 22, 0.97);
		backdrop-filter: blur(12px);
		border-bottom: 1px solid var(--hm-line);
		display: none;
		padding: 1rem clamp(1rem, 4vw, 2.5rem) 1.5rem;
	}

	.hm-nav.is-open { display: block; }

	.hm-nav__list {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.35rem;
		font-size: 1rem;
	}

	.hm-nav__list li { width: 100%; }

	.hm-nav__list a {
		display: block;
		padding: 0.7rem 0;
		border-bottom: 1px solid var(--hm-line);
		width: 100%;
	}

	.hm-stats { grid-template-columns: 1fr; }
	.hm-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
	.hm-grid--3,
	.hm-grid--4,
	.hm-ai__list,
	.hm-form__row {
		grid-template-columns: 1fr;
	}

	.hm-trust__list { justify-content: flex-start; gap: 0.5rem 1.25rem; }
	.hm-footer__grid { grid-template-columns: 1fr; }
	.hm-header__actions .hm-btn { display: none; }
	.hm-single__nav { flex-direction: column; }
}

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

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

	.hm-reveal { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------
   Search form, empty states, comments, CTA band
   --------------------------------------------------------- */
.hm-searchform {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	max-width: 560px;
}

.hm-searchform__input {
	flex: 1 1 240px;
	padding: 13px 16px;
	border-radius: 12px;
	border: 1px solid var(--hm-border);
	background: var(--hm-surface);
	color: var(--hm-text);
	font: inherit;
}

.hm-searchform__input::placeholder { color: var(--hm-muted); }
.hm-searchform__input:focus-visible { outline: 2px solid var(--hm-accent); outline-offset: 2px; }

.hm-archive__search { margin-bottom: 34px; }

.hm-empty {
	text-align: center;
	padding: 48px 24px;
	border: 1px solid var(--hm-border);
	border-radius: var(--hm-radius);
	background: var(--hm-surface);
}

.hm-empty__title { font-size: clamp(1.4rem, 3vw, 2rem); margin: 0 0 10px; }
.hm-empty .hm-searchform { margin: 24px auto; justify-content: center; }
.hm-empty__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 0; }

.hm-comments {
	margin-top: 56px;
	padding-top: 32px;
	border-top: 1px solid var(--hm-border);
}

.hm-comments__title { font-size: 1.3rem; margin: 0 0 20px; }
.hm-comments__list { list-style: none; margin: 0 0 32px; padding: 0; }
.hm-comments__list ol { list-style: none; padding-left: 24px; }

.hm-comments__list .comment-body {
	padding: 18px 20px;
	margin-bottom: 16px;
	border: 1px solid var(--hm-border);
	border-radius: 14px;
	background: var(--hm-surface);
}

.hm-comments__list .comment-meta { font-size: 0.85rem; color: var(--hm-muted); margin-bottom: 8px; }
.hm-comments__list .avatar { border-radius: 50%; margin-right: 10px; vertical-align: middle; }

.hm-comment-form p { margin-bottom: 16px; }

.hm-comment-form input[type="text"],
.hm-comment-form input[type="email"],
.hm-comment-form input[type="url"],
.hm-comment-form textarea {
	width: 100%;
	padding: 13px 16px;
	border-radius: 12px;
	border: 1px solid var(--hm-border);
	background: var(--hm-surface);
	color: var(--hm-text);
	font: inherit;
}

.hm-cta {
	padding: clamp(40px, 6vw, 72px) 0;
	border-top: 1px solid var(--hm-border);
	background: var(--hm-surface);
}

.hm-cta__inner {
	display: flex;
	gap: 28px;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
}

.hm-cta__title { font-size: clamp(1.5rem, 3.4vw, 2.3rem); margin: 0 0 8px; }
.hm-cta__text { color: var(--hm-muted); margin: 0; max-width: 56ch; }
.hm-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 0; }

.hm-single__icon { margin-bottom: 14px; }
