/* =========================================================
   UNN Hub — Main Stylesheet
   ---------------------------------------------------------
    1. Self-hosted fonts (@font-face)
    2. CSS reset / base
    3. Typography helpers (.mono, .serif, .italic)
    4. Grid rails
    5. Inner container
    6. Navigation (sticky, blurred, hardcoded menu)
    7. Hero
    8. Metrics
    9. Institutions
   10. Qi (dark)
   11. Product
   12. Testimonial
   13. Institutions CTA
   14. Pricing
   15. Final CTA
   16. Footer
   17. Buttons (shared)
   18. Mobile nav toggle
   19. Blog / single / page (WP defaults)
   20. Comments / pagination / 404 / search
   21. Responsive
   ========================================================= */


/* ---------- 1. Self-hosted fonts ----------
   Drop matching .woff2 files in /assets/fonts/.
   See /assets/fonts/README.md for source links + filenames.
   Browsers silently fall back if files are missing. */

@font-face {
	font-family: 'Inter';
	font-style: normal; font-weight: 400; font-display: swap;
	src: url('../fonts/inter-400.woff2') format('woff2');
}
@font-face {
	font-family: 'Inter';
	font-style: normal; font-weight: 500; font-display: swap;
	src: url('../fonts/inter-500.woff2') format('woff2');
}
@font-face {
	font-family: 'Inter';
	font-style: normal; font-weight: 600; font-display: swap;
	src: url('../fonts/inter-600.woff2') format('woff2');
}
@font-face {
	font-family: 'Inter';
	font-style: normal; font-weight: 700; font-display: swap;
	src: url('../fonts/inter-700.woff2') format('woff2');
}

@font-face {
	font-family: 'Fraunces';
	font-style: normal; font-weight: 400; font-display: swap;
	src: url('../fonts/fraunces-400.woff2') format('woff2');
}
@font-face {
	font-family: 'Fraunces';
	font-style: normal; font-weight: 500; font-display: swap;
	src: url('../fonts/fraunces-500.woff2') format('woff2');
}
@font-face {
	font-family: 'Fraunces';
	font-style: normal; font-weight: 600; font-display: swap;
	src: url('../fonts/fraunces-600.woff2') format('woff2');
}
@font-face {
	font-family: 'Fraunces';
	font-style: italic; font-weight: 400; font-display: swap;
	src: url('../fonts/fraunces-italic.woff2') format('woff2');
}

@font-face {
	font-family: 'Instrument Serif';
	font-style: normal; font-weight: 400; font-display: swap;
	src: url('../fonts/instrument-serif-400.woff2') format('woff2');
}
@font-face {
	font-family: 'Instrument Serif';
	font-style: italic; font-weight: 400; font-display: swap;
	src: url('../fonts/instrument-serif-italic.woff2') format('woff2');
}

@font-face {
	font-family: 'JetBrains Mono';
	font-style: normal; font-weight: 400; font-display: swap;
	src: url('../fonts/jetbrains-mono-400.woff2') format('woff2');
}
@font-face {
	font-family: 'JetBrains Mono';
	font-style: normal; font-weight: 500; font-display: swap;
	src: url('../fonts/jetbrains-mono-500.woff2') format('woff2');
}


/* ---------- 2. CSS reset / base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	background: var(--paper);
	color: var(--navy);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
	font-feature-settings: 'cv11', 'ss01', 'ss03';
}

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

button { font: inherit; cursor: pointer; }

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

ul { list-style: none; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden;
	padding: 0; position: absolute; word-wrap: normal !important;
}

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus {
	left: 1rem; top: 1rem; background: var(--paper);
	padding: .5rem 1rem; z-index: 9999; border-radius: 4px;
	box-shadow: 0 0 0 3px var(--navy);
}



/* ---------- 3. Typography helpers ---------- */
.mono {
	font-family: 'JetBrains Mono', monospace;
	font-size: 0.7rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-weight: 500;
}

.serif {
	font-family: 'Fraunces', Georgia, serif;
	font-optical-sizing: auto;
}

