@charset "utf-8";
/* ==========================================================================
   Portfolio interactive layer — cursor, rail, palette, case studies, toast
   ========================================================================== */

/* ---------- Cursor ---------- */
.pf-cursor {
	position: fixed;
	top: 0;
	left: 0;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: 1px solid rgba(226, 71, 94, 0.9);
	pointer-events: none;
	z-index: 1300;
	transform: translate(-50%, -50%);
	transition: width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s, opacity 0.3s;
	opacity: 0;
}

.pf-cursor.on { opacity: 1; }

.pf-cursor.grow {
	width: 66px;
	height: 66px;
	background: rgba(176, 24, 47, 0.16);
	border-color: rgba(226, 71, 94, 0.45);
}

.pf-cursor-dot {
	position: fixed;
	top: 0;
	left: 0;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--rose);
	pointer-events: none;
	z-index: 1301;
	transform: translate(-50%, -50%);
	opacity: 0;
}

.pf-cursor-dot.on { opacity: 1; }

/* ---------- Section rail ---------- */
.pf-rail {
	position: fixed;
	right: 22px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 900;
	display: grid;
	gap: 14px;
	padding: 14px 10px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: rgba(12, 11, 17, 0.6);
	backdrop-filter: blur(12px);
}

.pf-rail button {
	position: relative;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.22);
	transition: background 0.3s, transform 0.3s var(--ease);
}

.pf-rail button:hover { transform: scale(1.4); background: var(--rose); }

.pf-rail button.active {
	background: var(--rose);
	box-shadow: 0 0 0 4px rgba(226, 71, 94, 0.18);
}

.pf-rail button span {
	position: absolute;
	right: 22px;
	top: 50%;
	transform: translateY(-50%) translateX(6px);
	white-space: nowrap;
	font-family: var(--font-mono);
	font-size: 0.68rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--text-2);
	background: rgba(12, 11, 17, 0.94);
	border: 1px solid var(--line);
	padding: 5px 10px;
	border-radius: 8px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s, transform 0.25s var(--ease);
}

.pf-rail button:hover span { opacity: 1; transform: translateY(-50%) translateX(0); }

/* ---------- Hero status + palette hint ---------- */
.pf-status {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	font-family: var(--font-mono);
	font-size: 0.76rem;
	color: var(--text-3);
}

.pf-status b { color: var(--text-2); font-weight: 400; }

.pf-kbd {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 12px;
	border-radius: 9px;
	border: 1px solid var(--line-strong);
	background: rgba(255, 255, 255, 0.04);
	font-family: var(--font-mono);
	font-size: 0.72rem;
	color: var(--text-2);
	cursor: pointer;
	transition: border-color 0.25s, color 0.25s, background 0.25s;
}

.pf-kbd:hover { border-color: rgba(226, 71, 94, 0.6); color: var(--text); }

.pf-kbd kbd {
	font-family: inherit;
	padding: 1px 6px;
	border-radius: 5px;
	background: rgba(255, 255, 255, 0.1);
}

/* ---------- Split text ---------- */
.js .split-word {
	display: inline-block;
	transform: translateY(0.9em) rotate(3deg);
	opacity: 0;
	transition: transform 0.85s var(--ease), opacity 0.6s var(--ease);
	transition-delay: var(--wd, 0ms);
}

.js .split-run .split-word { transform: none; opacity: 1; }

/* ---------- Stat strip ---------- */
.pf-statstrip {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	border: 1px solid var(--line);
	border-radius: 20px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.02);
	margin-top: clamp(30px, 5vw, 50px);
	position: relative;
	z-index: 1;
}

.pf-statstrip div {
	padding: 22px clamp(14px, 2vw, 26px);
	border-right: 1px solid var(--line);
}

.pf-statstrip div:last-child { border-right: 0; }

.pf-statstrip strong {
	display: block;
	font-family: var(--font-display);
	font-size: clamp(1.9rem, 3.4vw, 2.6rem);
	letter-spacing: -0.03em;
	line-height: 1;
	background: var(--grad-text);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-variant-numeric: tabular-nums;
}

.pf-statstrip span { font-size: 0.8rem; color: var(--text-2); }

/* ---------- Projects ---------- */
.pf-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 24px;
}

.pf-project {
	transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.5s, opacity 0.4s;
	cursor: pointer;
}

