/* =========================================================================
   PASINDU HANSAKA — Design System
   Dark editorial luxury. Violet primary, cyan secondary, off-white type.
   ========================================================================= */

:root {
	/* Color tokens (overridable via Customizer -> inc/customizer.php) */
	--ph-bg: #0a0a0c;
	--ph-bg-elevated: #121215;
	--ph-bg-glass: rgba(255, 255, 255, 0.04);
	--ph-border: rgba(255, 255, 255, 0.09);
	--ph-border-strong: rgba(255, 255, 255, 0.16);
	--ph-text: #f3f1ee;
	--ph-text-muted: #a3a0a8;
	--ph-text-faint: #6c6971;
	--ph-accent-primary: #8b5cf6;
	--ph-accent-primary-soft: rgba(139, 92, 246, 0.14);
	--ph-accent-secondary: #22d3ee;
	--ph-accent-secondary-soft: rgba(34, 211, 238, 0.12);

	/* Typography */
	--ph-font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
	--ph-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

	/* Layout */
	--ph-container-width: 1240px;
	--ph-container-pad: clamp(1.25rem, 5vw, 3rem);
	--ph-section-pad: clamp(4.5rem, 10vw, 8.5rem);
	--ph-radius-sm: 10px;
	--ph-radius-md: 18px;
	--ph-radius-lg: 28px;

	/* Motion */
	--ph-ease: cubic-bezier(0.16, 1, 0.3, 1);
	--ph-duration: 0.7s;
}

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

html { scroll-behavior: smooth; }

@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;
		scroll-behavior: auto !important;
	}
}

body {
	margin: 0;
	background: var(--ph-bg);
	color: var(--ph-text);
	font-family: var(--ph-font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

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

ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4, p, blockquote, figure { margin: 0; }

button {
	font-family: inherit;
	cursor: pointer;
	background: none;
	border: none;
	color: inherit;
}

input, textarea {
	font-family: inherit;
	font-size: 1rem;
	color: var(--ph-text);
	background: var(--ph-bg-elevated);
	border: 1px solid var(--ph-border);
	border-radius: var(--ph-radius-sm);
	padding: 0.85rem 1rem;
	width: 100%;
}

input:focus, textarea:focus, a:focus-visible, button:focus-visible {
	outline: 2px solid var(--ph-accent-secondary);
	outline-offset: 3px;
}

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

.ph-skip-link {
	position: fixed;
	top: -100px;
	left: 1rem;
	background: var(--ph-accent-primary);
	color: #fff;
	padding: 0.75rem 1.25rem;
	border-radius: var(--ph-radius-sm);
	z-index: 999;
	transition: top 0.25s var(--ph-ease);
}
.ph-skip-link:focus { top: 1rem; width: auto; height: auto; clip: auto; overflow: visible; }

/* =========================================================================
   LAYOUT PRIMITIVES
   ========================================================================= */
.ph-container {
	max-width: var(--ph-container-width);
	margin-inline: auto;
	padding-inline: var(--ph-container-pad);
}

.ph-page { position: relative; min-height: 100vh; overflow-x: clip; }

.ph-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.75rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ph-accent-secondary);
	font-weight: 600;
	margin-bottom: 1rem;
}
.ph-eyebrow::before {
	content: '';
	width: 22px;
	height: 1px;
	background: currentColor;
}

.ph-section-title {
	font-family: var(--ph-font-display);
	font-weight: 500;
	font-size: clamp(2.1rem, 4.5vw, 3.4rem);
	line-height: 1.1;
	letter-spacing: -0.01em;
	color: var(--ph-text);
	margin-bottom: 1.75rem;
}

section { padding-block: var(--ph-section-pad); position: relative; }

/* Buttons */
.ph-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.95rem 1.75rem;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.95rem;
	transition: transform 0.35s var(--ph-ease), box-shadow 0.35s var(--ph-ease), background 0.35s var(--ph-ease), color 0.35s var(--ph-ease), border-color 0.35s var(--ph-ease);
	white-space: nowrap;
}
.ph-btn svg { width: 18px; height: 18px; transition: transform 0.35s var(--ph-ease); }

