/* ═══════════════════════════════════════════════════════════════════
   Executive Portfolio — design system
   ───────────────────────────────────────────────────────────────────
   Loaded only on the Executive Portfolio template. Every rule is
   scoped under .pf so it cannot reach any other page.

   Palette derives from the site's own Astra globals (#c3317d magenta
   on #18202c navy) so the page feels native to the platform, with a
   magenta→violet gradient as the single accent. One accent, a neutral
   ramp, and generous space — no decorative noise.
   ═══════════════════════════════════════════════════════════════════ */

.pf {
	/* Neutral ramp — deep navy through to near-white */
	--pf-bg:        #0c121c;
	--pf-bg-alt:    #101825;
	--pf-surface:   #16202e;
	--pf-surface-2: #1b2736;
	--pf-line:      rgba(255, 255, 255, 0.09);
	--pf-line-soft: rgba(255, 255, 255, 0.055);

	--pf-ink:       #f2f5f9;
	--pf-ink-2:     #c3ccd8;
	--pf-muted:     #8b97a8;

	/* Single accent + gradient */
	--pf-accent:    #d9469a;
	--pf-accent-2:  #8b6cff;
	--pf-grad:      linear-gradient(115deg, #d9469a 0%, #8b6cff 100%);

	--pf-radius:    14px;
	--pf-radius-sm: 10px;
	--pf-maxw:      1180px;

	/* Fluid section rhythm */
	--pf-section-y: clamp(3rem, 6vw, 5.5rem);

	background: var(--pf-bg);
	color: var(--pf-ink);
	font-synthesis-weight: none;
	-webkit-font-smoothing: antialiased;
}

/* Astra's chrome is suppressed on this template, so reclaim the space. */
.pf-template .site-content,
.pf-template .ast-container,
.pf-template #primary,
.pf-template .entry-content {
	margin: 0 !important;
	padding: 0 !important;
	max-width: none !important;
	width: 100% !important;
}

/* .ast-container is display:flex, which made .pf a flex item that sized
   to its content (1180px) instead of filling the viewport — the page
   rendered as a column with dead space beside it. Switching the
   container to block, and letting .pf claim full width, fixes it
   without touching Astra's own layout anywhere else. */
.pf-template .ast-container {
	display: block !important;
}

.pf {
	width: 100%;
	flex: 1 1 100%;
}

.pf-template .entry-header,
.pf-template .ast-single-post-order,
.pf-template .post-navigation {
	display: none !important;
}

.pf-wrap {
	width: 100%;
	max-width: var(--pf-maxw);
	margin-inline: auto;
	padding-inline: clamp(1.15rem, 4vw, 2.5rem);
}

/* Keyboard users land here first. */
.pf-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 200;
	background: var(--pf-accent);
	color: #fff;
	padding: 0.7rem 1.1rem;
	border-radius: 0 0 var(--pf-radius-sm) 0;
}

.pf-skip:focus {
	left: 0;
}

/* ── Typography ─────────────────────────────────────────────────── */

.pf h1, .pf h2, .pf h3 {
	color: var(--pf-ink);
	letter-spacing: -0.022em;
	line-height: 1.14;
	margin: 0;
	font-weight: 700;
}

.pf p {
	margin: 0;
	color: var(--pf-ink-2);
	line-height: 1.68;
}

.pf .pf-h2 {
	font-size: clamp(1.55rem, 1.05rem + 1.9vw, 2.45rem);
	max-width: 22ch;
}

.pf .pf-h3 {
	font-size: clamp(1rem, 0.95rem + 0.28vw, 1.14rem);
	font-weight: 640;
	letter-spacing: -0.008em;
	line-height: 1.35;
}