.pf-project.is-out { display: none; }

.pf-project:hover {
	box-shadow: 0 34px 70px -44px rgba(176, 24, 47, 0.9);
	border-color: rgba(226, 71, 94, 0.45);
}

.pf-open-hint {
	position: absolute;
	z-index: 2;
	right: 14px;
	top: 14px;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 13px;
	border-radius: 999px;
	font-size: 0.72rem;
	background: rgba(9, 8, 13, 0.78);
	border: 1px solid var(--line-strong);
	backdrop-filter: blur(6px);
	opacity: 0;
	transform: translateY(-6px);
	transition: opacity 0.35s, transform 0.35s var(--ease);
}

.pf-project:hover .pf-open-hint,
.pf-project:focus-within .pf-open-hint { opacity: 1; transform: none; }

.pf-proj-body .card-link { position: relative; z-index: 3; }

/* ---------- Case-study overlay ---------- */
.pf-modal {
	position: fixed;
	inset: 0;
	z-index: 1250;
	display: grid;
	place-items: center;
	padding: clamp(10px, 3vw, 28px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s, visibility 0.35s;
}

.pf-modal.open { opacity: 1; visibility: visible; }

.pf-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(4, 4, 7, 0.84);
	backdrop-filter: blur(10px);
}

.pf-modal-dialog {
	position: relative;
	width: min(1040px, 100%);
	max-height: calc(100vh - 40px);
	max-height: calc(100dvh - 40px);
	overflow-y: auto;
	border-radius: 26px;
	border: 1px solid var(--line-strong);
	background: linear-gradient(180deg, rgba(22, 20, 28, 0.98), rgba(10, 9, 14, 0.99));
	box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 0.92);
	transform: translateY(26px) scale(0.985);
	transition: transform 0.5s var(--ease);
}

.pf-modal.open .pf-modal-dialog { transform: none; }

.pf-modal-media {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #0b0a0f;
}

.pf-modal-media img { width: 100%; height: 100%; object-fit: cover; }

.pf-modal-media::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 35%, rgba(10, 9, 14, 0.97));
}

.pf-modal-head {
	position: absolute;
	left: clamp(20px, 4vw, 40px);
	right: clamp(20px, 4vw, 40px);
	bottom: 20px;
	z-index: 1;
}

.pf-modal-head h3 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); margin-top: 6px; }

.pf-modal-body {
	padding: clamp(22px, 4vw, 40px);
	display: grid;
	grid-template-columns: 1.25fr 0.75fr;
	gap: clamp(20px, 4vw, 42px);
}

.pf-modal-body h4 {
	font-family: var(--font-mono);
	font-weight: 500;
	font-size: 0.72rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--text-3);
	margin-bottom: 12px;
}

.pf-modal-body > div > p { color: var(--text-2); margin-bottom: 18px; }

.pf-modal-foot {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: space-between;
	align-items: center;
	padding-top: 20px;
	border-top: 1px solid var(--line);
}

.pf-modal-nav { display: flex; gap: 8px; align-items: center; }

.pf-modal-nav button {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid var(--line-strong);
	display: grid;
	place-items: center;
	color: var(--text-2);
	transition: border-color 0.25s, color 0.25s, transform 0.25s var(--ease);
}

.pf-modal-nav button:hover { color: var(--text); border-color: var(--rose); transform: translateY(-2px); }

.pf-modal-nav span {
	font-family: var(--font-mono);
	font-size: 0.72rem;
	color: var(--text-3);
	margin-left: 4px;
}

.pf-modal-close {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 2;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: rgba(9, 8, 13, 0.75);
	border: 1px solid var(--line-strong);
	transition: transform 0.3s var(--ease), background 0.3s;
}

.pf-modal-close:hover { transform: rotate(90deg); background: var(--brand); }

/* ---------- Command palette ---------- */
.pf-palette {
	position: fixed;
	inset: 0;
	z-index: 1400;
	display: grid;
	justify-items: center;
	align-content: start;
	padding: clamp(60px, 12vh, 140px) 16px 16px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s, visibility 0.25s;
}

.pf-palette.open { opacity: 1; visibility: visible; }

.pf-palette-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(4, 4, 7, 0.75);
	backdrop-filter: blur(8px);
}