.italic {
	font-family: 'Instrument Serif', serif;
	font-style: italic;
	font-weight: 400;
}


/* ---------- 4. Grid rails ----------
   Two fixed vertical lines + a horizontal line at the top
   of every .rail section. They form a soft "+" intersection. */

body::before, body::after {
	content: '';
	position: fixed;
	top: 0; bottom: 0;
	width: 1px;
	background: var(--rail);
	z-index: 1;
	pointer-events: none;
}
body::before { left: var(--rail-inset); }
body::after  { right: var(--rail-inset); }

.rail { position: relative; width: 100%; }
.rail::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 1px;
	background: var(--rail);
	z-index: 2;
}
.rail.dark::before { background: rgba(244, 239, 230, 0.13); }


/* ---------- 5. Inner container ---------- */
.inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 40px;
	position: relative;
	z-index: 5;
}


/* ---------- 6. Navigation ---------- */
.unn-nav {
	position: sticky; top: 0; z-index: 100;
	background: rgba(251, 249, 244, 0.88);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
}
.unn-nav::after {
	content: '';
	position: absolute;
	bottom: 0; left: 0; right: 0;
	height: 1px;
	background: var(--rail);
}

.nav-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 16px 40px;
	display: flex; align-items: center; justify-content: space-between;
	position: relative;
	gap: 24px;
}

.logo {
	display: flex; align-items: center; gap: 12px;
	text-decoration: none;
}
.logo-mark { width: 32px; height: 32px; flex-shrink: 0; }
.logo-wordmark {
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	font-size: 1.15rem;
	letter-spacing: -0.02em;
	color: var(--navy);
}
.logo-tag {
	color: var(--muted);
	font-size: 0.7rem;
	font-family: 'JetBrains Mono', monospace;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-left: 4px;
	font-weight: 500;
}

/* WP custom-logo image override (stays compact in nav) */
.unn-nav .custom-logo-link img,
.unn-footer .custom-logo-link img {
	max-height: 40px; width: auto; display: block;
}

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
	color: var(--navy);
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 500;
	transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--crimson); }
.nav-cta {
	background: var(--navy); color: var(--paper);
	padding: 9px 18px; border-radius: 999px;
	font-size: 0.88rem; font-weight: 500;
	transition: all 0.25s ease;
}
.nav-cta:hover {
	background: var(--crimson) !important;
	color: var(--paper) !important;
	transform: translateY(-1px);
}


/* ---------- 7. Hero ---------- */
.hero .inner { padding-top: 100px; padding-bottom: 70px; }
.hero.rail::before { display: none; }

.eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	margin-bottom: 44px;
}
.eyebrow-dot {
	width: 7px; height: 7px;
	background: var(--crimson);
	border-radius: 50%;
	animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50%      { opacity: 0.45; transform: scale(1.35); }
}

.hero-headline {
	font-family: 'Fraunces', serif;
	font-optical-sizing: auto;
	font-size: clamp(3rem, 7vw, 6.2rem);
	line-height: 0.97;
	letter-spacing: -0.035em;
	font-weight: 400;
	max-width: 14ch;
	margin-bottom: 36px;
}
.hero-headline .accent {
	color: var(--crimson);
	font-family: 'Instrument Serif', serif;
	font-style: italic;
	font-weight: 400;
}

.hero-sub {
	font-size: 1.15rem;
	line-height: 1.55;
	color: var(--muted);
	max-width: 56ch;
	margin-bottom: 48px;
	font-weight: 400;
}

.hero-ctas { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }


/* ---------- 8. Metrics ---------- */
.metrics-section .inner { padding: 36px 40px; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.metric { padding: 0 28px; position: relative; }
.metric:first-child { padding-left: 0; }
.metric:not(:last-child)::after {
	content: '';
	position: absolute;
	right: 0; top: 10%; bottom: 10%;
	width: 1px;
	background: var(--line-light);
}
.metric-num {
	font-family: 'Fraunces', serif;
	font-optical-sizing: auto;
	font-size: 2.4rem; font-weight: 400;
	letter-spacing: -0.025em;
	line-height: 1;
	margin-bottom: 8px;
}
.metric-num .sup {
	color: var(--crimson);
	font-family: 'Instrument Serif', serif;
	font-size: 1.6rem;
}
.metric-label {
	color: var(--muted);
	font-size: 0.84rem;
	font-weight: 500;
}


/* ---------- 9. Institutions ---------- */
.institutions .inner { padding: 56px 40px; }
.inst-layout {
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 60px;
	align-items: center;
}
.inst-label { color: var(--muted); max-width: 22ch; line-height: 1.4; }
.inst-grid {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
	gap: 40px;
	opacity: 0.85;
}
.inst-name {
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: -0.015em;
	white-space: nowrap;
}
.inst-name .italic {
	color: var(--muted); font-size: 0.95rem; margin-left: 4px; font-weight: 400;
}


/* ---------- 10. Qi (dark) ---------- */
.qi-section { background: var(--navy); color: var(--cream); }
.qi-section .inner { padding: 110px 40px; position: relative; }
.qi-section::after {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent 20%, var(--gold) 50%, transparent 80%);
	z-index: 3;
}

.qi-header {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 60px;
	margin-bottom: 80px;
	align-items: end;
}
.qi-title {
	font-family: 'Fraunces', serif;
	font-optical-sizing: auto;
	font-size: clamp(2.4rem, 4.8vw, 4.2rem);
	line-height: 1.02;
	letter-spacing: -0.025em;
	font-weight: 400;
}
.qi-title .accent {
	font-family: 'Instrument Serif', serif;
	font-style: italic;
	color: var(--gold);
}
.qi-intro {
	color: rgba(244, 239, 230, 0.72);
	font-size: 1rem;
	line-height: 1.65;
	font-weight: 400;
}

.qi-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	border-top: 1px solid rgba(244, 239, 230, 0.15);
}
.qi-card {
	padding: 44px 36px 40px 0;
	border-right: 1px solid rgba(244, 239, 230, 0.15);
}
.qi-card:last-child { border-right: none; padding-right: 0; }
.qi-card:not(:first-child) { padding-left: 36px; }
.qi-num { color: var(--gold); margin-bottom: 24px; display: block; }
.qi-card h3 {
	font-family: 'Fraunces', serif;
	font-size: 1.35rem;
	font-weight: 500;
	letter-spacing: -0.015em;
	margin-bottom: 14px;
	line-height: 1.2;
}
.qi-card h3 .italic { color: var(--gold); font-size: 1.3rem; }
.qi-card p {
	color: rgba(244, 239, 230, 0.65);
	font-size: 0.92rem;
	line-height: 1.65;
}
.qi-footer {
	margin-top: 72px;
	padding-top: 28px;
	border-top: 1px solid rgba(244, 239, 230, 0.15);
	display: flex; justify-content: space-between; align-items: center;
	font-size: 0.82rem;
	color: rgba(244, 239, 230, 0.55);
}


/* ---------- 11. Product ---------- */
.product .inner { padding: 110px 40px; }
.product-header { margin-bottom: 72px; max-width: 720px; }
.product-header .mono { color: var(--crimson); margin-bottom: 20px; display: block; }
.product-title {
	font-family: 'Fraunces', serif;
	font-optical-sizing: auto;
	font-size: clamp(2.2rem, 4.2vw, 3.6rem);
	line-height: 1.05;
	letter-spacing: -0.025em;
	margin-bottom: 22px;
	font-weight: 400;
}
.product-title .italic {
	color: var(--crimson);
	font-family: 'Instrument Serif', serif;
	font-weight: 400;
}
.product-sub {
	color: var(--muted);
	font-size: 1.05rem;
	line-height: 1.6;
}