.pf-eyebrow {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	margin: 0 0 0.75rem !important;
	background: var(--pf-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.pf-lede {
	font-size: clamp(1rem, 0.96rem + 0.3vw, 1.12rem);
	color: var(--pf-ink-2);
	max-width: 62ch;
	margin-top: 0.9rem !important;
}

.pf-prose p + p {
	margin-top: 0.9rem;
}

.pf-prose {
	max-width: 68ch;
	margin-top: 1.4rem;
}

.pf-mt,
.pf .pf-mt {
	/* `.pf h3 { margin: 0 }` outranked the bare .pf-mt, so every
	   sub-heading using it had lost its top spacing. */
	margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

/* ── Sticky navigation ──────────────────────────────────────────── */

.pf-nav {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(12, 18, 28, 0.82);
	backdrop-filter: saturate(150%) blur(14px);
	-webkit-backdrop-filter: saturate(150%) blur(14px);
	border-bottom: 1px solid var(--pf-line-soft);
	transition: border-color 0.25s ease, background 0.25s ease;
}

.pf-nav.is-stuck {
	border-bottom-color: var(--pf-line);
	background: rgba(12, 18, 28, 0.94);
}

.pf-nav__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 62px;
}

.pf-nav__brand {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
	text-decoration: none;
	flex-shrink: 0;
}

.pf-nav__name {
	font-weight: 700;
	font-size: 0.98rem;
	color: var(--pf-ink);
	letter-spacing: -0.01em;
}

.pf-nav__role {
	font-size: 0.7rem;
	color: var(--pf-muted);
	letter-spacing: 0.04em;
}

.pf-nav__menu ul {
	display: flex;
	gap: clamp(0.6rem, 1.4vw, 1.4rem);
	list-style: none;
	margin: 0;
	padding: 0;
}

.pf-nav__menu a {
	display: block;
	padding: 0.4rem 0.15rem;
	font-size: 0.86rem;
	color: var(--pf-muted);
	text-decoration: none;
	border-bottom: 2px solid transparent;
	transition: color 0.18s ease, border-color 0.18s ease;
	white-space: nowrap;
}

.pf-nav__menu a:hover,
.pf-nav__menu a:focus-visible {
	color: var(--pf-ink);
}

/* Scrollspy marks the section currently in view. */
.pf-nav__menu a.is-active {
	color: var(--pf-ink);
	border-bottom-color: var(--pf-accent);
}

.pf-nav__toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 42px;
	height: 42px;
	padding: 0;
	background: transparent;
	border: 1px solid var(--pf-line);
	border-radius: var(--pf-radius-sm);
	cursor: pointer;
}

.pf-nav__bar {
	display: block;
	width: 18px;
	height: 2px;
	margin-inline: auto;
	background: var(--pf-ink);
	border-radius: 2px;
	transition: transform 0.22s ease, opacity 0.18s ease;
}

/* ── Hero ───────────────────────────────────────────────────────── */

.pf-hero {
	position: relative;
	padding-block: clamp(3rem, 8vw, 6.5rem) clamp(2.5rem, 5vw, 4rem);
	overflow: hidden;
}

/* Soft off-centre glow — the only decorative flourish on the page. */
.pf-hero::before {
	content: "";
	position: absolute;
	inset: -30% 40% 40% -20%;
	background: radial-gradient(closest-side, rgba(217, 70, 154, 0.16), transparent 70%);
	pointer-events: none;
}

.pf-hero::after {
	content: "";
	position: absolute;
	inset: -10% -25% 45% 45%;
	background: radial-gradient(closest-side, rgba(139, 108, 255, 0.14), transparent 70%);
	pointer-events: none;
}

.pf-hero > .pf-wrap {
	position: relative;
}

/* ── Hero layout: text left, portrait right ─────────────────────── */

.pf-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: start;
	gap: clamp(1.5rem, 4vw, 3.5rem);
}

.pf-hero__text {
	min-width: 0;  /* let the text column shrink instead of overflowing */
}

.pf-hero__portrait {
	justify-self: end;
	/* Nudged down so the portrait aligns with the name rather than the
	   small location label above it. */
	margin-top: 0.4rem;
}

/* Gradient ring drawn as a padded wrapper — one element, no pseudo
   stacking, and it degrades to a plain border if gradients fail. */
.pf-hero__frame {
	position: relative;
	padding: 3px;
	border-radius: 20px;
	background: var(--pf-grad);
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
	line-height: 0;
}

/* The source portrait is only 166×188px. Displaying it larger would
   visibly soften it, so the frame is capped near its native size and
   the image is cropped to a square via object-fit rather than being
   upscaled. Replace the attachment with a higher-resolution file and
   this box can grow. */
.pf-hero__img {
	display: block;
	width: 168px;
	height: 188px;
	object-fit: cover;
	object-position: center top;
	border-radius: 17px;
	background: var(--pf-surface);
}