.ph-btn--primary {
	background: linear-gradient(135deg, var(--ph-accent-primary), #6d28d9);
	color: #fff;
	box-shadow: 0 8px 30px -8px var(--ph-accent-primary-soft);
}
.ph-btn--primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 36px -8px rgba(139, 92, 246, 0.45);
}
.ph-btn--primary:hover svg { transform: translateX(3px); }

.ph-btn--ghost {
	background: transparent;
	color: var(--ph-text);
	border: 1px solid var(--ph-border-strong);
}
.ph-btn--ghost:hover {
	border-color: var(--ph-accent-secondary);
	color: var(--ph-accent-secondary);
	transform: translateY(-2px);
}

/* =========================================================================
   HEADER / NAVIGATION
   ========================================================================= */
.ph-site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	backdrop-filter: blur(16px) saturate(140%);
	-webkit-backdrop-filter: blur(16px) saturate(140%);
	background: rgba(10, 10, 12, 0.72);
	border-bottom: 1px solid var(--ph-border);
}

.ph-site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 76px;
}

.ph-brand-mark {
	font-family: var(--ph-font-display);
	font-size: 1.25rem;
	letter-spacing: 0.08em;
	font-weight: 500;
}

.ph-primary-nav__list {
	display: flex;
	align-items: center;
	gap: 2.25rem;
}
.ph-primary-nav__list a {
	font-size: 0.92rem;
	color: var(--ph-text-muted);
	font-weight: 500;
	position: relative;
	padding-block: 0.35rem;
	transition: color 0.3s ease;
}
.ph-primary-nav__list a:hover { color: var(--ph-text); }
.ph-primary-nav__list a::after {
	content: '';
	position: absolute;
	left: 0; bottom: 0;
	width: 0; height: 1px;
	background: var(--ph-accent-secondary);
	transition: width 0.3s var(--ph-ease);
}
.ph-primary-nav__list a:hover::after { width: 100%; }

.ph-nav-toggle {
	display: none;
	width: 42px; height: 42px;
	align-items: center; justify-content: center;
	color: var(--ph-text);
}
.ph-nav-toggle svg { width: 22px; height: 22px; }
.ph-nav-toggle__icon--close { display: none; }
.ph-nav-toggle[aria-expanded="true"] .ph-nav-toggle__icon--open { display: none; }
.ph-nav-toggle[aria-expanded="true"] .ph-nav-toggle__icon--close { display: block; }

@media (max-width: 860px) {
	.ph-nav-toggle { display: flex; }
	.ph-primary-nav {
		position: fixed;
		inset: 76px 0 0 0;
		background: rgba(8, 8, 10, 0.98);
		backdrop-filter: blur(20px);
		transform: translateY(-8px);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.35s var(--ph-ease), transform 0.35s var(--ph-ease), visibility 0.35s;
		padding: 2rem;
	}
	.ph-primary-nav.is-open {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}
	.ph-primary-nav__list {
		flex-direction: column;
		align-items: flex-start;
		gap: 1.75rem;
	}
	.ph-primary-nav__list a { font-size: 1.5rem; }
}

/* =========================================================================
   HERO
   ========================================================================= */
.ph-hero {
	position: relative;
	padding-top: clamp(4rem, 10vh, 7rem);
	padding-bottom: clamp(4rem, 10vh, 6rem);
	min-height: 88vh;
	display: flex;
	align-items: center;
	overflow: clip;
}

.ph-hero__glow {
	position: absolute;
	border-radius: 50%;
	filter: blur(90px);
	opacity: 0.55;
	pointer-events: none;
	z-index: 0;
}
.ph-hero__glow--one {
	width: 560px; height: 560px;
	background: radial-gradient(circle, var(--ph-accent-primary-soft), transparent 70%);
	top: -12%; left: -10%;
}
.ph-hero__glow--two {
	width: 480px; height: 480px;
	background: radial-gradient(circle, var(--ph-accent-secondary-soft), transparent 70%);
	bottom: -18%; right: -8%;
}