.product-grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	gap: 24px;
}
.feature-card {
	background: var(--cream);
	border-radius: 20px;
	padding: 38px;
	position: relative;
	overflow: hidden;
	transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.feature-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 24px 48px -20px rgba(10, 36, 99, 0.18);
}
.feature-card.tall { grid-row: span 2; background: var(--navy); color: var(--cream); }
.feature-card.tall .card-meta { color: rgba(244, 239, 230, 0.5); }
.feature-card.tall .card-desc { color: rgba(244, 239, 230, 0.7); }
.feature-card.tall .card-title { color: var(--cream); }

.card-meta { color: var(--muted); display: block; margin-bottom: 28px; }
.card-title {
	font-family: 'Fraunces', serif;
	font-size: 1.6rem;
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.18;
	margin-bottom: 14px;
}
.card-title .italic {
	font-family: 'Instrument Serif', serif;
	color: var(--crimson);
	font-weight: 400;
}
.feature-card.tall .card-title .italic { color: var(--gold); }
.card-desc {
	color: var(--muted);
	font-size: 0.94rem;
	line-height: 1.6;
	margin-bottom: 20px;
}

.mentor-preview {
	background: rgba(244, 239, 230, 0.04);
	border: 1px solid rgba(244, 239, 230, 0.1);
	border-radius: 14px;
	padding: 20px;
	margin-top: 28px;
}
.mentor-row {
	display: flex; align-items: center; justify-content: space-between;
	padding: 12px 0;
	border-bottom: 1px solid rgba(244, 239, 230, 0.08);
	gap: 12px;
}
.mentor-row:last-child { border-bottom: none; }
.mentor-info { display: flex; align-items: center; gap: 12px; }
.mentor-avatar {
	width: 32px; height: 32px;
	border-radius: 50%;
	background: var(--gold);
	color: var(--navy);
	display: grid; place-items: center;
	font-size: 0.72rem; font-weight: 600;
	font-family: 'JetBrains Mono', monospace;
	flex-shrink: 0;
}
.mentor-name { font-size: 0.9rem; font-weight: 500; color: var(--cream); }
.mentor-meta {
	font-family: 'JetBrains Mono', monospace;
	font-size: 0.66rem;
	color: rgba(244, 239, 230, 0.5);
	letter-spacing: 0.05em;
	text-transform: uppercase;
}
.match-pct {
	font-family: 'JetBrains Mono', monospace;
	font-size: 0.7rem;
	color: var(--gold);
	background: rgba(201, 169, 97, 0.13);
	padding: 4px 9px;
	border-radius: 5px;
	white-space: nowrap;
}

.feature-card.stat {
	display: flex; flex-direction: column; justify-content: space-between;
	min-height: 240px;
}
.stat-num {
	font-family: 'Fraunces', serif;
	font-optical-sizing: auto;
	font-size: 4rem;
	font-weight: 400;
	letter-spacing: -0.035em;
	line-height: 1;
	color: var(--crimson);
}
.stat-num .sup { font-size: 1.6rem; vertical-align: top; }


/* ---------- 12. Testimonial ---------- */
.testimonial .inner { padding: 110px 40px; }
.testimonial-inner {
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 80px;
	align-items: start;
}
.test-author { display: flex; flex-direction: column; gap: 6px; }
.author-pic {
	width: 64px; height: 64px;
	border-radius: 50%;
	background: var(--crimson);
	color: var(--cream);
	display: grid; place-items: center;
	font-family: 'JetBrains Mono', monospace;
	font-size: 1rem; font-weight: 500;
	margin-bottom: 16px;
}
.author-name { font-size: 0.98rem; font-weight: 600; }
.author-role {
	font-family: 'JetBrains Mono', monospace;
	font-size: 0.68rem;
	color: var(--muted);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.test-quote {
	font-family: 'Fraunces', serif;
	font-optical-sizing: auto;
	font-size: clamp(1.5rem, 2.8vw, 2.2rem);
	line-height: 1.3;
	letter-spacing: -0.018em;
	font-weight: 400;
	max-width: 28ch;
}
.test-quote .italic {
	font-family: 'Instrument Serif', serif;
	color: var(--crimson);
	font-weight: 400;
}


/* ---------- 13. Institutions CTA ---------- */
.institutions-cta { background: var(--cream); }
.institutions-cta .inner { padding: 110px 40px; }
.ic-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 80px;
	align-items: center;
}
.ic-title {
	font-family: 'Fraunces', serif;
	font-optical-sizing: auto;
	font-size: clamp(2rem, 3.6vw, 3.2rem);
	line-height: 1.08;
	letter-spacing: -0.025em;
	margin-bottom: 24px;
	font-weight: 400;
}
.ic-title .italic { font-family: 'Instrument Serif', serif; color: var(--crimson); }
.ic-desc {
	color: var(--muted);
	font-size: 1rem;
	line-height: 1.65;
	margin-bottom: 36px;
}
.ic-list { margin-bottom: 40px; }
.ic-list li {
	padding: 14px 0;
	border-bottom: 1px solid var(--line);
	display: flex; justify-content: space-between; align-items: center;
	font-size: 0.94rem;
	font-weight: 500;
}
.ic-list li:last-child { border-bottom: none; }
.ic-list .check { color: var(--crimson); }

