:root {
	--bg: #ffffff;
	--text: #0f172a;
	--text-soft: #64748b;
	--border: #e2e8f0;
	--primary: #0f172a;
	--card-bg: #ffffff;
	--section-bg: #f8fafc;
	--accent: #2563eb;
	--icon-bg: #f1f5f9;
	--nav-bg: rgba(255, 255, 255, 0.9);
	--nav-border: rgba(0, 0, 0, 0.05);
	--trend-bg: #dcfce7;
	--trend-text: #16a34a;
	--pipe-num-color: #f1f5f9;
	--shadow: rgba(0, 0, 0, 0.05);
	color-scheme: light;
	--font-head: 'Space Grotesk', sans-serif;
	--font-body: 'Inter', sans-serif;
	--font-mono: 'JetBrains Mono', monospace;
}

body.dark-mode {
	--bg: #09090b;
	--text: #ffffff;
	--text-soft: #a1a1aa;
	--border: #27272a;
	--primary: #ffffff;
	--card-bg: #18181b;
	--section-bg: #121214;
	--accent: #3b82f6;
	--icon-bg: #27272a;
	--nav-bg: rgba(9, 9, 11, 0.9);
	--nav-border: rgba(255, 255, 255, 0.05);
	--trend-bg: rgba(34, 197, 94, 0.15);
	--trend-text: #4ade80;
	--pipe-num-color: #1f1f22;
	--shadow: rgba(0, 0, 0, 0.4);
	color-scheme: dark;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	background: var(--bg);
}

body {
	margin: 0;
	min-height: 100vh;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	-webkit-font-smoothing: antialiased;
	transition: background 0.3s, color 0.3s;
	overflow-x: hidden;
	width: 100%;
}

body.yorker-front-page .site,
body.yorker-front-page .site-main {
	display: block;
}

::placeholder {
	color: var(--text-soft);
	opacity: 0.7;
}

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

a {
	color: inherit;
}

#progressBar {
	position: fixed;
	top: 0;
	left: 0;
	height: 3px;
	background: var(--accent);
	width: 0%;
	z-index: 1001;
	transition: width 0.1s;
}

.container {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 30px;
}

nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 30px;
	position: fixed;
	top: 0;
	width: 100%;
	box-sizing: border-box;
	z-index: 100;
	background: var(--nav-bg);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--nav-border);
	transition: background 0.3s, border-color 0.3s;
}

.logo {
	font-family: var(--font-head);
	font-weight: 700;
	color: var(--text);
	text-decoration: none;
	font-size: 1.4rem;
	transition: color 0.3s;
}

.nav-links {
	display: flex;
	gap: 30px;
	align-items: center;
	flex-wrap: wrap;
}

.nav-links a {
	color: var(--text-soft);
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 500;
	transition: 0.2s;
}

.nav-links a:hover {
	color: var(--text);
}