@media (max-width: 900px) {
	/* Stack, portrait first — it anchors the page before the reader
	   commits to the text. */
	.pf-hero__grid {
		grid-template-columns: 1fr;
		gap: 1.4rem;
	}

	.pf-hero__portrait {
		order: -1;
		justify-self: start;
		margin-top: 0;
	}

	.pf-hero__img {
		width: 132px;
		height: 148px;
	}
}

.pf-hero__eyebrow {
	font-size: 0.76rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--pf-muted) !important;
	margin-bottom: 1rem !important;
}

.pf-hero__name {
	font-size: clamp(2.6rem, 1.5rem + 4.4vw, 5rem);
	line-height: 1.02;
	letter-spacing: -0.035em;
	margin-bottom: 0.85rem;
}

.pf-hero__headline {
	font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.4rem);
	font-weight: 600;
	color: var(--pf-ink) !important;
	margin-bottom: 0.7rem !important;
}

.pf-hero__tagline {
	font-size: clamp(0.84rem, 0.8rem + 0.2vw, 0.94rem);
	color: var(--pf-muted) !important;
	max-width: 70ch;
	line-height: 1.6 !important;
	margin-bottom: 1.35rem !important;
}

.pf-hero__intro {
	font-size: clamp(1rem, 0.95rem + 0.35vw, 1.16rem);
	max-width: 60ch;
	margin-bottom: 1.5rem !important;
}

.pf-hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-top: 1.6rem;
}

/* ── Buttons ────────────────────────────────────────────────────── */

.pf-btn {
	display: inline-block;
	padding: 0.72em 1.4em;
	border-radius: 999px;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid transparent;
	transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.pf-btn--primary {
	background: var(--pf-grad);
	color: #fff;
}

.pf-btn--ghost {
	border-color: var(--pf-line);
	color: var(--pf-ink-2);
}

.pf-btn--ghost:hover {
	border-color: var(--pf-accent);
	color: var(--pf-ink);
}

.pf-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* ── Sections ───────────────────────────────────────────────────── */

.pf-section {
	padding-block: var(--pf-section-y);
	border-top: 1px solid var(--pf-line-soft);
}

.pf-section--alt {
	background: var(--pf-bg-alt);
}

/* Healthcare and value proposition get a tinted band so they read as
   the differentiators they are. */
.pf-section--feature {
	background:
		linear-gradient(180deg, rgba(217, 70, 154, 0.07), rgba(139, 108, 255, 0.05)),
		var(--pf-bg-alt);
}

.pf-section__head {
	max-width: 70ch;
}

/* ── Pills ──────────────────────────────────────────────────────── */

.pf-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 1.5rem 0 0;
	padding: 0;
}

.pf-pill {
	padding: 0.44rem 0.85rem;
	font-size: 0.845rem;
	color: var(--pf-ink-2);
	background: var(--pf-surface);
	border: 1px solid var(--pf-line);
	border-radius: 999px;
	transition: border-color 0.16s ease, color 0.16s ease;
}

.pf-pill:hover {
	border-color: rgba(217, 70, 154, 0.5);
	color: var(--pf-ink);
}

.pf-pills--tight .pf-pill {
	font-size: 0.8rem;
	padding: 0.36rem 0.72rem;
}

.pf-pills--accent .pf-pill {
	background: rgba(217, 70, 154, 0.09);
	border-color: rgba(217, 70, 154, 0.28);
	color: var(--pf-ink);
}

/* ── Flow (a → b → c) ───────────────────────────────────────────── */

.pf-flow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 0.55rem;
	list-style: none;
	margin: 1.3rem 0 0;
	padding: 0;
	counter-reset: none;
}

.pf-flow__step {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
}

.pf-flow__label {
	padding: 0.42rem 0.9rem;
	font-size: 0.855rem;
	font-weight: 550;
	color: var(--pf-ink);
	background: var(--pf-surface-2);
	border: 1px solid var(--pf-line);
	border-radius: var(--pf-radius-sm);
	white-space: nowrap;
}

.pf-flow__arrow {
	color: var(--pf-accent);
	font-size: 0.95rem;
	opacity: 0.75;
}