.pf-palette-box {
	position: relative;
	width: min(620px, 100%);
	border-radius: 20px;
	border: 1px solid var(--line-strong);
	background: linear-gradient(180deg, rgba(24, 22, 31, 0.99), rgba(12, 11, 17, 0.99));
	box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9);
	overflow: hidden;
	transform: translateY(-14px) scale(0.98);
	transition: transform 0.35s var(--ease);
}

.pf-palette.open .pf-palette-box { transform: none; }

.pf-palette-input {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 17px 20px;
	border-bottom: 1px solid var(--line);
}

.pf-palette-input .icon { color: var(--rose); width: 20px; height: 20px; }

.pf-palette-input input {
	flex: 1;
	background: none;
	border: 0;
	outline: none;
	font-size: 1rem;
	color: var(--text);
}

.pf-palette-list {
	max-height: min(52vh, 420px);
	overflow-y: auto;
	padding: 8px;
}

.pf-palette-list li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 14px;
	border-radius: 12px;
	cursor: pointer;
	color: var(--text-2);
	font-size: 0.93rem;
}

.pf-palette-list li .icon { width: 18px; height: 18px; color: var(--text-3); }

.pf-palette-list li small {
	margin-left: auto;
	font-family: var(--font-mono);
	font-size: 0.68rem;
	color: var(--text-3);
}

.pf-palette-list li.sel { background: rgba(176, 24, 47, 0.2); color: var(--text); }

.pf-palette-list li.sel .icon { color: var(--rose); }

.pf-palette-empty { padding: 26px; text-align: center; color: var(--text-3); font-size: 0.9rem; }

/* ---------- Toast ---------- */
.pf-toast {
	position: fixed;
	left: 50%;
	bottom: 28px;
	transform: translate(-50%, 24px);
	z-index: 1450;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 20px;
	border-radius: 999px;
	background: rgba(18, 16, 24, 0.97);
	border: 1px solid var(--line-strong);
	box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.9);
	font-size: 0.9rem;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s, transform 0.4s var(--ease), visibility 0.3s;
}

.pf-toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.pf-toast .icon { color: var(--cyan); }

/* ---------- Timeline ---------- */
.pf-timeline { position: relative; padding-left: 26px; }

.pf-timeline::before {
	content: '';
	position: absolute;
	left: 5px;
	top: 12px;
	bottom: 12px;
	width: 2px;
	border-radius: 2px;
	background: var(--line-strong);
}

.pf-timeline::after {
	content: '';
	position: absolute;
	left: 5px;
	top: 12px;
	width: 2px;
	height: calc((100% - 24px) * var(--rail, 0));
	border-radius: 2px;
	background: linear-gradient(180deg, var(--brand), var(--rose));
}

.pf-job::before {
	content: '';
	position: absolute;
	left: -26px;
	top: 32px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--ink);
	border: 2px solid var(--line-strong);
	transition: all 0.4s var(--ease);
}

.pf-job.lit::before {
	background: var(--rose);
	border-color: var(--rose);
	box-shadow: 0 0 0 6px rgba(226, 71, 94, 0.16);
}

.pf-job-toggle {
	position: absolute;
	right: 0;
	top: 24px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid var(--line-strong);
	display: grid;
	place-items: center;
	color: var(--text-2);
	transition: transform 0.4s var(--ease), background 0.3s, color 0.3s;
}

.pf-job[data-open="true"] .pf-job-toggle {
	transform: rotate(45deg);
	background: var(--grad);
	color: #fff;
	border-color: transparent;
}

.pf-job-details {
	overflow: hidden;
	max-height: 0;
	opacity: 0;
	transition: max-height 0.55s var(--ease), opacity 0.4s;
}

.pf-job[data-open="true"] .pf-job-details { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
	.pf-rail { display: none; }
}

@media (max-width: 760px) {
	.pf-statstrip { grid-template-columns: repeat(2, 1fr); }
	.pf-statstrip div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
	.pf-statstrip div:nth-child(2) { border-right: 0; }
	.pf-modal-body { grid-template-columns: 1fr; }
	.pf-cursor, .pf-cursor-dot { display: none; }
	.pf-timeline { padding-left: 22px; }
	.pf-job-toggle { top: 18px; }
	.pf-job { padding-right: 44px; }
}

/* ==========================================================================
   Monogram composition
   ========================================================================== */