.ph-hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: clamp(2.5rem, 6vw, 5rem);
	align-items: center;
}

.ph-hero__name {
	font-family: var(--ph-font-display);
	font-size: clamp(3.4rem, 9vw, 6.8rem);
	line-height: 0.96;
	letter-spacing: -0.015em;
	margin-block: 1.25rem 1.5rem;
	display: flex;
	flex-direction: column;
}
.ph-hero__name-line--serif { color: var(--ph-text); font-weight: 400; }
.ph-hero__name-line--accent {
	font-weight: 500;
	background: linear-gradient(120deg, var(--ph-accent-primary), var(--ph-accent-secondary));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.ph-hero__subtitle {
	font-size: clamp(1.05rem, 2vw, 1.25rem);
	color: var(--ph-text-muted);
	max-width: 34ch;
	margin-bottom: 2.5rem;
}

.ph-hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.ph-hero__portrait-wrap { position: relative; display: flex; justify-content: center; }

.ph-hero__portrait-frame {
	position: relative;
	width: min(420px, 100%);
	aspect-ratio: 3 / 4;
	border-radius: var(--ph-radius-lg);
	overflow: hidden;
	background: var(--ph-bg-elevated);
	border: 1px solid var(--ph-border);
	box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}
.ph-hero__portrait {
	width: 100%; height: 100%;
	object-fit: cover;
	object-position: center top;
	animation: ph-portrait-float 7s var(--ph-ease) infinite;
}
.ph-hero__portrait-placeholder {
	width: 100%; height: 100%;
	display: flex; align-items: center; justify-content: center;
	text-align: center;
	padding: 2rem;
	color: var(--ph-text-faint);
	font-size: 0.9rem;
	background:
		repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 10px, transparent 10px 20px);
}
.ph-hero__portrait-ring {
	position: absolute;
	inset: -14px;
	border-radius: calc(var(--ph-radius-lg) + 14px);
	background: linear-gradient(135deg, var(--ph-accent-primary), transparent 40%, var(--ph-accent-secondary));
	opacity: 0.55;
	z-index: -1;
	filter: blur(2px);
	animation: ph-ring-rotate 12s linear infinite;
}

.ph-hero__portrait-card {
	position: absolute;
	left: 50%;
	bottom: -1.25rem;
	transform: translateX(-50%);
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	background: rgba(18, 18, 21, 0.85);
	backdrop-filter: blur(14px);
	border: 1px solid var(--ph-border-strong);
	border-radius: 999px;
	padding: 0.65rem 1.25rem;
	font-size: 0.82rem;
	color: var(--ph-text-muted);
	white-space: nowrap;
}
.ph-hero__portrait-card-dot {
	width: 7px; height: 7px; border-radius: 50%;
	background: var(--ph-accent-secondary);
	box-shadow: 0 0 10px var(--ph-accent-secondary);
}

.ph-hero__scroll-cue {
	position: absolute;
	bottom: 2rem; left: 50%;
	transform: translateX(-50%);
	width: 26px; height: 42px;
	border: 1px solid var(--ph-border-strong);
	border-radius: 999px;
	display: flex;
	justify-content: center;
	padding-top: 8px;
	z-index: 1;
}
.ph-hero__scroll-cue span {
	width: 4px; height: 8px;
	border-radius: 999px;
	background: var(--ph-accent-secondary);
	animation: ph-scroll-cue 1.8s ease-in-out infinite;
}

@media (max-width: 960px) {
	.ph-hero__inner { grid-template-columns: 1fr; text-align: center; }
	.ph-hero__subtitle { margin-inline: auto; }
	.ph-hero__actions { justify-content: center; }
	.ph-hero__portrait-wrap { order: -1; }
	.ph-hero__name { align-items: center; }
}

/* =========================================================================
   INTRO — "More Than a Name."
   ========================================================================= */
