/*
Theme Name: JemmyTech
Theme URI: https://jemmytech.local/
Author: JemmyTech Solutions
Description: A dark, modern block theme for JemmyTech Solutions, a mobile app development company.
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.2.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jemmytech
*/

/* ---------- Base ---------- */

html {
	scroll-behavior: smooth;
	scroll-padding-top: 96px;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

::selection {
	background: rgba(124, 58, 237, 0.45);
	color: #fff;
}

.wp-site-blocks > * {
	margin-block-start: 0;
}

.jt-main {
	margin-block-start: 0;
}

.jt-home > * {
	margin-block-start: 0 !important;
}

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

.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
}

.jt-header {
	position: relative;
	padding-block: 0.9rem;
}

/* The blur lives on a pseudo-element: backdrop-filter on .jt-header itself would
   become the containing block for the fixed mobile menu overlay and clip it. */
.jt-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(11, 11, 18, 0.72);
	-webkit-backdrop-filter: saturate(160%) blur(16px);
	backdrop-filter: saturate(160%) blur(16px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.jt-header .jt-logo {
	white-space: nowrap;
}

.jt-header-actions {
	gap: 1.75rem;
}

.jt-logo a {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
}

.jt-logo a::before {
	content: "";
	flex: none;
	width: 1.6rem;
	height: 1.6rem;
	border-radius: 0.5rem;
	background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
	box-shadow: 0 0 18px rgba(124, 58, 237, 0.55);
}

.jt-nav .wp-block-navigation-item__content {
	transition: color 0.2s ease;
}

.jt-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 1.5rem clamp(1rem, 5vw, 2rem);
	background:
		radial-gradient(60% 40% at 80% 0%, rgba(124, 58, 237, 0.25) 0%, rgba(11, 11, 18, 0) 70%),
		#0b0b12;
}

.jt-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 3.5rem;
}

.jt-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 1.25rem;
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 600;
}

.jt-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	color: #fff;
}

.jt-nav .wp-block-navigation__responsive-container-open,
.jt-nav .wp-block-navigation__responsive-container-close {
	padding: 0.4rem;
	border-radius: 10px;
	color: #fff;
}

/* Use the menu toggle below 1024px: seven items do not fit beside the logo on tablets. */
@media (min-width: 600px) and (max-width: 1023px) {
	.jt-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.jt-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

/* Keyboard focus */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid #a78bfa;
	outline-offset: 3px;
	border-radius: 4px;
}

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