.pf-portrait {
	transform-style: preserve-3d;
	perspective: 900px;
	transition: transform 0.6s var(--ease);
}

.pf-halo {
	position: absolute;
	inset: -18%;
	border-radius: 50%;
	background:
		radial-gradient(circle at 50% 50%, rgba(176, 24, 47, 0.42), transparent 62%),
		radial-gradient(circle at 30% 70%, rgba(226, 71, 94, 0.22), transparent 60%);
	filter: blur(14px);
	animation: pfHalo 7s ease-in-out infinite;
}

@keyframes pfHalo {
	0%, 100% { transform: scale(1); opacity: 0.85; }
	50% { transform: scale(1.09); opacity: 1; }
}

.pf-ringtext {
	position: absolute;
	inset: -9%;
	animation: pfSpin 34s linear infinite;
}

.pf-ringtext text {
	font-family: var(--font-mono);
	font-size: 9.4px;
	letter-spacing: 0.36em;
	fill: rgba(255, 255, 255, 0.55);
	text-transform: uppercase;
}

.pf-arc {
	position: absolute;
	inset: -2%;
	overflow: visible;
	fill: none;
}

.pf-arc circle {
	stroke-linecap: round;
	transform-origin: 50% 50%;
}

.pf-arc-a {
	stroke: rgba(226, 71, 94, 0.85);
	stroke-width: 2;
	stroke-dasharray: 46 250;
	animation: pfSpin 9s linear infinite;
}

.pf-arc-b {
	stroke: rgba(255, 255, 255, 0.3);
	stroke-width: 1;
	stroke-dasharray: 4 14;
	animation: pfSpin 26s linear infinite reverse;
}

.pf-portrait .ring {
	inset: 4%;
	animation-duration: 13s;
	filter: drop-shadow(0 0 18px rgba(176, 24, 47, 0.55));
}

.pf-portrait .disc {
	inset: 13%;
	box-shadow: inset 0 0 60px rgba(176, 24, 47, 0.28), 0 30px 60px -30px rgba(0, 0, 0, 0.9);
	overflow: hidden;
}