.pf-flow--hero .pf-flow__label {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.14);
}

.pf-flow--balance .pf-flow__arrow,
.pf-flow--plus .pf-flow__arrow {
	font-size: 0;
}

/* The "balance" and "equation" rows read as sums, not sequences. */
.pf-flow--balance .pf-flow__arrow::after,
.pf-flow--plus .pf-flow__arrow::after {
	content: "+";
	font-size: 1rem;
	font-weight: 600;
}

.pf-flow--bridge .pf-flow__arrow {
	font-size: 0;
}

.pf-flow--bridge .pf-flow__arrow::after {
	content: "\2194";
	font-size: 1rem;
}

/* ── Grids and cards ────────────────────────────────────────────── */

.pf-grid {
	display: grid;
	gap: clamp(0.75rem, 1.5vw, 1.1rem);
	margin-top: 1.6rem;
}

.pf-grid--3 { grid-template-columns: repeat(3, 1fr); }
.pf-grid--4 { grid-template-columns: repeat(4, 1fr); }

.pf-card {
	padding: clamp(1.1rem, 2vw, 1.5rem);
	background: var(--pf-surface);
	border: 1px solid var(--pf-line);
	border-radius: var(--pf-radius);
	transition: border-color 0.18s ease, transform 0.18s ease;
}

.pf-card:hover {
	border-color: rgba(217, 70, 154, 0.32);
	transform: translateY(-2px);
}

.pf-card .pf-h3 {
	margin-bottom: 0.8rem;
	padding-bottom: 0.7rem;
	border-bottom: 1px solid var(--pf-line-soft);
}

.pf-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.pf-list li {
	position: relative;
	padding-left: 0.95rem;
	margin-bottom: 0.42rem;
	font-size: 0.865rem;
	line-height: 1.5;
	color: var(--pf-ink-2);
}

.pf-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.62em;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--pf-accent);
	opacity: 0.75;
}

.pf-list li:last-child {
	margin-bottom: 0;
}

/* ── Metrics ────────────────────────────────────────────────────── */

.pf-metrics {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(0.75rem, 1.5vw, 1.1rem);
	margin-top: 1.6rem;
}

.pf-metric {
	padding: clamp(1.15rem, 2.2vw, 1.7rem);
	background: var(--pf-surface);
	border: 1px solid var(--pf-line);
	border-radius: var(--pf-radius);
	transition: border-color 0.18s ease;
}

.pf-metric:hover {
	border-color: rgba(217, 70, 154, 0.34);
}

.pf-metric__value {
	font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3.1rem);
	font-weight: 750;
	line-height: 1;
	letter-spacing: -0.03em;
	background: var(--pf-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	margin-bottom: 0.55rem !important;
}

.pf-metric__unit {
	font-size: 0.44em;
	font-weight: 650;
	margin-left: 0.12em;
	letter-spacing: 0;
}

.pf-metric__label {
	font-size: 0.94rem;
	font-weight: 630;
	margin-bottom: 0.3rem;
	line-height: 1.3;
}

.pf-metric__note {
	font-size: 0.815rem;
	color: var(--pf-muted) !important;
	line-height: 1.5 !important;
}

/* ── Career stages ──────────────────────────────────────────────── */

.pf-stages {
	list-style: none;
	margin: 1.7rem 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0;
	border: 1px solid var(--pf-line);
	border-radius: var(--pf-radius);
	overflow: hidden;
}

.pf-stage {
	display: flex;
	align-items: baseline;
	gap: 0.85rem;
	padding: 1rem clamp(0.9rem, 1.8vw, 1.35rem);
	border-bottom: 1px solid var(--pf-line-soft);
	background: var(--pf-surface);
	transition: background 0.18s ease;
}

.pf-stage:nth-child(odd) {
	border-right: 1px solid var(--pf-line-soft);
}

.pf-stage:hover {
	background: var(--pf-surface-2);
}