.wp-block-button__link {
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.wp-block-button__link:hover {
	transform: translateY(-2px);
}

.jt-btn-glow .wp-block-button__link {
	background-image: linear-gradient(135deg, #7c3aed 0%, #9061f9 100%);
	box-shadow: 0 10px 30px -8px rgba(124, 58, 237, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.jt-btn-glow .wp-block-button__link:hover {
	box-shadow: 0 14px 40px -6px rgba(124, 58, 237, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: rgba(255, 255, 255, 0.02);
	color: #fff;
	padding: 0.9rem 1.75rem;
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	border-color: rgba(167, 139, 250, 0.6);
	background: rgba(124, 58, 237, 0.12);
}

.jt-btn-small .wp-block-button__link {
	padding: 0.6rem 1.2rem;
	font-size: var(--wp--preset--font-size--small);
}

/* ---------- Shared section styles ---------- */

.jt-section {
	position: relative;
	padding-block: var(--wp--preset--spacing--80);
}

.jt-section-alt {
	background: linear-gradient(180deg, #12121c 0%, #0b0b12 100%);
	border-block: 1px solid rgba(255, 255, 255, 0.05);
}

.jt-section-head {
	text-align: center;
	margin-bottom: var(--wp--preset--spacing--60);
}

.jt-section-head h2 {
	margin-block-start: 0.5rem;
}

.jt-eyebrow {
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-light);
}

.jt-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	width: fit-content;
	padding: 0.4rem 0.95rem;
	border: 1px solid rgba(167, 139, 250, 0.28);
	border-radius: 999px;
	background: rgba(124, 58, 237, 0.12);
	letter-spacing: 0.1em;
}

.jt-pill::before {
	content: "";
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 50%;
	background: #a78bfa;
	box-shadow: 0 0 10px #a78bfa;
	animation: jt-pulse 2.4s ease-in-out infinite;
}

.jt-lead {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.65;
}

.jt-grid {
	gap: 1.5rem;
}

/* ---------- Cards ---------- */

.jt-card {
	position: relative;
	padding: 2rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 20px;
	background: linear-gradient(180deg, rgba(26, 26, 40, 0.85) 0%, rgba(18, 18, 28, 0.85) 100%);
	overflow: hidden;
	transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.jt-card::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: radial-gradient(80% 60% at 50% 0%, rgba(124, 58, 237, 0.16) 0%, rgba(124, 58, 237, 0) 70%);
	opacity: 0;
	transition: opacity 0.35s ease;
	pointer-events: none;
}

.jt-card:hover {
	transform: translateY(-4px);
	border-color: rgba(124, 58, 237, 0.55);
	box-shadow: 0 20px 50px -20px rgba(124, 58, 237, 0.45);
}

.jt-card:hover::after {
	opacity: 1;
}

.jt-card h3 {
	margin-block-end: 0;
}

.jt-card p {
	margin-block-start: 0.6rem;
	font-size: 0.975rem;
}

/* Service icons: a tinted tile with the glyph as its background image. */
.jt-card[class*="jt-icon-"]::before {
	content: "";
	display: block;
	width: 3.25rem;
	height: 3.25rem;
	margin-bottom: 1.5rem;
	border: 1px solid rgba(167, 139, 250, 0.25);
	border-radius: 14px;
	background: var(--jt-icon) center / 1.5rem 1.5rem no-repeat, rgba(124, 58, 237, 0.14);
	transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

.jt-card[class*="jt-icon-"]:hover::before {
	background-color: rgba(124, 58, 237, 0.3);
	box-shadow: 0 0 24px rgba(124, 58, 237, 0.45);
}

.jt-icon-ios { --jt-icon: url("assets/icons/ios.svg"); }
.jt-icon-android { --jt-icon: url("assets/icons/android.svg"); }
.jt-icon-cross { --jt-icon: url("assets/icons/cross.svg"); }
.jt-icon-design { --jt-icon: url("assets/icons/design.svg"); }
.jt-icon-backend { --jt-icon: url("assets/icons/backend.svg"); }
.jt-icon-support { --jt-icon: url("assets/icons/support.svg"); }

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

.jt-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	min-height: min(860px, calc(100svh - 70px));
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-block: var(--wp--preset--spacing--70);
	background:
		radial-gradient(55% 60% at 80% 40%, rgba(124, 58, 237, 0.22) 0%, rgba(11, 11, 18, 0) 70%),
		radial-gradient(45% 50% at 10% 0%, rgba(124, 58, 237, 0.14) 0%, rgba(11, 11, 18, 0) 70%),
		#0b0b12;
}

.jt-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000 0%, transparent 100%);
	mask-image: radial-gradient(70% 70% at 50% 40%, #000 0%, transparent 100%);
}

.jt-hero::after {
	content: "";
	position: absolute;
	z-index: -1;
	left: 50%;
	bottom: -40%;
	width: 120%;
	height: 60%;
	transform: translateX(-50%);
	background: radial-gradient(50% 50% at 50% 50%, rgba(124, 58, 237, 0.18) 0%, rgba(11, 11, 18, 0) 100%);
	filter: blur(20px);
}

.jt-hero-columns {
	gap: var(--wp--preset--spacing--60);
}

.jt-hero-title {
	margin-block: 1.5rem 0;
	text-wrap: balance;
}

.jt-hero-title mark {
	background-image: linear-gradient(120deg, #c4b5fd 0%, #a78bfa 35%, #7c3aed 100%);
	background-size: 200% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: jt-shimmer 6s ease-in-out infinite alternate;
}

.jt-hero-content .jt-lead {
	max-width: 36rem;
	margin-block-start: 1.5rem;
}

.jt-hero-actions {
	margin-block-start: 2.25rem;
	gap: 0.85rem;
}

.jt-hero-content > * {
	animation: jt-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

.jt-hero-content > :nth-child(2) { animation-delay: 0.1s; }
.jt-hero-content > :nth-child(3) { animation-delay: 0.2s; }
.jt-hero-content > :nth-child(4) { animation-delay: 0.3s; }

.jt-hero-visual {
	animation: jt-fade 1.2s ease 0.3s backwards;
}

/* Decorative phone mockup */
.jt-device-wrap {
	position: relative;
	display: grid;
	place-items: center;
	padding: 2rem 0;
}

.jt-device {
	position: relative;
	z-index: 1;
	width: min(290px, 72vw);
	aspect-ratio: 9 / 19;
	padding: 10px;
	border-radius: 46px;
	background: linear-gradient(160deg, #2a2a3d 0%, #15151f 60%, #0f0f17 100%);
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow:
		0 40px 90px -30px rgba(124, 58, 237, 0.65),
		0 0 0 1px rgba(0, 0, 0, 0.6),
		inset 0 1px 0 rgba(255, 255, 255, 0.12);
	animation: jt-float 7s ease-in-out infinite;
}

.jt-device-notch {
	position: absolute;
	top: 20px;
	left: 50%;
	z-index: 2;
	width: 30%;
	height: 22px;
	transform: translateX(-50%);
	border-radius: 999px;
	background: #05050a;
}

.jt-device-screen {
	display: flex;
	flex-direction: column;
	gap: 12px;
	height: 100%;
	padding: 52px 18px 18px;
	border-radius: 37px;
	background:
		radial-gradient(90% 50% at 50% 0%, rgba(124, 58, 237, 0.35) 0%, rgba(11, 11, 18, 0) 70%),
		#0d0d16;
	overflow: hidden;
}

.jt-device-screen span,
.jt-ui-line,
.jt-ui-hero,
.jt-ui-card {
	display: block;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.07);
}

.jt-ui-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.jt-ui-top span:first-child { width: 42%; height: 12px; }
.jt-ui-top span:last-child { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #7c3aed, #a78bfa); }

.jt-ui-hero {
	height: 30%;
	border-radius: 18px;
	background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 55%, #a78bfa 100%);
	box-shadow: 0 12px 30px -12px rgba(124, 58, 237, 0.8);
}

.jt-ui-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

.jt-ui-row span { aspect-ratio: 1; border-radius: 14px; }
.jt-ui-row span:nth-child(2) { background: rgba(124, 58, 237, 0.3); }

.jt-ui-line { height: 10px; width: 85%; }
.jt-ui-line--short { width: 55%; }

.jt-ui-card {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 8px;
	flex: 1;
	padding: 14px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.jt-ui-card span { height: 9px; width: 70%; }
.jt-ui-card span:last-child { width: 45%; }

.jt-ui-tabbar {
	display: flex;
	justify-content: space-around;
	padding: 12px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.05);
}

.jt-ui-tabbar span { width: 18px; height: 18px; border-radius: 6px; }
.jt-ui-tabbar span:first-child { background: #a78bfa; }

.jt-chip {
	position: absolute;
	z-index: 2;
	padding: 0.55rem 1rem;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 14px;
	background: rgba(26, 26, 40, 0.75);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	color: #fff;
	font-size: 0.85rem;
	font-weight: 600;
	box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.8);
	animation: jt-float 6s ease-in-out infinite;
}

.jt-chip--a { top: 18%; left: 2%; animation-delay: -2s; }
.jt-chip--b { bottom: 20%; right: 2%; animation-delay: -4s; }

.jt-orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(50px);
	pointer-events: none;
}

.jt-orb--a {
	top: 8%;
	right: 12%;
	width: 220px;
	height: 220px;
	background: rgba(124, 58, 237, 0.45);
	animation: jt-drift 12s ease-in-out infinite alternate;
}

.jt-orb--b {
	bottom: 5%;
	left: 10%;
	width: 160px;
	height: 160px;
	background: rgba(167, 139, 250, 0.25);
	animation: jt-drift 14s ease-in-out infinite alternate-reverse;
}

/* ---------- Process ---------- */

.jt-step-num {
	margin: 0 0 1.25rem;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 2rem;
	font-weight: 700;
	line-height: 1;
	background-image: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.jt-step {
	border-top: 2px solid rgba(124, 58, 237, 0.4);
}

/* ---------- Portfolio ---------- */

.jt-project {
	padding: 0.85rem 0.85rem 1.75rem;
}

.jt-project > :not(.jt-project-visual) {
	padding-inline: 1rem;
}

.jt-project-visual {
	position: relative;
	display: flex;
	align-items: flex-start;
	aspect-ratio: 4 / 3;
	margin-bottom: 1.5rem;
	padding: 1rem;
	border-radius: 14px;
	overflow: hidden;
	background:
		radial-gradient(70% 70% at 70% 30%, rgba(167, 139, 250, 0.45) 0%, rgba(124, 58, 237, 0) 70%),
		linear-gradient(135deg, #1e1035 0%, #12121c 100%);
}

.jt-project-visual::before {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -12%;
	width: 34%;
	aspect-ratio: 9 / 16;
	transform: translateX(-50%);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 18px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
	transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.jt-project:hover .jt-project-visual::before {
	transform: translateX(-50%) translateY(-8%);
}

.jt-project-visual--2 {
	background:
		radial-gradient(70% 70% at 30% 30%, rgba(124, 58, 237, 0.55) 0%, rgba(124, 58, 237, 0) 70%),
		linear-gradient(135deg, #12121c 0%, #241345 100%);
}

.jt-project-visual--3 {
	background:
		radial-gradient(60% 60% at 50% 80%, rgba(167, 139, 250, 0.4) 0%, rgba(124, 58, 237, 0) 70%),
		linear-gradient(160deg, #1a1a28 0%, #2b1356 100%);
}

.jt-tag {
	position: relative;
	z-index: 1;
	margin: 0 !important;
	padding: 0.3rem 0.7rem;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 999px;
	background: rgba(11, 11, 18, 0.55);
	color: #fff;
	font-size: 0.72rem !important;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

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

.jt-about {
	gap: var(--wp--preset--spacing--60);
}

.jt-about-intro h2 {
	margin-block-start: 0.5rem;
}

.jt-value {
	padding: 1.75rem;
}

.jt-value h3::before {
	content: "";
	display: block;
	width: 2rem;
	height: 3px;
	margin-bottom: 1rem;
	border-radius: 3px;
	background: linear-gradient(90deg, #7c3aed, #a78bfa);
}

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

.jt-contact-section {
	background:
		radial-gradient(50% 60% at 15% 30%, rgba(124, 58, 237, 0.14) 0%, rgba(11, 11, 18, 0) 70%),
		#0b0b12;
}

.jt-contact-layout {
	gap: var(--wp--preset--spacing--60);
}

.jt-contact-main h2,
.jt-contact-main h1 {
	margin-block-start: 1.25rem;
	text-wrap: balance;
}

.jt-contact-main .jt-lead {
	max-width: 38rem;
}

.jt-contact-info {
	position: sticky;
	top: 110px;
	padding: 2rem;
}

.jt-contact-info h3 {
	margin-bottom: 1.25rem;
}

.jt-contact-info h4 {
	font-size: var(--wp--preset--font-size--medium);
}

.jt-contact-item {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.6rem;
	margin: 0.6rem 0 0 !important;
	padding: 0.8rem 1rem;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.025);
	font-size: 0.95rem !important;
}

.jt-contact-item strong {
	min-width: 4.5rem;
	color: #fff;
}

.jt-contact-info .wp-block-separator {
	margin-block: 1.75rem;
	border-color: rgba(255, 255, 255, 0.08);
}

.jt-next-steps {
	padding-left: 1.2rem;
	font-size: 0.95rem;
}

.jt-next-steps li + li {
	margin-top: 0.4rem;
}

.jt-next-steps li::marker {
	color: #a78bfa;
	font-weight: 700;
}

.jt-contact-legal {
	margin-top: 1.5rem !important;
	font-size: 0.875rem !important;
}

.jt-contact-legal a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- Team ---------- */

.jt-member {
	padding: 2.5rem 1.75rem 2rem;
	text-align: center;
}

.jt-member-badge {
	width: fit-content;
	margin: 0 auto 1.25rem !important;
}

/* Two cards side by side, centred, stacking on phones. Raise max-width if more members are added. */
#team .jt-team-grid {
	grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
	max-width: 50rem;
}

.jt-avatar {
	position: relative;
	width: 8.5rem;
	aspect-ratio: 1;
	margin: 0 auto 1.5rem;
	border-radius: 50%;
	padding: 5px;
	background: linear-gradient(140deg, rgba(167, 139, 250, 0.9) 0%, rgba(124, 58, 237, 0.4) 50%, rgba(124, 58, 237, 0.9) 100%);
	box-shadow: 0 0 0 8px rgba(124, 58, 237, 0.07), 0 0 44px -6px rgba(124, 58, 237, 0.6);
	transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.45s ease;
}

.jt-avatar > * {
	margin: 0 !important;
}

.jt-avatar .wp-block-image,
.jt-avatar img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
}

.jt-avatar .wp-block-image {
	overflow: hidden;
}

.jt-avatar img {
	display: block;
}

/* Full-length photos: zoom in on head and shoulders so they match close-up portraits.
   Adjust --jt-crop-origin (the point that stays fixed while zooming) to re-centre a face. */
.jt-avatar-img--full-length img {
	object-position: 50% 0%;
	transform: scale(var(--jt-crop-zoom, 1.9));
	transform-origin: var(--jt-crop-origin, 82% 36%);
}

/* Neutral silhouette shown until a photo (Image block) is added inside the avatar group. */
.jt-avatar:not(:has(img))::before {
	content: "";
	position: absolute;
	inset: 5px;
	border-radius: 50%;
	background:
		radial-gradient(circle at 50% 38%, rgba(196, 181, 253, 0.55) 0 17%, transparent 17.5%),
		radial-gradient(ellipse 34% 26% at 50% 86%, rgba(196, 181, 253, 0.4) 0 98%, transparent 100%),
		linear-gradient(160deg, #1f1a33 0%, #12121c 100%);
}

.jt-member:hover .jt-avatar {
	transform: translateY(-3px) scale(1.04);
	box-shadow: 0 0 0 8px rgba(124, 58, 237, 0.12), 0 0 60px -4px rgba(124, 58, 237, 0.85);
}

.jt-member-name {
	margin: 0 !important;
}

.jt-member-role {
	margin-top: 0.35rem !important;
	color: var(--wp--preset--color--accent-light);
	font-weight: 600;
	font-size: 0.95rem !important;
}

.jt-member-label {
	margin-top: 1.5rem !important;
	font-size: 0.75rem !important;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.jt-tags {
	gap: 0.5rem;
	margin-top: 0.75rem !important;
}

.jt-tag-pill {
	margin: 0 !important;
	padding: 0.3rem 0.75rem;
	border: 1px solid rgba(167, 139, 250, 0.25);
	border-radius: 999px;
	background: rgba(124, 58, 237, 0.1);
	color: #ddd6fe;
	font-size: 0.8rem !important;
	transition: background-color 0.25s ease, border-color 0.25s ease;
}

.jt-member:hover .jt-tag-pill {
	border-color: rgba(167, 139, 250, 0.45);
}

.jt-member-social {
	gap: 0.6rem;
	margin-top: 1.5rem !important;
}

.jt-member-social:not(:has(li)) {
	display: none;
}

.jt-member-social .wp-social-link {
	background: rgba(255, 255, 255, 0.05) !important;
	color: #ddd6fe !important;
	border: 1px solid rgba(255, 255, 255, 0.1);
	transition: background-color 0.25s ease, transform 0.25s ease;
}

.jt-member-social .wp-social-link:hover {
	background: #7c3aed !important;
	color: #fff !important;
	transform: translateY(-2px);
}

/* ---------- Legal pages ---------- */

.jt-legal {
	padding-block: var(--wp--preset--spacing--70) var(--wp--preset--spacing--80);
	background: radial-gradient(50% 30% at 50% 0%, rgba(124, 58, 237, 0.16) 0%, rgba(11, 11, 18, 0) 100%) no-repeat;
}

.jt-legal-hero {
	padding-bottom: var(--wp--preset--spacing--50);
	margin-bottom: var(--wp--preset--spacing--60);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.jt-legal-title {
	margin-block: 0.5rem 0;
	font-size: var(--wp--preset--font-size--xx-large);
}

.jt-legal-meta {
	gap: 0.4rem;
	margin-top: 1rem;
	font-size: var(--wp--preset--font-size--small);
}

.jt-legal-meta p,
.jt-legal-meta .wp-block-post-date {
	margin: 0;
}

.jt-legal-meta .wp-block-post-date {
	color: #fff;
}

.jt-legal-layout {
	gap: var(--wp--preset--spacing--60);
}

.jt-toc-inner {
	position: sticky;
	top: 110px;
	padding: 1.5rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 18px;
	background: rgba(18, 18, 28, 0.85);
}

.jt-toc-title {
	margin: 0 0 0.75rem !important;
	color: #fff;
	font-size: 0.8rem !important;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.jt-toc-list {
	margin: 0;
	padding-left: 1.25rem;
	font-size: 0.9rem;
	line-height: 1.5;
}

.jt-toc-list li + li {
	margin-top: 0.45rem;
}

.jt-toc-list li::marker {
	color: #6b6b85;
}

.jt-toc-list a {
	color: var(--wp--preset--color--muted);
}

.jt-toc-list a:hover,
.jt-toc-list a:focus-visible {
	color: #fff;
}

.jt-legal-body {
	max-width: 46rem;
	color: #c9c9d6;
	font-size: 1.0625rem;
	line-height: 1.8;
}

.jt-legal-body h2 {
	margin-top: var(--wp--preset--spacing--60);
	padding-top: 0.25rem;
	font-size: var(--wp--preset--font-size--x-large);
	scroll-margin-top: 110px;
}

.jt-legal-body > h2:first-child {
	margin-top: 0;
}

.jt-legal-body h3 {
	margin-top: 2rem;
	font-size: var(--wp--preset--font-size--large);
}

.jt-legal-body ul,
.jt-legal-body ol {
	padding-left: 1.4rem;
}

.jt-legal-body li + li {
	margin-top: 0.4rem;
}

.jt-legal-body li::marker {
	color: #a78bfa;
}

.jt-legal-body a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.jt-draft-notice {
	margin-bottom: var(--wp--preset--spacing--60);
	padding: 1.1rem 1.4rem;
	border: 1px solid rgba(251, 191, 36, 0.35);
	border-left: 4px solid #fbbf24;
	border-radius: 14px;
	background: rgba(251, 191, 36, 0.07);
	color: #fde68a;
	font-size: 0.95rem;
}

.jt-draft-notice strong {
	color: #fef3c7;
}

mark.jt-placeholder {
	padding: 0.05em 0.35em;
	border: 1px dashed rgba(196, 181, 253, 0.6);
	border-radius: 6px;
	background-color: rgba(124, 58, 237, 0.16) !important;
	color: #e9d5ff !important;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

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

.jt-footer {
	position: relative;
	padding-block: var(--wp--preset--spacing--70) var(--wp--preset--spacing--50);
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	background: linear-gradient(180deg, #0b0b12 0%, #0e0d18 100%);
	font-size: var(--wp--preset--font-size--small);
}

.jt-footer::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 50%;
	width: min(640px, 80%);
	height: 1px;
	transform: translateX(-50%);
	background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.7), transparent);
}

.jt-footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--60);
}

.jt-footer-grid > * {
	margin: 0 !important;
}

.jt-footer-brand p {
	max-width: 24rem;
	margin-top: 1rem;
}

.jt-footer-brand .wp-block-buttons {
	margin-top: 1.5rem;
}

.jt-footer-heading {
	margin: 0 0 1rem !important;
	color: #fff;
	font-size: 0.75rem !important;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.jt-footer-links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.jt-footer-links li + li {
	margin-top: 0.65rem;
}

.jt-footer-links a {
	color: var(--wp--preset--color--muted);
	transition: color 0.2s ease;
}

.jt-footer-links a:hover,
.jt-footer-links a:focus-visible {
	color: #fff;
}

.jt-footer-bottom {
	margin-block-start: var(--wp--preset--spacing--60);
	padding-block-start: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.jt-footer-bottom p {
	margin: 0;
}

/* ---------- Inner pages ---------- */

.jt-inner {
	padding-block: var(--wp--preset--spacing--70) var(--wp--preset--spacing--80);
}

.jt-page-title {
	margin-block-end: var(--wp--preset--spacing--50);
}

.jt-post-list {
	display: grid;
	gap: 1.25rem;
}

.jt-post-card h2 {
	margin-block-start: 0.4rem;
}

.jt-pagination {
	margin-block-start: var(--wp--preset--spacing--60);
}

.jt-404 {
	text-align: center;
	min-height: 50vh;
}

.jt-404 .wp-block-buttons {
	justify-content: center;
}

/* ---------- Scroll reveal (classes added by assets/js/reveal.js) ---------- */

.jt-reveal:not(.is-visible) {
	opacity: 0;
}

.jt-reveal.is-visible {
	animation: jt-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) var(--jt-delay, 0ms) backwards;
}

/* ---------- Keyframes ---------- */

@keyframes jt-rise {
	from { opacity: 0; transform: translateY(24px); }
	to { opacity: 1; transform: none; }
}

@keyframes jt-fade {
	from { opacity: 0; transform: scale(0.96); }
	to { opacity: 1; transform: none; }
}

@keyframes jt-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-14px); }
}

@keyframes jt-drift {
	from { transform: translate(0, 0) scale(1); }
	to { transform: translate(-30px, 30px) scale(1.15); }
}

@keyframes jt-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.35; }
}

@keyframes jt-shimmer {
	from { background-position: 0% 50%; }
	to { background-position: 100% 50%; }
}

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

@media (min-width: 700px) and (max-width: 1023px) {
	#portfolio .jt-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.jt-member {
		padding-inline: 1.1rem;
	}

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

	.jt-footer-brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 781px) {
	.jt-contact-info,
	.jt-toc-inner {
		position: static;
	}

	.jt-hero {
		min-height: 0;
		padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
	}

	.jt-hero-visual {
		margin-block-start: var(--wp--preset--spacing--50);
	}

	.jt-device {
		width: min(240px, 64vw);
	}

	.jt-about-intro {
		text-align: center;
	}
}

@media (max-width: 600px) {
	.jt-header-actions {
		gap: 0.75rem;
	}

	.jt-hero-actions .wp-block-button {
		width: 100%;
	}

	.jt-hero-actions .wp-block-button__link {
		width: 100%;
	}

	.jt-card {
		padding: 1.5rem;
	}

	.jt-project {
		padding: 0.75rem 0.75rem 1.5rem;
	}

	.jt-project > :not(.jt-project-visual) {
		padding-inline: 0.75rem;
	}

	.jt-chip {
		font-size: 0.75rem;
		padding: 0.45rem 0.8rem;
	}

	.jt-contact-info {
		padding: 1.5rem;
	}

	.jt-header-actions .wp-block-buttons.jt-header-cta {
		display: none;
	}

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

	.jt-footer-brand {
		grid-column: 1 / -1;
	}
}

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

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