.pf-monogram {
	position: relative;
	z-index: 2;
	background: linear-gradient(120deg, #ffffff 0%, #e2475e 45%, #8b0f24 100%);
	-webkit-background-clip: text;
	background-clip: text;
	filter: drop-shadow(0 6px 20px rgba(176, 24, 47, 0.5));
}

.pf-sweep {
	position: absolute;
	top: -60%;
	left: -120%;
	width: 60%;
	height: 220%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
	transform: rotate(18deg);
	animation: pfSweep 5.5s ease-in-out infinite;
	z-index: 3;
}

@keyframes pfSweep {
	0%, 62% { left: -120%; }
	100% { left: 140%; }
}

.pf-scan {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 4px);
	opacity: 0.4;
	mask-image: radial-gradient(circle at 50% 50%, #000 40%, transparent 72%);
	-webkit-mask-image: radial-gradient(circle at 50% 50%, #000 40%, transparent 72%);
}

.pf-orbit-2 {
	animation-duration: 19s;
	animation-direction: reverse;
}

.pf-orbit-2 span {
	width: 34px;
	height: 34px;
	margin: -17px;
	border-radius: 11px;
	color: var(--cyan);
	transform: rotate(var(--a)) translate(min(122px, 30vw)) rotate(calc(-1 * var(--a)));
}

.pf-orbit-2 span .icon {
	width: 16px;
	height: 16px;
	animation-duration: 19s;
	animation-direction: normal;
}

.pf-badge {
	position: absolute;
	left: 50%;
	bottom: -6px;
	transform: translateX(-50%);
	z-index: 4;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 14px;
	border-radius: 999px;
	background: rgba(12, 11, 17, 0.92);
	border: 1px solid var(--line-strong);
	backdrop-filter: blur(8px);
	font-family: var(--font-mono);
	font-size: 0.7rem;
	letter-spacing: 0.1em;
	color: var(--text-2);
	white-space: nowrap;
}

@media (max-width: 760px) {
	.pf-ringtext text { font-size: 11px; letter-spacing: 0.26em; }
	.pf-orbit-2 span { width: 28px; height: 28px; margin: -14px; }
	.pf-orbit-2 span .icon { width: 14px; height: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	.pf-halo, .pf-ringtext, .pf-arc-a, .pf-arc-b, .pf-sweep, .pf-portrait .ring, .pf-orbit, .pf-orbit-2 {
		animation: none !important;
	}
}

/* ==========================================================================
   Stack explorer
   ========================================================================== */
.pf-stack-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 26px;
}

.pf-stack-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.pf-stack-chips li {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 11px 18px;
	border-radius: 14px;
	border: 1px solid var(--line);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
	font-size: 0.92rem;
	color: var(--text-2);
	transition: transform 0.35s var(--ease), border-color 0.3s, color 0.3s, background 0.3s, opacity 0.3s;
}

.pf-stack-chips li .icon {
	width: 17px;
	height: 17px;
	color: var(--rose);
	opacity: 0.8;
}

.pf-stack-chips li:hover {
	transform: translateY(-4px);
	color: var(--text);
	border-color: rgba(226, 71, 94, 0.55);
	background: linear-gradient(180deg, rgba(176, 24, 47, 0.18), rgba(176, 24, 47, 0.05));
}

.pf-stack-chips li.dim {
	opacity: 0.22;
	filter: grayscale(1);
}

/* ==========================================================================
   Learning journey
   ========================================================================== */
.pf-journey {
	position: relative;
}

.pf-journey-head {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 22px;
}

.pf-journey-rail {
	flex: 1;
	height: 3px;
	border-radius: 3px;
	background: var(--line-strong);
	overflow: hidden;
}

.pf-journey-rail i {
	display: block;
	height: 100%;
	width: var(--p, 25%);
	border-radius: 3px;
	background: var(--grad);
	transition: width 0.25s linear;
}

.pf-journey-nav {
	display: flex;
	gap: 8px;
}

.pf-journey-nav button {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid var(--line-strong);
	display: grid;
	place-items: center;
	color: var(--text-2);
	transition: color 0.25s, border-color 0.25s, transform 0.25s var(--ease), opacity 0.25s;
}

.pf-journey-nav button:hover {
	color: var(--text);
	border-color: var(--rose);
	transform: translateY(-2px);
}

.pf-journey-nav button:disabled {
	opacity: 0.35;
	pointer-events: none;
}

#pf-j-prev .icon {
	transform: rotate(180deg);
}

.pf-journey-list {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding: 4px 0 10px;
	margin-inline: -4px;
	padding-inline: 4px;
	list-style: none;
	counter-reset: mile;
}

.pf-journey-list::-webkit-scrollbar {
	display: none;
}

.pf-mile {
	flex: 0 0 clamp(260px, 30%, 340px);
	scroll-snap-align: start;
	display: grid;
	gap: 12px;
}

.pf-mile-year {
	font-family: var(--font-mono);
	font-size: 0.76rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--rose);
	display: flex;
	align-items: center;
	gap: 10px;
}

.pf-mile-year::after {
	content: '';
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, rgba(226, 71, 94, 0.5), transparent);
}

.pf-mile-card {
	position: relative;
	height: 100%;
	padding: 24px;
	border-radius: 20px;
	border: 1px solid var(--line);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
	display: grid;
	gap: 12px;
	align-content: start;
	overflow: hidden;
	transition: transform 0.45s var(--ease), border-color 0.35s, box-shadow 0.45s;
}

.pf-mile-card::before {
	content: '';
	position: absolute;
	inset: 0 0 auto 0;
	height: 3px;
	background: var(--grad);
	transform: scaleX(0);
	transform-origin: 0 50%;
	transition: transform 0.5s var(--ease);
}

.pf-mile-card:hover {
	transform: translateY(-6px);
	border-color: rgba(226, 71, 94, 0.45);
	box-shadow: 0 30px 60px -40px rgba(176, 24, 47, 0.9);
}

.pf-mile-card:hover::before {
	transform: none;
}

.pf-mile-card h3 {
	font-size: 1.05rem;
}

.pf-mile-card p {
	color: var(--text-2);
	font-size: 0.9rem;
}

.pf-learning {
	margin-top: clamp(32px, 5vw, 48px);
	padding: clamp(24px, 3.5vw, 36px);
	border-radius: 24px;
	border: 1px solid var(--line);
	background:
		radial-gradient(60% 120% at 0% 0%, rgba(176, 24, 47, 0.16), transparent 60%),
		rgba(255, 255, 255, 0.02);
	display: grid;
	grid-template-columns: 0.8fr 1.2fr;
	gap: clamp(20px, 3vw, 40px);
	align-items: center;
}