.ic-stats {
	background: var(--navy);
	color: var(--cream);
	padding: 44px 40px;
	border-radius: 20px;
}
.ic-stats-head {
	color: rgba(244, 239, 230, 0.5);
	margin-bottom: 28px;
	display: block;
}
.ic-stat {
	padding: 20px 0;
	border-bottom: 1px solid rgba(244, 239, 230, 0.12);
	display: flex; justify-content: space-between; align-items: baseline;
}
.ic-stat:last-child { border-bottom: none; }
.ic-stat-val {
	font-family: 'Fraunces', serif;
	font-optical-sizing: auto;
	font-size: 2rem;
	letter-spacing: -0.02em;
	font-weight: 400;
}
.ic-stat-val .italic { color: var(--gold); font-family: 'Instrument Serif', serif; }
.ic-stat-label {
	font-family: 'JetBrains Mono', monospace;
	font-size: 0.68rem;
	color: rgba(244, 239, 230, 0.5);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}


/* ---------- 14. Pricing ---------- */
.pricing .inner { padding: 110px 40px; }
.pricing-head { text-align: center; margin-bottom: 64px; }
.pricing-head .mono { color: var(--crimson); margin-bottom: 20px; display: block; }
.pricing-head h2 {
	font-family: 'Fraunces', serif;
	font-optical-sizing: auto;
	font-size: clamp(2rem, 3.6vw, 3.2rem);
	letter-spacing: -0.025em;
	line-height: 1.08;
	font-weight: 400;
}
.pricing-head h2 .italic { font-family: 'Instrument Serif', serif; color: var(--crimson); }

.pricing-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
.plan {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 18px;
	padding: 36px 32px;
	display: flex; flex-direction: column;
	transition: all 0.3s ease;
}
.plan:hover { transform: translateY(-4px); border-color: var(--navy); }
.plan.featured {
	background: var(--navy);
	color: var(--cream);
	border-color: var(--navy);
	position: relative;
}
.plan-badge {
	position: absolute;
	top: -12px; left: 32px;
	background: var(--crimson);
	color: var(--cream);
	padding: 5px 12px;
	border-radius: 999px;
	font-family: 'JetBrains Mono', monospace;
	font-size: 0.65rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.plan-tier { display: block; margin-bottom: 16px; color: var(--muted); }
.plan.featured .plan-tier { color: rgba(244, 239, 230, 0.5); }
.plan-name {
	font-family: 'Fraunces', serif;
	font-size: 1.5rem;
	font-weight: 500;
	letter-spacing: -0.02em;
	margin-bottom: 18px;
}
.plan.featured .plan-name { color: var(--cream); }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 24px; }
.price-currency { font-size: 1rem; color: var(--muted); font-weight: 500; }
.plan.featured .price-currency { color: rgba(244, 239, 230, 0.5); }
.price-amount {
	font-family: 'Fraunces', serif;
	font-optical-sizing: auto;
	font-size: 3.4rem;
	font-weight: 400;
	letter-spacing: -0.03em;
	line-height: 1;
}
.plan.featured .price-amount { color: var(--cream); }
.price-period {
	font-size: 0.84rem;
	color: var(--muted);
	margin-left: 6px;
}
.plan.featured .price-period { color: rgba(244, 239, 230, 0.5); }
.plan-desc {
	color: var(--muted); font-size: 0.9rem; line-height: 1.6;
	margin-bottom: 28px; min-height: 3em;
}
.plan.featured .plan-desc { color: rgba(244, 239, 230, 0.65); }
.plan-features { margin-bottom: 28px; flex-grow: 1; }
.plan-features li {
	padding: 10px 0;
	font-size: 0.9rem;
	font-weight: 400;
	display: flex; gap: 10px;
	border-bottom: 1px solid var(--line-light);
}
.plan.featured .plan-features li {
	border-color: rgba(244, 239, 230, 0.08);
	color: var(--cream);
}
.plan-features .dot { color: var(--crimson); font-weight: bold; }
.plan.featured .plan-features .dot { color: var(--gold); }