.ph-intro__inner {
	display: grid;
	grid-template-columns: 0.8fr 1.2fr;
	gap: clamp(2rem, 6vw, 5rem);
	border-top: 1px solid var(--ph-border);
	padding-top: clamp(3rem, 6vw, 5rem);
}
.ph-intro__name {
	font-family: var(--ph-font-display);
	font-size: 1.15rem;
	color: var(--ph-accent-secondary);
	letter-spacing: 0.04em;
	margin-bottom: 1rem;
}
.ph-intro__text {
	font-size: clamp(1.05rem, 1.6vw, 1.3rem);
	color: var(--ph-text-muted);
	max-width: 62ch;
	line-height: 1.75;
}
@media (max-width: 860px) {
	.ph-intro__inner { grid-template-columns: 1fr; }
}

/* =========================================================================
   JOURNEY TIMELINE
   ========================================================================= */
.ph-journey { background: var(--ph-bg-elevated); border-block: 1px solid var(--ph-border); }

.ph-timeline {
	margin-top: 3rem;
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0;
}
.ph-timeline::before {
	content: '';
	position: absolute;
	left: 27px;
	top: 8px; bottom: 8px;
	width: 1px;
	background: linear-gradient(var(--ph-border-strong), var(--ph-border-strong));
}
.ph-timeline__item {
	display: grid;
	grid-template-columns: 56px 1fr;
	gap: 1.75rem;
	padding-block: 1.75rem;
	position: relative;
}
.ph-timeline__marker {
	width: 56px; height: 56px;
	border-radius: 50%;
	background: var(--ph-bg);
	border: 1px solid var(--ph-border-strong);
	display: flex; align-items: center; justify-content: center;
	position: relative;
	z-index: 1;
	transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.ph-timeline__item:hover .ph-timeline__marker {
	border-color: var(--ph-accent-primary);
	box-shadow: 0 0 0 6px var(--ph-accent-primary-soft);
}
.ph-timeline__index {
	font-family: var(--ph-font-display);
	font-size: 0.95rem;
	color: var(--ph-accent-secondary);
}
.ph-timeline__title {
	font-family: var(--ph-font-display);
	font-size: clamp(1.3rem, 2.4vw, 1.75rem);
	font-weight: 500;
	margin-bottom: 0.5rem;
}
.ph-timeline__text {
	color: var(--ph-text-muted);
	max-width: 60ch;
}

/* =========================================================================
   WHAT I DO — cards
   ========================================================================= */
.ph-card-grid {
	margin-top: 3rem;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}
.ph-card {
	background: var(--ph-bg-glass);
	border: 1px solid var(--ph-border);
	border-radius: var(--ph-radius-md);
	padding: 2rem;
	transition: transform 0.4s var(--ph-ease), border-color 0.4s ease, background 0.4s ease;
}
.ph-card:hover {
	transform: translateY(-6px);
	border-color: var(--ph-border-strong);
	background: rgba(255, 255, 255, 0.06);
}
.ph-card__icon {
	display: inline-flex;
	width: 46px; height: 46px;
	align-items: center; justify-content: center;
	border-radius: var(--ph-radius-sm);
	background: var(--ph-accent-primary-soft);
	color: var(--ph-accent-primary);
	margin-bottom: 1.5rem;
}
.ph-card__icon svg { width: 22px; height: 22px; }
.ph-card__title {
	font-family: var(--ph-font-display);
	font-size: 1.3rem;
	font-weight: 500;
	margin-bottom: 0.6rem;
}
.ph-card__desc { color: var(--ph-text-muted); font-size: 0.95rem; }

@media (max-width: 960px) { .ph-card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .ph-card-grid { grid-template-columns: 1fr; } }

/* =========================================================================
   PROJECTS
   ========================================================================= */
.ph-project-grid {
	margin-top: 3rem;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.75rem;
}
.ph-project-card {
	border-radius: var(--ph-radius-md);
	overflow: hidden;
	background: var(--ph-bg-elevated);
	border: 1px solid var(--ph-border);
	transition: transform 0.45s var(--ph-ease), border-color 0.4s ease;
	display: flex;
	flex-direction: column;
}
.ph-project-card:hover { transform: translateY(-8px); border-color: var(--ph-border-strong); }
.ph-project-card__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ph-bg); }
.ph-project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ph-ease); }
.ph-project-card:hover .ph-project-card__media img { transform: scale(1.06); }
.ph-project-card__placeholder {
	width: 100%; height: 100%;
	background: linear-gradient(135deg, var(--ph-accent-primary-soft), var(--ph-accent-secondary-soft));
}
.ph-project-card__body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.ph-project-card__category {
	font-size: 0.72rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ph-accent-secondary);
	font-weight: 600;
}
.ph-project-card__title { font-family: var(--ph-font-display); font-size: 1.25rem; font-weight: 500; }
.ph-project-card__desc { color: var(--ph-text-muted); font-size: 0.92rem; flex: 1; }
.ph-project-card__links { display: flex; gap: 1.25rem; margin-top: 0.5rem; }
.ph-project-card__link {
	display: inline-flex; align-items: center; gap: 0.4rem;
	font-size: 0.85rem; font-weight: 600; color: var(--ph-text);
	transition: color 0.3s ease;
}
.ph-project-card__link svg { width: 14px; height: 14px; }
.ph-project-card__link:hover { color: var(--ph-accent-secondary); }