.btn-cta {
	background: var(--text);
	color: var(--bg) !important;
	padding: 8px 16px;
	border-radius: 6px;
	font-weight: 600;
	cursor: pointer;
	border: none;
	text-decoration: none;
	transition: background 0.3s, color 0.3s;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.btn-cta-large {
	padding: 15px 40px;
	font-size: 1.1rem;
}

.theme-toggle {
	background: transparent;
	border: 1px solid var(--border);
	border-radius: 50%;
	width: 32px;
	height: 32px;
	cursor: pointer;
	color: var(--text);
	display: grid;
	place-items: center;
	transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.theme-toggle:hover {
	background: var(--icon-bg);
}

.hero {
	padding: 160px 0 60px;
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 40px;
	align-items: center;
}

h1 {
	font-family: var(--font-head);
	font-size: clamp(3rem, 4vw, 5rem);
	line-height: 1;
	letter-spacing: -2px;
	margin: 20px 0;
	color: var(--text);
}

.hero-sub {
	font-size: 1.1rem;
	color: var(--text-soft);
	line-height: 1.6;
	max-width: 600px;
}

.label {
	font-family: var(--font-mono);
	color: var(--accent);
	font-weight: 600;
	letter-spacing: 1px;
	font-size: 0.8rem;
}

.deal-counter {
	display: inline-block;
	padding: 6px 12px;
	background: var(--icon-bg);
	color: var(--text);
	font-family: var(--font-mono);
	font-size: 0.8rem;
	border-radius: 20px;
	border: 1px solid var(--border);
	font-weight: 600;
	transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.chart-container {
	background: var(--card-bg);
	border: 1px solid var(--border);
	padding: 20px;
	border-radius: 12px;
	height: 320px;
	box-shadow: 0 10px 30px var(--shadow);
	touch-action: pan-y;
	transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

#dynamicGreeting {
	font-family: var(--font-mono);
	color: var(--accent);
	font-size: 0.9rem;
	margin-bottom: 10px;
	display: block;
	font-weight: 600;
}

.tech-strip {
	display: flex;
	gap: 30px;
	opacity: 0.6;
	filter: grayscale(100%);
	margin-top: 40px;
	align-items: center;
	flex-wrap: wrap;
}

.tech-strip span {
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--text-soft);
	text-transform: uppercase;
	letter-spacing: 1px;
	transition: color 0.3s;
}

.ticker-wrap {
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	padding: 15px 0;
	background: var(--section-bg);
	transition: background 0.3s, border-color 0.3s;
}

.ticker-scroll {
	overflow-x: auto;
	white-space: nowrap;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.ticker-scroll::-webkit-scrollbar {
	display: none;
}

.ticker-item {
	margin-right: 40px;
	font-family: var(--font-mono);
	font-size: 0.85rem;
	color: var(--text-soft);
}

.ticker-item b {
	color: var(--text);
}

.section-top-offset {
	padding-top: 100px;
}

.section-header {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	align-items: flex-end;
	flex-wrap: wrap;
}

.section-header-right {
	text-align: right;
}

.section-subtitle {
	font-family: var(--font-mono);
	color: var(--text-soft);
	display: block;
	margin-bottom: 5px;
	transition: color 0.3s;
	font-size: 0.8rem;
}

.section-title {
	font-family: var(--font-head);
	font-size: 2.5rem;
	margin: 10px 0 0;
	color: var(--text);
}

.section-title-gap {
	margin-bottom: 30px;
}

.view-controls {
	display: flex;
	gap: 5px;
	margin-left: auto;
}

.view-btn {
	padding: 6px 10px;
	background: var(--card-bg);
	border: 1px solid var(--border);
	cursor: pointer;
	border-radius: 4px;
	color: var(--text);
	transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.view-btn.active {
	background: var(--text);
	color: var(--bg);
	border-color: var(--text);
}

.grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 25px;
}

.grid.list-view {
	grid-template-columns: 1fr;
}

.grid.list-view .card {
	height: auto;
	flex-direction: row;
	align-items: center;
	padding: 15px 25px;
	gap: 20px;
}

.grid.list-view .card-header {
	margin: 0;
	min-width: 40px;
}

.grid.list-view .c-meta,
.grid.list-view .c-desc {
	display: none;
}

.grid.list-view .c-brand {
	margin: 0;
	flex: 1;
	font-size: 1.1rem;
}

.card {
	background: var(--card-bg);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 25px;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s, background 0.3s;
	position: relative;
	text-decoration: none;
	color: var(--text);
	box-shadow: 0 4px 6px -1px var(--shadow);
}

@media (hover: hover) {
	.card:hover {
		transform: translateY(-5px);
		box-shadow: 0 20px 25px -5px var(--shadow);
		border-color: var(--accent);
	}

	.card:hover .share-btn {
		opacity: 1;
	}
}

.card.hidden {
	display: none;
}

.share-btn {
	position: absolute;
	top: 20px;
	right: 20px;
	background: transparent;
	border: none;
	font-size: 1.2rem;
	color: var(--text-soft);
	cursor: pointer;
	opacity: 0;
	transition: 0.2s;
	z-index: 5;
}

.share-btn:hover {
	color: var(--accent);
	transform: scale(1.1);
}

.card-header {
	display: flex;
	justify-content: space-between;
	align-items: start;
	margin-bottom: 15px;
}

.site-icon {
	width: 32px;
	height: 32px;
	border-radius: 4px;
	background: var(--icon-bg);
	display: grid;
	place-items: center;
	font-size: 1.2rem;
	transition: background 0.3s;
}

.yt-card {
	border-left: 4px solid #ef4444;
}

.yt-icon {
	color: #ef4444;
}

.c-brand {
	font-family: var(--font-head);
	font-size: 1.3rem;
	margin: 0 0 10px;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	color: var(--text);
	transition: color 0.3s;
}

.c-meta {
	font-family: var(--font-mono);
	font-size: 0.7rem;
	color: var(--text-soft);
	margin-bottom: 15px;
	display: block;
	text-transform: uppercase;
	transition: color 0.3s;
}

.c-desc {
	font-size: 0.85rem;
	color: var(--text-soft);
	line-height: 1.6;
	margin: 0;
	transition: color 0.3s;
}

.asset-search {
	padding: 8px 15px;
	border: 1px solid var(--border);
	border-radius: 20px;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	outline: none;
	margin-right: 10px;
	min-width: 200px;
	transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.filter-bar {
	margin: 40px 0;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.filter-btn {
	background: var(--bg);
	border: 1px solid var(--border);
	padding: 8px 16px;
	border-radius: 20px;
	font-family: var(--font-mono);
	font-size: 0.8rem;
	cursor: pointer;
	transition: background 0.3s, color 0.3s, border-color 0.3s;
	color: var(--text-soft);
}

.filter-btn:hover,
.filter-btn.active {
	background: var(--text);
	color: var(--bg);
	border-color: var(--text);
}

.press-bar {
	border-bottom: 1px solid var(--border);
	padding: 20px 0;
	text-align: center;
	font-size: 0.8rem;
	color: var(--text-soft);
	background: var(--section-bg);
	font-family: var(--font-head);
	letter-spacing: 1px;
	text-transform: uppercase;
	transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.dashboard-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
	margin-top: 80px;
}

.dash-card {
	background: var(--card-bg);
	border: 1px solid var(--border);
	padding: 25px;
	border-radius: 12px;
	transition: background 0.3s, border-color 0.3s;
}

.dash-head {
	font-family: var(--font-mono);
	color: var(--text-soft);
	font-size: 0.75rem;
	text-transform: uppercase;
	margin-bottom: 15px;
	display: block;
	letter-spacing: 1px;
}

.highlight-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	margin-top: 40px;
}

.metrics-section {
	margin-top: 100px;
}

.metrics-title {
	margin-top: 10px;
}

.metric-card {
	background: var(--card-bg);
	border: 1px solid var(--border);
	padding: 30px;
	border-radius: 12px;
	transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s, background 0.3s;
	display: flex;
	flex-direction: column;
	height: 200px;
	justify-content: space-between;
	position: relative;
	overflow: hidden;
}

@media (hover: hover) {
	.metric-card:hover {
		border-color: var(--accent);
		transform: translateY(-5px);
		box-shadow: 0 10px 30px var(--shadow);
	}
}

.mc-num {
	font-family: var(--font-head);
	font-size: 3rem;
	font-weight: 700;
	color: var(--text);
	line-height: 1;
	transition: color 0.3s;
}

.mc-label {
	font-family: var(--font-mono);
	font-size: 0.8rem;
	color: var(--text-soft);
	text-transform: uppercase;
	margin-top: 5px;
	display: block;
}

.metric-heading {
	margin: 0;
	color: var(--text);
}

.metric-foot-label {
	color: var(--text-soft);
}

.mc-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-top: 1px solid var(--border);
	padding-top: 15px;
	margin-top: 15px;
	font-size: 0.9rem;
	font-weight: 600;
	transition: border-color 0.3s;
	gap: 12px;
}

.mc-trend {
	color: var(--trend-text);
	font-size: 0.8rem;
	background: var(--trend-bg);
	padding: 2px 6px;
	border-radius: 4px;
	transition: background 0.3s, color 0.3s;
}

.pipeline-container {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 0;
	margin-top: 60px;
	position: relative;
}

.pipe-step {
	background: var(--card-bg);
	border: 1px solid var(--border);
	padding: 40px 30px;
	position: relative;
	text-align: center;
	transition: transform 0.3s, box-shadow 0.3s, background 0.3s, border-color 0.3s;
	z-index: 2;
}

.pipe-step:first-child {
	border-radius: 12px 0 0 12px;
	border-right: none;
}

.pipe-step:last-child {
	border-radius: 0 12px 12px 0;
	border-left: none;
}

.pipe-step:nth-child(2) {
	border-left: 1px solid var(--border);
	border-right: 1px solid var(--border);
}

@media (hover: hover) {
	.pipe-step:hover {
		z-index: 3;
		box-shadow: 0 10px 40px var(--shadow);
		transform: scale(1.05);
		border: 1px solid var(--accent);
		border-radius: 12px;
	}
}

.pipe-num {
	font-size: 4rem;
	color: var(--pipe-num-color);
	font-weight: 700;
	position: absolute;
	top: 10px;
	right: 20px;
	z-index: -1;
	transition: color 0.3s;
}

.pipe-icon {
	font-size: 2rem;
	margin-bottom: 20px;
	display: block;
	color: var(--accent);
}

.pipe-title {
	font-family: var(--font-head);
	font-size: 1.4rem;
	margin: 0 0 10px;
	color: var(--text);
}

.pipe-text {
	font-size: 0.9rem;
	color: var(--text-soft);
	line-height: 1.6;
}

.pipe-step:not(:last-child)::after {
	content: '→';
	position: absolute;
	right: -15px;
	top: 50%;
	transform: translateY(-50%);
	background: var(--card-bg);
	color: var(--text-soft);
	width: 30px;
	height: 30px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	border: 1px solid var(--border);
	z-index: 4;
	font-size: 1rem;
	transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.operating-section {
	margin-top: 120px;
}

.operating-copy {
	color: var(--text-soft);
	max-width: 600px;
}

.portfolio-manager-row {
	display: flex;
	align-items: center;
	gap: 15px;
}

.portfolio-avatar {
	width: 50px;
	height: 50px;
	background: var(--icon-bg);
	color: var(--text);
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-weight: 700;
	transition: background 0.3s, color 0.3s;
}

.portfolio-manager-name {
	margin: 0;
}

.portfolio-manager-name a {
	color: var(--text);
	text-decoration: none;
	transition: color 0.3s;
}

.portfolio-manager-role {
	font-size: 0.85rem;
	color: var(--text-soft);
}

.geo-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
	font-size: 0.9rem;
	gap: 12px;
}

.geo-name {
	color: var(--text);
	min-width: 110px;
}

.geo-value {
	color: var(--text-soft);
	min-width: 36px;
	text-align: right;
}

.geo-bar-bg {
	flex: 1;
	background: var(--section-bg);
	height: 6px;
	border-radius: 3px;
	transition: background 0.3s;
}

.geo-bar-fill {
	height: 100%;
	background: var(--text);
	border-radius: 3px;
	transition: background 0.3s;
}

.milestone {
	font-size: 0.9rem;
	color: var(--text);
}

.milestone-primary {
	margin-bottom: 10px;
}

.milestone-dot {
	color: var(--accent);
}

.milestone-dot.muted {
	color: var(--text-soft);
}

.calc-box {
	background: var(--card-bg);
	border: 1px solid var(--border);
	padding: 60px;
	border-radius: 12px;
	margin-top: 100px;
	text-align: center;
	transition: background 0.3s, border-color 0.3s;
}

.calc-title {
	margin-top: 10px;
}

.calc-copy {
	color: var(--text-soft);
}

.calc-input {
	font-size: 2rem;
	padding: 15px;
	border: 1px solid var(--border);
	border-radius: 8px;
	width: 100%;
	max-width: 300px;
	text-align: center;
	margin: 25px 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-head);
	font-weight: 700;
	transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.calc-caption {
	display: block;
	font-family: var(--font-mono);
	font-size: 0.8rem;
	color: var(--text-soft);
}

.calc-result {
	font-family: var(--font-head);
	font-size: 2.5rem;
	color: var(--accent);
	font-weight: 700;
	display: block;
	margin-top: 10px;
}

.faq-section {
	margin-top: 100px;
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
}

.faq-title {
	font-family: var(--font-head);
	text-align: center;
	margin-bottom: 40px;
	color: var(--text);
	font-size: 1.8rem;
}

.faq-item {
	border-bottom: 1px solid var(--border);
	transition: border-color 0.3s;
}

.faq-q {
	padding: 25px 0;
	cursor: pointer;
	font-weight: 600;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 1.1rem;
	color: var(--text);
	transition: color 0.3s;
	background: transparent;
	width: 100%;
	border: 0;
	text-align: left;
}

.faq-a {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease, padding 0.3s ease;
	color: var(--text-soft);
	line-height: 1.6;
	padding-right: 40px;
}

.faq-a.open {
	max-height: 300px;
	padding-bottom: 25px;
}

.cta-box {
	background: var(--section-bg);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 80px;
	text-align: center;
	margin-top: 100px;
	transition: background 0.3s, border-color 0.3s;
}

.cta-title {
	color: var(--text);
	margin-top: 0;
}

.cta-copy {
	color: var(--text-soft);
	margin-bottom: 30px;
}

.fab {
	position: fixed;
	bottom: 30px;
	right: 30px;
	background: var(--accent);
	color: white;
	padding: 15px 25px;
	border-radius: 50px;
	text-decoration: none;
	font-weight: 700;
	box-shadow: 0 10px 20px var(--shadow);
	z-index: 900;
	transition: 0.3s;
	opacity: 0;
	transform: translateY(20px);
	pointer-events: none;
}

.fab.visible {
	opacity: 1;
	transform: translateY(0);
	pointer-events: all;
}

.scroll-top {
	position: fixed;
	bottom: 30px;
	left: 30px;
	width: 40px;
	height: 40px;
	background: var(--card-bg);
	border: 1px solid var(--border);
	border-radius: 50%;
	cursor: pointer;
	opacity: 0;
	transition: background 0.3s, color 0.3s, border-color 0.3s, opacity 0.3s;
	pointer-events: none;
	color: var(--text);
	display: grid;
	place-items: center;
	font-size: 1.2rem;
	z-index: 899;
}

.scroll-top.visible {
	opacity: 1;
	pointer-events: all;
}

.status-dot {
	width: 8px;
	height: 8px;
	background: #22c55e;
	border-radius: 50%;
	display: inline-block;
	margin-right: 5px;
	cursor: help;
}

footer {
	margin-top: 100px;
	padding: 60px 0;
	border-top: 1px solid var(--border);
	text-align: center;
	font-size: 0.9rem;
	color: var(--text-soft);
	transition: border-color 0.3s, color 0.3s;
}

footer a {
	color: var(--text);
	text-decoration: none;
	font-weight: 600;
	transition: color 0.3s;
}

.footer-status {
	margin-top: 20px;
	font-size: 0.75rem;
	color: var(--text-soft);
	opacity: 0.8;
}

.fade-in {
	opacity: 0;
	transform: translateY(20px);
	animation: fadeUp 0.6s forwards;
}

@keyframes fadeUp {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.ym-default-page {
	padding: 60px 20px;
}

.ym-default-container {
	max-width: 960px;
	margin: 0 auto;
}

@media print {
	nav,
	.fab,
	.scroll-top,
	.view-controls,
	.filter-bar {
		display: none !important;
	}

	.hero {
		padding: 40px 0;
	}

	.card {
		break-inside: avoid;
		border: 1px solid #ccc;
		box-shadow: none;
	}

	body {
		color: black;
		background: white;
	}
}

@media (max-width: 900px) {
	.container {
		padding: 0 20px;
	}

	.hero {
		grid-template-columns: 1fr;
		padding-top: 140px;
		text-align: center;
	}

	.hero-sub {
		margin-left: auto;
		margin-right: auto;
	}

	.tech-strip {
		justify-content: center;
	}

	.chart-container {
		height: 250px;
	}

	.dashboard-grid,
	.cta-box,
	.highlight-grid,
	.pipeline-container {
		grid-template-columns: 1fr;
	}

	.grid.list-view {
		grid-template-columns: 1fr;
	}

	.grid.list-view .card {
		flex-direction: column;
		align-items: flex-start;
		height: auto;
	}

	.grid.list-view .card-header {
		width: 100%;
		margin-bottom: 10px;
	}

	.grid.list-view .c-brand {
		margin-bottom: 10px;
	}

	.pipe-step:first-child,
	.pipe-step:last-child {
		border-radius: 12px;
		border: 1px solid var(--border);
		margin-bottom: 20px;
	}

	.pipe-step:nth-child(2) {
		border: 1px solid var(--border);
		border-radius: 12px;
		margin-bottom: 20px;
	}

	.pipe-step:not(:last-child)::after {
		display: none;
	}

	nav {
		flex-direction: column;
		align-items: center;
		gap: 15px;
		padding: 15px;
	}

	.nav-links {
		gap: 15px;
		justify-content: center;
	}

	.asset-search {
		width: 100%;
		margin-bottom: 10px;
	}

	.cta-box {
		padding: 40px 20px;
	}
}