.plan-cta {
	padding: 12px 20px;
	border-radius: 999px;
	border: 1px solid var(--navy);
	background: transparent;
	color: var(--navy);
	font-size: 0.9rem; font-weight: 500;
	text-align: center;
	transition: all 0.25s ease;
}
.plan-cta:hover { background: var(--navy); color: var(--cream); }
.plan.featured .plan-cta {
	background: var(--cream); color: var(--navy); border-color: var(--cream);
}
.plan.featured .plan-cta:hover {
	background: var(--crimson); color: var(--cream); border-color: var(--crimson);
}


/* ---------- 15. Final CTA ---------- */
.final-cta { background: var(--navy); color: var(--cream); position: relative; overflow: hidden; }
.final-cta .inner { padding: 140px 40px; text-align: center; position: relative; }
.final-cta::after {
	content: ''; position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	width: 900px; height: 900px;
	background: radial-gradient(circle, rgba(139, 0, 0, 0.25) 0%, transparent 60%);
	pointer-events: none;
	z-index: 1;
}
.final-cta .inner > * { position: relative; z-index: 2; }
.final-cta .mono { color: var(--gold); margin-bottom: 28px; display: block; }
.final-cta h2 {
	font-family: 'Fraunces', serif;
	font-optical-sizing: auto;
	font-size: clamp(2.2rem, 5vw, 4.2rem);
	line-height: 1.08;
	letter-spacing: -0.03em;
	font-weight: 400;
	margin-bottom: 32px;
	max-width: 16ch;
	margin-left: auto; margin-right: auto;
}
.final-cta h2 .italic {
	font-family: 'Instrument Serif', serif; color: var(--gold); font-weight: 400;
}
.final-cta .btn-primary { background: var(--cream); color: var(--navy); margin-top: 20px; }
.final-cta .btn-primary:hover { background: var(--crimson); color: var(--cream); }
.final-cta-note {
	margin-top: 36px;
	font-family: 'JetBrains Mono', monospace;
	font-size: 0.7rem;
	color: rgba(244, 239, 230, 0.45);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}


/* ---------- 16. Footer ---------- */
.unn-footer .inner { padding: 70px 40px 40px; }
.foot-grid {
	display: grid;
	grid-template-columns: 1.4fr repeat(4, 1fr);
	gap: 60px;
	margin-bottom: 60px;
}
.foot-brand p {
	color: var(--muted);
	font-size: 0.9rem;
	line-height: 1.6;
	max-width: 30ch;
	margin-top: 18px;
}
.foot-col h4 {
	font-family: 'JetBrains Mono', monospace;
	font-size: 0.68rem;
	color: var(--muted);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin-bottom: 18px;
	font-weight: 500;
}
.foot-col a {
	display: block;
	padding: 6px 0;
	color: var(--navy);
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 400;
	transition: color 0.2s ease;
}
.foot-col a:hover { color: var(--crimson); }
.foot-bot {
	padding-top: 30px;
	border-top: 1px solid var(--line-light);
	display: flex; justify-content: space-between;
	font-size: 0.8rem;
	color: var(--muted);
	gap: 16px; flex-wrap: wrap;
}