@media (max-width: 960px) { .ph-project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .ph-project-grid { grid-template-columns: 1fr; } }

/* =========================================================================
   SOCIAL — Find Me Online
   ========================================================================= */
.ph-social { text-align: center; }
.ph-social__inner { display: flex; flex-direction: column; align-items: center; }
.ph-social__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
	margin-top: 2.5rem;
}
.ph-social__link {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.85rem 1.5rem;
	border-radius: 999px;
	border: 1px solid var(--ph-border);
	background: var(--ph-bg-glass);
	transition: border-color 0.35s ease, transform 0.35s var(--ph-ease), color 0.35s ease;
}
.ph-social__icon svg { width: 18px; height: 18px; }
.ph-social__link:hover {
	transform: translateY(-3px);
	border-color: var(--ph-accent-primary);
	color: var(--ph-accent-primary);
}
.ph-social__empty { color: var(--ph-text-faint); margin-top: 2rem; }

/* =========================================================================
   QUOTE / BRAND STATEMENT
   ========================================================================= */
.ph-quote {
	text-align: center;
	background: var(--ph-bg-elevated);
	border-block: 1px solid var(--ph-border);
	overflow: clip;
}
.ph-quote__bg {
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at 50% 50%, var(--ph-accent-primary-soft), transparent 60%);
	animation: ph-quote-pulse 8s ease-in-out infinite;
}
.ph-quote__text {
	position: relative;
	font-family: var(--ph-font-display);
	font-size: clamp(1.9rem, 5vw, 3.4rem);
	line-height: 1.25;
	font-weight: 400;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}
.ph-quote__line--accent {
	background: linear-gradient(120deg, var(--ph-accent-primary), var(--ph-accent-secondary));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-weight: 500;
}

/* =========================================================================
   VISION — Looking Ahead
   ========================================================================= */
.ph-vision__inner {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: clamp(2rem, 6vw, 4rem);
	align-items: start;
}
.ph-vision__body { color: var(--ph-text-muted); max-width: 55ch; line-height: 1.75; font-size: 1.05rem; }
.ph-vision__pillars {
	display: flex;
	flex-direction: column;
	gap: 0;
}
.ph-vision__pillars li {
	padding-block: 1.1rem;
	border-bottom: 1px solid var(--ph-border);
	font-family: var(--ph-font-display);
	font-size: 1.2rem;
	color: var(--ph-text);
	position: relative;
	padding-left: 1.75rem;
}
.ph-vision__pillars li::before {
	content: '';
	position: absolute;
	left: 0; top: 50%;
	transform: translateY(-50%);
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--ph-accent-secondary);
}
@media (max-width: 860px) { .ph-vision__inner { grid-template-columns: 1fr; } }