.pf-stage__n {
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	background: var(--pf-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	flex-shrink: 0;
}

.pf-stage__body {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.pf-stage__role {
	font-size: 0.94rem;
	font-weight: 620;
	color: var(--pf-ink);
	line-height: 1.3;
}

.pf-stage__lens {
	font-size: 0.815rem;
	color: var(--pf-muted);
	line-height: 1.45;
}

/* ── How I work ─────────────────────────────────────────────────── */

.pf-steps {
	list-style: none;
	margin: 1.7rem 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(0.7rem, 1.4vw, 1rem);
}

.pf-step {
	padding: clamp(1rem, 1.8vw, 1.35rem);
	background: var(--pf-surface);
	border: 1px solid var(--pf-line);
	border-radius: var(--pf-radius);
	border-top: 2px solid transparent;
	border-image: var(--pf-grad) 1;
	border-image-slice: 1;
	transition: transform 0.18s ease;
}

/* border-image cancels the radius, so re-apply a plain border instead. */
@supports (border-image-slice: 1) {
	.pf-step {
		border-image: none;
		border-radius: var(--pf-radius);
		border-top: 2px solid var(--pf-accent);
	}
}

.pf-step:hover {
	transform: translateY(-2px);
}

.pf-step__n {
	display: block;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: var(--pf-muted);
	margin-bottom: 0.5rem;
}

.pf-step__k {
	font-size: 0.96rem;
	font-weight: 660;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	margin-bottom: 0.35rem;
}

.pf-step__v {
	font-size: 0.845rem;
	line-height: 1.5 !important;
	color: var(--pf-muted) !important;
}

/* ── Credentials ────────────────────────────────────────────────── */

.pf-cert-lead {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-top: 1.6rem;
	padding: clamp(1.1rem, 2vw, 1.5rem);
	background:
		linear-gradient(115deg, rgba(217, 70, 154, 0.14), rgba(139, 108, 255, 0.1)),
		var(--pf-surface);
	border: 1px solid rgba(217, 70, 154, 0.3);
	border-radius: var(--pf-radius);
}

.pf-cert-lead__abbr {
	font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.1rem);
	font-weight: 780;
	letter-spacing: -0.02em;
	background: var(--pf-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	flex-shrink: 0;
}

.pf-cert-lead__name {
	font-size: clamp(0.94rem, 0.9rem + 0.25vw, 1.08rem);
	font-weight: 600;
	color: var(--pf-ink);
}

.pf-certs {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.6rem;
	list-style: none;
	margin: 0.85rem 0 0;
	padding: 0;
}

.pf-cert {
	padding: 0.78rem 1rem;
	font-size: 0.865rem;
	color: var(--pf-ink-2);
	background: var(--pf-surface);
	border: 1px solid var(--pf-line);
	border-radius: var(--pf-radius-sm);
}

.pf-edu {
	list-style: none;
	margin: 1rem 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.pf-edu li {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	padding: 0.85rem 1.1rem;
	background: var(--pf-surface);
	border: 1px solid var(--pf-line);
	border-radius: var(--pf-radius-sm);
}

.pf-edu__degree {
	font-size: 0.92rem;
	font-weight: 620;
	color: var(--pf-ink);
}

.pf-edu__school {
	font-size: 0.81rem;
	color: var(--pf-muted);
}

/* ── Statement ──────────────────────────────────────────────────── */

.pf-statement {
	margin: 1.6rem 0 0;
	padding: clamp(1.3rem, 2.6vw, 2rem) clamp(1.3rem, 3vw, 2.4rem);
	border: 0;
	border-left: 3px solid var(--pf-accent);
	background: var(--pf-surface);
	border-radius: 0 var(--pf-radius) var(--pf-radius) 0;
}

.pf-statement p {
	font-size: clamp(1.05rem, 0.98rem + 0.5vw, 1.35rem);
	font-weight: 550;
	color: var(--pf-ink) !important;
	line-height: 1.55 !important;
	max-width: 60ch;
}

/* ── Contact ────────────────────────────────────────────────────── */

.pf-contact {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(0.7rem, 1.4vw, 1rem);
	margin-top: 1.7rem;
}

.pf-contact__item {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	padding: clamp(1rem, 2vw, 1.35rem);
	background: var(--pf-surface);
	border: 1px solid var(--pf-line);
	border-radius: var(--pf-radius);
	text-decoration: none;
	transition: border-color 0.18s ease, transform 0.18s ease;
}

a.pf-contact__item:hover {
	border-color: rgba(217, 70, 154, 0.45);
	transform: translateY(-2px);
}

.pf-contact__k {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--pf-muted);
}

.pf-contact__v {
	font-size: 0.95rem;
	color: var(--pf-ink);
	word-break: break-word;
}

/* ── Footer ─────────────────────────────────────────────────────── */

.pf-foot {
	padding-block: 1.6rem;
	border-top: 1px solid var(--pf-line-soft);
	background: var(--pf-bg);
}

.pf-foot__inner {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.pf-foot p {
	font-size: 0.82rem;
	color: var(--pf-muted) !important;
}

.pf-foot a {
	color: var(--pf-ink-2);
	text-decoration: none;
}

.pf-foot a:hover {
	color: var(--pf-accent);
}

/* ── Scroll reveal ──────────────────────────────────────────────── */

.reveal {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* No JS? Show everything. */
.no-js .reveal {
	opacity: 1;
	transform: none;
}

/* ── Focus ──────────────────────────────────────────────────────── */

.pf a:focus-visible,
.pf button:focus-visible {
	outline: 2px solid var(--pf-accent);
	outline-offset: 3px;
	border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
	.pf-grid--4       { grid-template-columns: repeat(2, 1fr); }
	.pf-steps         { grid-template-columns: repeat(2, 1fr); }
	.pf-metrics       { grid-template-columns: repeat(2, 1fr); }
	.pf-certs         { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet and below — collapse to the hamburger. */
@media (max-width: 900px) {
	.pf-nav__toggle {
		display: flex;
	}

	.pf-nav__menu {
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		background: rgba(12, 18, 28, 0.985);
		backdrop-filter: blur(16px);
		-webkit-backdrop-filter: blur(16px);
		border-bottom: 1px solid var(--pf-line);
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.28s ease;
	}

	.pf-nav__menu.is-open {
		max-height: 78vh;
		overflow-y: auto;
	}

	.pf-nav__menu ul {
		flex-direction: column;
		gap: 0;
		padding: 0.4rem clamp(1.15rem, 4vw, 2.5rem) 1rem;
	}

	.pf-nav__menu li + li {
		border-top: 1px solid var(--pf-line-soft);
	}

	.pf-nav__menu a {
		padding: 0.85rem 0;
		font-size: 0.95rem;
		border-bottom: 0;
		border-left: 2px solid transparent;
		padding-left: 0.7rem;
	}

	.pf-nav__menu a.is-active {
		border-bottom-color: transparent;
		border-left-color: var(--pf-accent);
	}

	.pf-nav__inner {
		position: relative;
	}

	/* Hamburger becomes an X */
	.pf-nav__toggle[aria-expanded="true"] .pf-nav__bar:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}

	.pf-nav__toggle[aria-expanded="true"] .pf-nav__bar:nth-child(2) {
		opacity: 0;
	}

	.pf-nav__toggle[aria-expanded="true"] .pf-nav__bar:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}
}

@media (max-width: 720px) {
	.pf-grid--3,
	.pf-grid--4,
	.pf-steps,
	.pf-contact,
	.pf-certs {
		grid-template-columns: 1fr;
	}

	.pf-metrics {
		grid-template-columns: repeat(2, 1fr);
	}

	.pf-stages {
		grid-template-columns: 1fr;
	}

	.pf-stage:nth-child(odd) {
		border-right: 0;
	}

	.pf .pf-h2 {
		max-width: 100%;
	}

	.pf-hero__cta .pf-btn {
		flex: 1 1 100%;
		text-align: center;
	}
}

@media (max-width: 420px) {
	.pf-metrics {
		grid-template-columns: 1fr;
	}

	/* Long labels would otherwise force a horizontal scroll. */
	.pf-flow__label {
		white-space: normal;
	}
}

/* ── Reduced motion ─────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
	.pf *,
	.pf *::before,
	.pf *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

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

/* ── Print ──────────────────────────────────────────────────────── */

@media print {
	.pf-nav,
	.pf-hero__cta,
	.pf-foot {
		display: none !important;
	}

	.pf {
		background: #fff;
		color: #000;
	}

	.reveal {
		opacity: 1 !important;
		transform: none !important;
	}
}


/* ═══════════════════════════════════════════════════════════════════
   AI-led repositioning (statement, AI topics, EDI table, case studies,
   technology depth labels, organisations). Uses the same tokens as the
   rest of the page — no new colours.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Hero statement ─────────────────────────────────────────────── */

/* Uses the heading face: the site only loads Roboto at 400, so a bold
   Roboto would be faux-bolded. Noto Sans 700 is already loaded for h1–h3. */
.pf .pf-hero__statement {
	font-family: "Noto Sans", sans-serif;
	font-size: clamp(1.35rem, 1.05rem + 1.3vw, 2.1rem);
	font-weight: 700;
	line-height: 1.22 !important;
	letter-spacing: -0.015em;
	max-width: 32ch;
	margin-bottom: 0.9rem !important;
	background: var(--pf-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent !important;
}

/* Positioning line now sits under the statement — quieter. */
.pf-hero__statement + .pf-hero__headline {
	font-size: clamp(0.92rem, 0.86rem + 0.3vw, 1.05rem);
	font-weight: 550;
	color: var(--pf-ink-2) !important;
	line-height: 1.55 !important;
}

/* ── About principle ────────────────────────────────────────────── */

.pf-statement--inline {
	margin-top: 1.4rem;
}

.pf-statement--inline p {
	font-size: clamp(1rem, 0.95rem + 0.35vw, 1.18rem);
}

/* ── AI topic cards ─────────────────────────────────────────────── */

.pf-topic {
	display: flex;
	flex-direction: column;
}

.pf-topic .pf-topic__title {
	font-size: 1rem;
	margin-bottom: 0.55rem;
	padding-bottom: 0;
	border-bottom: 0;
}

.pf-topic__text {
	font-size: 0.875rem;
	line-height: 1.6 !important;
	color: var(--pf-ink-2) !important;
	margin: 0 !important;
}

/* Ten-step AI lifecycle: five across on wide screens. */
.pf-steps--compact {
	grid-template-columns: repeat(5, 1fr);
}

.pf-steps--compact .pf-step__k {
	font-size: 0.82rem;
}

/* ── Technology depth labels ────────────────────────────────────── */

.pf-stack__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.6rem;
	flex-wrap: wrap;
	margin-bottom: 0.8rem;
	padding-bottom: 0.7rem;
	border-bottom: 1px solid var(--pf-line-soft);
}

.pf-stack .pf-stack__head .pf-h3 {
	margin: 0;
	padding: 0;
	border: 0;
}

.pf-stack__level {
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--pf-accent);
	white-space: nowrap;
}

.pf-stack__items {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.pf-stack__items li {
	padding: 0.3rem 0.65rem;
	font-size: 0.8rem;
	color: var(--pf-ink-2);
	background: var(--pf-surface-2);
	border-radius: 999px;
}

/* ── HIPAA X12 table ────────────────────────────────────────────── */

.pf-edi {
	margin-top: 2rem;
}

.pf-edi__table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: var(--pf-surface);
	border: 1px solid var(--pf-line);
	border-radius: var(--pf-radius);
	overflow: hidden;
}

.pf-edi__table caption {
	text-align: left;
	caption-side: top;
	padding: 0 0 0.9rem;
	/* <caption> is not an h3, so it would otherwise fall back to the
	   400-only Roboto body face. */
	font-family: "Noto Sans", sans-serif;
	font-weight: 700;
	color: var(--pf-ink);
}

.pf-edi__table th,
.pf-edi__table td {
	padding: 0.95rem 1.1rem;
	text-align: left;
	vertical-align: top;
	font-size: 0.9rem;
	line-height: 1.55;
	color: var(--pf-ink-2);
	border-bottom: 1px solid var(--pf-line-soft);
}

.pf-edi__table thead th {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--pf-muted);
	background: var(--pf-surface-2);
}

.pf-edi__table tbody tr:last-child th,
.pf-edi__table tbody tr:last-child td {
	border-bottom: 0;
}

.pf-edi__code {
	display: inline-block;
	min-width: 3.2rem;
	padding: 0.2rem 0.55rem;
	font-size: 1.05rem;
	font-weight: 800;
	text-align: center;
	color: #fff;
	background: var(--pf-grad);
	border-radius: 8px;
}

.pf-edi__name {
	font-weight: 600;
	color: var(--pf-ink) !important;
	white-space: nowrap;
}

.pf-interop {
	margin-top: 2rem;
	max-width: 75ch;
}

.pf-interop .pf-h3 {
	margin-bottom: 0.6rem;
}

.pf-interop p {
	color: var(--pf-ink-2) !important;
	line-height: 1.7 !important;
}

/* ── Case studies ───────────────────────────────────────────────── */

.pf-cases {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: clamp(0.9rem, 1.8vw, 1.3rem);
	margin-top: 1.8rem;
}

/* The flagship case study spans the full width. */
.pf-case:first-child {
	grid-column: 1 / -1;
}

.pf-case {
	padding: clamp(1.2rem, 2.4vw, 1.9rem);
	background: var(--pf-surface);
	border: 1px solid var(--pf-line);
	border-radius: var(--pf-radius);
	transition: border-color 0.18s ease;
}

.pf-case:hover {
	border-color: rgba(217, 70, 154, 0.32);
}

.pf-case__tag {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--pf-accent) !important;
	margin-bottom: 0.45rem !important;
}

.pf .pf-case__title {
	font-size: clamp(1.15rem, 1.02rem + 0.5vw, 1.45rem);
	line-height: 1.3;
	margin-bottom: 0.3rem;
}

.pf-case__org {
	font-size: 0.85rem;
	color: var(--pf-muted) !important;
	margin-bottom: 0 !important;
}

.pf-case__overview {
	margin-top: 0.9rem !important;
	color: var(--pf-ink-2) !important;
	line-height: 1.65 !important;
	max-width: 75ch;
}

.pf-case__ps,
.pf-case__lists {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem 1.6rem;
	margin-top: 1.2rem;
}

.pf-case__ps p {
	font-size: 0.9rem;
	line-height: 1.6 !important;
	color: var(--pf-ink-2) !important;
	margin: 0 !important;
}

.pf .pf-case__k {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--pf-muted);
	margin: 0 0 0.5rem;
}