/* ---------- 17. Buttons ---------- */
.btn-primary {
	background: var(--navy); color: var(--paper);
	padding: 14px 26px; border-radius: 999px;
	border: none;
	font-size: 0.94rem; font-weight: 500;
	display: inline-flex; align-items: center; gap: 10px;
	transition: all 0.25s ease;
	letter-spacing: -0.005em;
	text-decoration: none;
}
.btn-primary:hover {
	background: var(--crimson); color: var(--paper);
	transform: translateY(-2px);
	box-shadow: 0 14px 30px -10px rgba(139, 0, 0, 0.45);
}

.btn-ghost {
	background: transparent; color: var(--navy);
	padding: 14px 22px; border-radius: 999px;
	border: 1px solid var(--line);
	font-size: 0.94rem; font-weight: 500;
	display: inline-flex; align-items: center; gap: 10px;
	transition: all 0.25s ease;
	text-decoration: none;
}
.btn-ghost:hover { border-color: var(--navy); background: var(--cream); color: var(--navy); }

.arrow { transition: transform 0.3s ease; display: inline-block; }
.btn-primary:hover .arrow,
.btn-ghost:hover .arrow,
.nav-cta:hover .arrow { transform: translateX(4px); }


/* ---------- 18. Mobile nav toggle ---------- */
.nav-toggle {
	display: none;
	background: transparent;
	border: 0;
	padding: 8px;
	width: 40px; height: 40px;
	position: relative;
	z-index: 110;
}
.nav-toggle__bar {
	display: block;
	width: 24px; height: 2px;
	background: var(--navy);
	margin: 5px auto;
	transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}


/* ---------- 19. Blog / single / page ----------
   Plain-but-polished WP defaults that match the editorial vibe
   when you visit a post or page that isn't the front page. */

.unn-page-wrap {  margin: 0 auto; padding: 80px 40px; }

.unn-page-wrap .entry-title,
.unn-page-wrap h1 {
	font-family: 'Fraunces', serif;
	font-optical-sizing: auto;
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1.1;
	letter-spacing: -0.02em;
	font-weight: 400;
	margin-bottom: 1rem;
}

.unn-page-wrap h2 {
	font-family: 'Fraunces', serif;
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 500;
	margin: 2rem 0 1rem;
}

.unn-page-wrap h3 { font-family: 'Fraunces', serif; margin: 1.5rem 0 .75rem; }

.unn-page-wrap p { margin: 0 0 1.25rem; line-height: 1.7; }
.unn-page-wrap a { color: var(--crimson); text-decoration: underline; text-underline-offset: 2px; }
.unn-page-wrap blockquote {
	border-left: 3px solid var(--crimson);
	padding: .25rem 1rem;
	margin: 1.5rem 0;
	font-style: italic;
	color: var(--muted);
}

.entry-meta { color: var(--muted); margin-bottom: 2rem; font-size: 0.88rem; }
.entry-meta .mono { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; }

.post-thumbnail { margin: 2rem 0; border-radius: 12px; overflow: hidden; }
.post-thumbnail img { width: 100%; height: auto; }


/* Posts grid (archive) */
.unn-archive { max-width: 1200px; margin: 0 auto; padding: 80px 40px; }
.unn-archive-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 24px;
}
.unn-archive-card {
	background: var(--cream);
	border-radius: 16px;
	overflow: hidden;
	transition: transform .3s ease, box-shadow .3s ease;
}
.unn-archive-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 30px -16px rgba(10, 36, 99, 0.18);
}
.unn-archive-card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.unn-archive-card .body { padding: 24px; }
.unn-archive-card h2 {
	font-family: 'Fraunces', serif;
	font-size: 1.25rem;
	font-weight: 500;
	letter-spacing: -0.015em;
	margin-bottom: .5rem;
}
.unn-archive-card h2 a { color: inherit; }
.unn-archive-card h2 a:hover { color: var(--crimson); }
.unn-archive-card .excerpt {
	color: var(--muted);
	font-size: .94rem;
	line-height: 1.55;
}


