﻿:root {
	--llsfl-accent: #5a1b27;
	--llsfl-accent-soft: #7a2737;
}

::selection,
::-moz-selection,
::-webkit-selection {
	background: var(--llsfl-accent);
}

.llsfl-preloader-logo {
	display: block;
	width: clamp(200px, 28vw, 360px);
	height: auto;
	opacity: 0.88 !important;
	filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.35));
}

.llsfl-logo-link {
	font-family: 'Noto Serif JP', serif;
	font-size: 24px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.llsfl-logo-img {
	display: block;
	height: 36px;
	width: auto;
}

.llsfl-footer-logo-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.llsfl-footer-logo-img {
	display: block;
	height: 30px;
	width: auto;
}

.ph-caption-title-ghost {
	color: #7c2a3a;
}

.tt-heading-subtitle,
.tt-ci-icon,
.tt-link:hover,
.tt-btn-link a:hover {
	color: var(--llsfl-accent-soft) !important;
}

.tt-form-control:focus {
	border-color: var(--llsfl-accent);
}

/* Header readability layer (all screen sizes). */
#tt-header {
	position: fixed !important;
}

#tt-header::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: clamp(62px, 6.2vw, 82px);
	background: rgba(8, 8, 10, 0.38);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	pointer-events: none;
}

#tt-header .tt-header-inner {
	position: relative;
	z-index: 2;
}

/* Keep brand text/logo and menu toggle perfectly aligned on one baseline. */
#tt-header .tt-header-inner {
	align-items: center;
}

#tt-header .tt-logo {
	position: relative;
	top: auto;
	left: auto;
	margin: 0;
	display: flex;
	align-items: center;
}

#tt-header .tt-logo a {
	display: inline-flex;
	align-items: center;
	line-height: 1;
}

@media (max-width: 1024px) {
	#tt-header .tt-header-inner {
		padding-top: 10px !important;
	}

	#tt-header::before {
		height: 68px;
	}
}

/* Keep submenu arrow real/clickable and right next to text across devices. */
.tt-ol-menu-list > li > .tt-ol-submenu-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0;
}

.tt-ol-menu-list > li > .tt-ol-submenu-trigger > a {
	display: inline-block;
	padding-right: 0;
	white-space: nowrap;
}

.tt-ol-menu-list > li > .tt-ol-submenu-trigger .tt-ol-submenu-caret-wrap {
	position: static;
	top: auto;
	right: auto;
	transform: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	margin-left: 0;
}

.tt-ol-menu-list > li > .tt-ol-submenu-trigger .tt-ol-submenu-caret {
	width: 18px;
	height: 18px;
	font-size: 12px;
}

@media (max-width: 430px) {
	.tt-ol-menu-list > li > .tt-ol-submenu-trigger > a {
		font-size: 30px;
	}
}

#page-header.ph-bg-image .ph-image {
	top: 0 !important;
	height: 100% !important;
}

#page-header {
	margin-top: -1px;
}

#page-header .ph-image img {
	filter: grayscale(100%) contrast(1.06) brightness(0.68);
}

.tt-magic-cursor #ball {
	transition: width 0.25s ease, height 0.25s ease, opacity 0.25s ease;
}

#magic-cursor.llsfl-fallback-on {
	opacity: 1 !important;
	visibility: visible !important;
}

#magic-cursor.llsfl-fallback-on #ball {
	width: 18px;
	height: 18px;
	opacity: 1;
	border: 1px solid rgba(255, 255, 255, 0.75);
	overflow: hidden;
}

#magic-cursor.llsfl-fallback-on #ball.llsfl-hover {
	width: 20vw;
	height: 20vw;
	border: none;
}

#magic-cursor.llsfl-fallback-on #ball .pi-item-image {
	position: absolute;
	inset: 0;
	display: block !important;
	z-index: 1;
}

#magic-cursor.llsfl-fallback-on #ball .pi-item-image img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
}

/* Disable magic cursor on touch/mobile to prevent drifting ring artifacts. */
@media (max-width: 1024px), (pointer: coarse) {
	#magic-cursor,
	#magic-cursor #ball {
		display: none !important;
		opacity: 0 !important;
		visibility: hidden !important;
	}
}