/* =========================================================================
   CONTACT
   ========================================================================= */
.ph-contact__inner {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: clamp(2rem, 6vw, 4rem);
}
.ph-contact__lead { color: var(--ph-text-muted); max-width: 45ch; margin-bottom: 2rem; }
.ph-contact__meta { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.ph-contact__meta li { display: flex; flex-direction: column; gap: 0.15rem; }
.ph-contact__meta-label {
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--ph-text-faint);
}
.ph-contact__meta a:hover { color: var(--ph-accent-secondary); }
.ph-contact__social { display: flex; gap: 0.75rem; }
.ph-contact__social a {
	width: 42px; height: 42px;
	display: flex; align-items: center; justify-content: center;
	border: 1px solid var(--ph-border);
	border-radius: 50%;
	transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.ph-contact__social a svg { width: 17px; height: 17px; }
.ph-contact__social a:hover { border-color: var(--ph-accent-primary); color: var(--ph-accent-primary); transform: translateY(-3px); }

.ph-contact-form {
	background: var(--ph-bg-glass);
	border: 1px solid var(--ph-border);
	border-radius: var(--ph-radius-lg);
	padding: clamp(1.75rem, 3vw, 2.5rem);
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}
.ph-field { display: flex; flex-direction: column; gap: 0.5rem; }
.ph-field label { font-size: 0.85rem; color: var(--ph-text-muted); }
.ph-contact-form__submit { align-self: flex-start; margin-top: 0.5rem; }
.ph-contact-form__status { font-size: 0.9rem; min-height: 1.2em; }
.ph-contact-form__status[data-state="success"] { color: #4ade80; }
.ph-contact-form__status[data-state="error"] { color: #f87171; }

@media (max-width: 860px) { .ph-contact__inner { grid-template-columns: 1fr; } }

/* =========================================================================
   FOOTER
   ========================================================================= */
.ph-site-footer { border-top: 1px solid var(--ph-border); padding-block: 3.5rem 0; }
.ph-site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 1.5rem;
	padding-bottom: 2.5rem;
}
.ph-footer-name { font-family: var(--ph-font-display); font-size: 1.15rem; letter-spacing: 0.05em; }
.ph-footer-tagline { color: var(--ph-text-faint); font-size: 0.85rem; margin-top: 0.25rem; }
.ph-footer-nav__list { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.ph-footer-nav__list a { color: var(--ph-text-muted); font-size: 0.88rem; transition: color 0.3s ease; }
.ph-footer-nav__list a:hover { color: var(--ph-text); }
.ph-footer-social { display: flex; gap: 0.75rem; }
.ph-footer-social a {
	width: 38px; height: 38px;
	display: flex; align-items: center; justify-content: center;
	border: 1px solid var(--ph-border);
	border-radius: 50%;
	color: var(--ph-text-muted);
	transition: border-color 0.3s ease, color 0.3s ease;
}
.ph-footer-social a svg { width: 15px; height: 15px; }
.ph-footer-social a:hover { border-color: var(--ph-accent-secondary); color: var(--ph-accent-secondary); }
.ph-site-footer__legal {
	border-top: 1px solid var(--ph-border);
	padding-block: 1.5rem;
	text-align: center;
	color: var(--ph-text-faint);
	font-size: 0.82rem;
}

/* =========================================================================
   STANDARD CONTENT (blog/pages) — kept in the same visual language
   ========================================================================= */
.ph-main--content { padding-top: clamp(3rem, 8vw, 5rem); padding-bottom: clamp(3rem, 8vw, 5rem); }
.ph-content-layout { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; }
.ph-content-layout--single { grid-template-columns: 1fr; max-width: 820px; }
.ph-post-list { display: flex; flex-direction: column; gap: 2.5rem; }
.ph-post-item { border-bottom: 1px solid var(--ph-border); padding-bottom: 2.5rem; }
.ph-post-item__thumb { display: block; border-radius: var(--ph-radius-md); overflow: hidden; margin-bottom: 1.25rem; aspect-ratio: 16/9; }
.ph-post-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ph-post-item__title { font-family: var(--ph-font-display); font-size: 1.6rem; font-weight: 500; margin-bottom: 0.5rem; }
.ph-post-item__title a:hover { color: var(--ph-accent-secondary); }
.ph-post-item__meta { color: var(--ph-text-faint); font-size: 0.85rem; margin-bottom: 0.75rem; }
.ph-post-item__excerpt { color: var(--ph-text-muted); margin-bottom: 1rem; }
.ph-post-item__link { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; font-size: 0.9rem; }
.ph-post-item__link svg { width: 14px; height: 14px; }

.ph-prose { color: var(--ph-text-muted); line-height: 1.8; font-size: 1.05rem; }
.ph-prose h2, .ph-prose h3 { font-family: var(--ph-font-display); color: var(--ph-text); margin-top: 2rem; margin-bottom: 1rem; }
.ph-prose p { margin-bottom: 1.25rem; }
.ph-prose a { color: var(--ph-accent-secondary); text-decoration: underline; text-underline-offset: 3px; }
.ph-prose img { border-radius: var(--ph-radius-md); }

.ph-page-content__header { margin-bottom: 2rem; }
.ph-page-content__thumb { border-radius: var(--ph-radius-lg); overflow: hidden; margin-bottom: 2.5rem; }
.ph-page-content__project-links { margin-top: 2.5rem; }

.ph-pagination { margin-top: 3rem; display: flex; gap: 1rem; }
.ph-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 40px; height: 40px; padding-inline: 0.5rem;
	border: 1px solid var(--ph-border); border-radius: 999px;
	color: var(--ph-text-muted);
}
.ph-pagination .page-numbers.current { border-color: var(--ph-accent-primary); color: var(--ph-text); }

.ph-sidebar .widget { margin-bottom: 2.5rem; }
.ph-sidebar .widget-title { font-family: var(--ph-font-display); font-size: 1.1rem; margin-bottom: 1rem; }

.ph-search-form { display: flex; gap: 0.5rem; }
.ph-search-form__submit {
	padding: 0.85rem 1.25rem;
	border: 1px solid var(--ph-border-strong);
	border-radius: var(--ph-radius-sm);
}

.ph-comments { margin-top: 4rem; border-top: 1px solid var(--ph-border); padding-top: 2.5rem; }
.ph-comments__title { font-family: var(--ph-font-display); font-size: 1.5rem; margin-bottom: 2rem; }
.ph-comment { display: flex; flex-direction: column; gap: 0.75rem; padding-block: 1.5rem; border-bottom: 1px solid var(--ph-border); }
.ph-comment__meta { display: flex; align-items: center; gap: 0.75rem; }
.ph-comment__meta img { border-radius: 50%; }
.ph-comment__author { font-style: normal; font-weight: 600; }
.ph-comment__meta time { display: block; font-size: 0.8rem; color: var(--ph-text-faint); }
.ph-comment-form input, .ph-comment-form textarea { margin-bottom: 1rem; }

.ph-404 { min-height: 70vh; display: flex; align-items: center; }
.ph-404__inner { text-align: center; max-width: 640px; margin-inline: auto; }
.ph-404__code { justify-content: center; margin-block: 1.5rem; }
.ph-404__text { color: var(--ph-text-muted); margin-bottom: 2.5rem; }
.ph-404__search { margin-top: 3rem; display: flex; justify-content: center; }

@media (max-width: 960px) {
	.ph-content-layout { grid-template-columns: 1fr; }
}

/* Keyframes referenced above (base motion; refined further in animations.css) */
@keyframes ph-scroll-cue {
	0%, 100% { transform: translateY(0); opacity: 1; }
	50% { transform: translateY(10px); opacity: 0.4; }
}