/* ---------- 20. Comments / pagination / 404 / search ---------- */
.unn-pagination .nav-links {
	display: flex; gap: .5rem;
	justify-content: center; flex-wrap: wrap;
	margin-top: 2rem;
}
.unn-pagination .page-numbers {
	padding: .5rem .9rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--navy);
	font-size: .85rem;
}
.unn-pagination .page-numbers.current,
.unn-pagination .page-numbers:hover {
	background: var(--navy); color: var(--paper); border-color: var(--navy);
}

.unn-search-form {
	display: flex; gap: .5rem;
	max-width: 460px;
	margin: 0 auto;
}
.unn-search-form input[type="search"] {
	flex: 1;
	padding: .65rem .85rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	font: inherit;
	background: var(--paper);
	color: var(--navy);
}
.unn-search-form input[type="search"]:focus {
	outline: none; border-color: var(--navy);
}

.unn-404 { text-align: center; padding: 120px 40px; }
.unn-404 h1 {
	font-family: 'Fraunces', serif;
	font-size: clamp(4rem, 12vw, 8rem);
	color: var(--crimson);
	margin-bottom: 1rem;
	font-weight: 400;
}

.comments-area {
	max-width: 720px; margin: 60px auto;
	padding: 0 40px;
}
.comment-list { padding: 0; }
.comment-list .comment {
	background: var(--cream);
	border-radius: 12px;
	padding: 1rem 1.25rem;
	margin-bottom: 1rem;
}
.comment-form input,
.comment-form textarea {
	width: 100%;
	padding: .65rem .85rem;
	border: 1px solid var(--line);
	border-radius: 8px;
	font: inherit;
	background: var(--paper);
	margin-bottom: .75rem;
}


/* ---------- 21. Responsive ---------- */
@media (max-width: 1440px) {
	:root { --rail-inset: 24px; }
}

@media (max-width: 900px) {
	body::before, body::after { display: none; }

	/* Mobile nav becomes a hamburger */
	.nav-toggle { display: block; }
	.nav-links {
		display: none;
		position: absolute;
		top: 100%; left: 0; right: 0;
		background: var(--paper);
		flex-direction: column;
		padding: 1rem 24px;
		gap: 0;
		border-top: 1px solid var(--line);
		box-shadow: 0 12px 30px -16px rgba(10, 36, 99, 0.18);
		max-height: calc(100vh - 80px);
		overflow-y: auto;
	}
	.nav-links a {
		padding: .75rem 0;
		border-bottom: 1px solid var(--line-light);
		width: 100%;
	}
	.nav-links a:last-child { border-bottom: 0; }
	.nav-links.is-open { display: flex; }
	.nav-cta { align-self: flex-start; }

	.hero .inner { padding: 60px 24px 50px; }
	.metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
	.metric:nth-child(2)::after { display: none; }
	.qi-header { grid-template-columns: 1fr; gap: 24px; }
	.qi-grid { grid-template-columns: 1fr; }
	.qi-card {
		border-right: none !important;
		border-bottom: 1px solid rgba(244, 239, 230, 0.15);
		padding: 32px 0 !important;
	}
	.qi-card:last-child { border-bottom: none; }

	.product-grid,
	.ic-grid,
	.pricing-grid,
	.foot-grid,
	.inst-layout { grid-template-columns: 1fr; gap: 40px; }

	.testimonial-inner { grid-template-columns: 1fr; gap: 40px; }

	.inner { padding-left: 24px !important; padding-right: 24px !important; }

	.institutions .inner,
	.qi-section .inner,
	.product .inner,
	.testimonial .inner,
	.institutions-cta .inner,
	.pricing .inner { padding-top: 70px; padding-bottom: 70px; }

	.final-cta .inner { padding: 90px 24px; }
	.foot-bot { flex-direction: column; gap: 10px; }
}