/* Single-list cards (no problem/solution) use one column of lists. */
.pf-case:not(:first-child) .pf-case__lists {
	grid-template-columns: 1fr;
}

.pf-case__impact {
	margin-top: 1.1rem !important;
	padding-top: 1rem;
	border-top: 1px solid var(--pf-line-soft);
}

/* ── Organisations ──────────────────────────────────────────────── */

.pf-orgs {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(0.7rem, 1.4vw, 1rem);
	list-style: none;
	margin: 1.4rem 0 0;
	padding: 0;
}

.pf-org {
	padding: 1.1rem 1.2rem;
	background: var(--pf-surface);
	border: 1px solid var(--pf-line);
	border-left: 3px solid var(--pf-accent-2);
	border-radius: var(--pf-radius-sm);
}

.pf .pf-org__name {
	font-size: 0.98rem;
	line-height: 1.35;
	margin: 0;
}

.pf-org__meta,
.pf-org__ref,
.pf-org__tech {
	font-size: 0.82rem;
	color: var(--pf-muted) !important;
	margin: 0.35rem 0 0 !important;
}

.pf-org__summary {
	font-size: 0.86rem;
	color: var(--pf-ink-2) !important;
	margin: 0.5rem 0 0 !important;
}

/* ── Responsive (matches the breakpoints used above) ────────────── */

@media (max-width: 1024px) {
	.pf-steps--compact { grid-template-columns: repeat(3, 1fr); }
	.pf-orgs           { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
	.pf-steps--compact,
	.pf-cases,
	.pf-case__ps,
	.pf-case__lists,
	.pf-orgs {
		grid-template-columns: 1fr;
	}

	.pf-hero__statement { max-width: none; }

	/* Table → stacked rows: each cell shows its column label. */
	.pf-edi__table thead { display: none; }
	.pf-edi__table,
	.pf-edi__table tbody,
	.pf-edi__table tr,
	.pf-edi__table th,
	.pf-edi__table td { display: block; width: 100%; }
	.pf-edi__table tr { padding: 0.9rem 1rem; border-bottom: 1px solid var(--pf-line-soft); }
	.pf-edi__table tbody tr:last-child { border-bottom: 0; }
	.pf-edi__table th,
	.pf-edi__table td { padding: 0.2rem 0; border: 0; }
	.pf-edi__name { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
	.pf-case,
	.pf-topic { transition: none; }
}