.pf-learning h3 {
	font-size: clamp(1.2rem, 2.2vw, 1.6rem);
}

/* ==========================================================================
   Contact panel
   ========================================================================== */
.pf-cta {
	position: relative;
	border-radius: 30px;
	border: 1px solid var(--line-strong);
	overflow: hidden;
	background:
		radial-gradient(70% 120% at 0% 0%, rgba(176, 24, 47, 0.3), transparent 60%),
		radial-gradient(60% 110% at 100% 100%, rgba(94, 9, 20, 0.4), transparent 60%),
		var(--ink-2);
}

.pf-cta::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
	background-size: 46px 46px;
	mask-image: radial-gradient(ellipse at 20% 0%, #000, transparent 70%);
	-webkit-mask-image: radial-gradient(ellipse at 20% 0%, #000, transparent 70%);
	pointer-events: none;
}

.pf-cta-grid {
	position: relative;
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: clamp(28px, 4vw, 56px);
	padding: clamp(28px, 4.5vw, 56px);
}

.pf-cta-copy > p {
	color: var(--text-2);
	margin-bottom: 26px;
	max-width: 48ch;
}

.pf-actions {
	display: grid;
	gap: 10px;
}

.pf-action {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	text-align: left;
	padding: 14px 18px;
	border-radius: 16px;
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.03);
	color: var(--text);
	transition: transform 0.35s var(--ease), border-color 0.3s, background 0.3s;
}

.pf-action:hover {
	transform: translateX(5px);
	border-color: rgba(226, 71, 94, 0.5);
	background: rgba(176, 24, 47, 0.12);
}

.pf-action > .icon {
	width: 38px;
	height: 38px;
	padding: 9px;
	border-radius: 12px;
	background: var(--grad-soft);
	color: var(--rose);
	flex-shrink: 0;
}

.pf-action small {
	display: block;
	font-family: var(--font-mono);
	font-size: 0.68rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--text-3);
}

.pf-action strong {
	font-weight: 500;
	font-size: 0.95rem;
	overflow-wrap: anywhere;
}

.pf-action .go {
	margin-left: auto;
	width: 18px;
	height: 18px;
	color: var(--text-3);
	transition: transform 0.35s var(--ease), color 0.3s;
}

.pf-action:hover .go {
	transform: translate(3px, -3px);
	color: var(--rose);
}

.pf-steps {
	display: grid;
	gap: 12px;
	margin-top: 28px;
	counter-reset: step;
	list-style: none;
}

.pf-steps li {
	display: flex;
	align-items: center;
	gap: 14px;
	color: var(--text-2);
	font-size: 0.92rem;
}

.pf-steps b {
	font-family: var(--font-mono);
	font-size: 0.72rem;
	color: var(--rose);
	width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	border: 1px solid rgba(226, 71, 94, 0.35);
	flex-shrink: 0;
}

.pf-form {
	align-self: start;
	display: grid;
	gap: 14px;
	padding: clamp(20px, 2.6vw, 30px);
	border-radius: 24px;
	border: 1px solid var(--line-strong);
	background: rgba(8, 7, 11, 0.72);
	backdrop-filter: blur(14px);
}

.pf-form-top {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px;
	font-family: var(--font-mono);
	font-size: 0.74rem;
	color: var(--text-3);
	padding-bottom: 12px;
	border-bottom: 1px solid var(--line);
}

.pf-form-top .live-dot {
	display: inline-block;
	vertical-align: -1px;
	margin-right: 6px;
}

.pf-form-top b {
	color: var(--text-2);
	font-weight: 400;
}

.pf-form .btn {
	width: 100%;
	margin-top: 4px;
}

.pf-form-note {
	color: var(--text-3);
	font-size: 0.76rem;
	text-align: center;
}

@media (max-width: 1024px) {
	.pf-cta-grid,
	.pf-learning {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 760px) {
	.pf-mile {
		flex-basis: 78%;
	}

	.pf-stack-chips li {
		padding: 9px 14px;
		font-size: 0.85rem;
	}

	.pf-cta {
		border-radius: 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.js .split-word { transform: none; opacity: 1; }
	.pf-cursor, .pf-cursor-dot { display: none; }
}