/* Project detail gallery: dynamic masonry grid (tight gaps, no black bars). */
.llsfl-gallery-grid {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-auto-rows: 8px;
	gap: 8px;
	grid-auto-flow: dense;
}

.llsfl-gallery-grid .tt-grid-item {
	width: 100% !important;
	margin: 0 !important;
	float: none !important;
}

.llsfl-gallery-grid .ttgr-item-inner {
	margin: 0 !important;
}

.llsfl-gallery-grid .ttgr-height {
	padding-bottom: 0 !important;
}

.llsfl-gallery-grid .tt-gallery-image {
	line-height: 0;
	border-radius: 4px;
	overflow: hidden;
}

.llsfl-gallery-grid .tt-gallery-image img {
	width: 100%;
	height: auto !important;
	display: block;
}

@media (max-width: 991px) {
	.llsfl-gallery-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-auto-rows: 7px;
		gap: 7px;
	}
}

@media (max-width: 575px) {
	.llsfl-gallery-grid {
		grid-template-columns: 1fr;
		grid-auto-rows: 6px;
		gap: 8px;
	}
}

/* Contact form status message (theme-aligned animated toast card). */
.message {
	position: relative;
	margin-top: 18px;
	padding: 13px 16px 13px 42px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.03);
	color: rgba(255, 255, 255, 0.92);
	font-size: 14px;
	line-height: 1.45;
	letter-spacing: 0.01em;
	opacity: 0;
	transform: translateY(10px) scale(0.985);
	filter: blur(1px);
	max-height: 0;
	overflow: hidden;
	pointer-events: none;
	transition: opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1), transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), max-height 0.42s cubic-bezier(0.22, 1, 0.36, 1), filter 0.42s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.42s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.message::before {
	content: "";
	position: absolute;
	left: 16px;
	top: 14px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.07);
}

.message.is-visible {
	opacity: 1;
	transform: translateY(0) scale(1);
	filter: blur(0);
	max-height: 150px;
}

.message.success {
	border-color: rgba(53, 170, 118, 0.66);
	background: linear-gradient(135deg, rgba(18, 72, 54, 0.58) 0%, rgba(12, 48, 36, 0.5) 100%);
}

.message.success::before {
	background: #39b985;
	box-shadow: 0 0 0 5px rgba(57, 185, 133, 0.24);
}

.message.success.is-visible {
	animation: llsfl-toast-bounce 0.85s ease-out 0.12s 1 both;
}

.message.error {
	border-color: rgba(170, 66, 88, 0.62);
	background: linear-gradient(135deg, rgba(63, 24, 34, 0.58) 0%, rgba(39, 18, 23, 0.48) 100%);
}

.message.error::before {
	background: #b24963;
	box-shadow: 0 0 0 5px rgba(178, 73, 99, 0.24);
}

.message.is-hiding {
	opacity: 0;
	transform: translateX(22px) translateY(0) scale(0.996);
	filter: blur(0.6px);
	max-height: 0;
	transition-duration: 0.34s;
	transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes llsfl-toast-bounce {
	0% {
		transform: translateY(0) scale(1);
	}
	22% {
		transform: translateY(-8px) scale(1.005);
	}
	44% {
		transform: translateY(0) scale(1);
	}
	66% {
		transform: translateY(-4px) scale(1.003);
	}
	100% {
		transform: translateY(0) scale(1);
	}
}


@media (max-width: 767px) {
	.llsfl-logo-link {
		font-size: 20px;
		letter-spacing: 0.18em;
	}

	.llsfl-logo-img {
		height: 30px;
	}

	.llsfl-footer-logo-img {
		height: 26px;
	}

	/* Mobile: leave breathing room between section titles and first project card. */
	#projects-completed .tt-heading-title,
	#projects-ongoing .tt-heading-title {
		margin-bottom: 14px;
	}
}

/* Desktop: move "International Portfolio" slightly down from the section top edge. */
@media (min-width: 1025px) {
	#projects-completed .tt-heading-subtitle {
		margin-top: 12px;
	}
}


