/* ============================================================
   dhakalbinaya.com.np — "Midnight Executive"
   ============================================================ */

:root {
	--bg: #0b0b0d;
	--panel: #101013;
	--panel-2: #0e0e12;
	--border: #1a1a1e;
	--border-card: #222226;
	--gold: #c9a24b;
	--text-hi: #f4f2ee;
	--text-lead: #b5b2ab;
	--text-body: #85817a;
	--text-label: #87868d;
	--font-display: 'Space Grotesk', -apple-system, sans-serif;
	--font-body: 'Inter', -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
	background: var(--bg);
	color: var(--text-body);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

:where(a, button, summary):focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 4px;
}

.skip-link {
	position: fixed;
	top: 10px;
	left: 12px;
	z-index: 1000;
	transform: translateY(-160%);
	background: var(--gold);
	color: var(--bg);
	font-size: 13px;
	font-weight: 600;
	padding: 10px 14px;
	transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.accent { color: var(--gold); }

/* ---------- labels ---------- */
.eyebrow {
	font-family: var(--font-display);
	color: var(--gold);
	font-size: 12px;
	letter-spacing: .35em;
	text-transform: uppercase;
}
.section-label {
	color: var(--text-label);
	font-size: 11px;
	letter-spacing: .3em;
	text-transform: uppercase;
	font-weight: 400;
	margin-bottom: 48px;
}

/* ---------- nav ---------- */
.nav {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 100;
	background: rgba(11, 11, 13, .82);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border);
}
.nav-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 64px;
}
.monogram {
	font-family: var(--font-display);
	font-weight: 700;
	color: var(--gold);
	letter-spacing: .3em;
	font-size: 15px;
}
.nav-links { display: flex; gap: 38px; }
.nav-links a {
	font-size: 11px;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: #8a8a8f;
	transition: color .2s ease;
}
.nav-links a:hover { color: var(--gold); }
.nav-toggle {
	display: none;
	background: none;
	border: 1px solid var(--border-card);
	color: #8a8a8f;
	font-family: var(--font-body);
	font-size: 10px;
	letter-spacing: .22em;
	padding: 7px 12px;
	min-width: 44px;
	min-height: 44px;
	cursor: pointer;
}

/* ---------- hero ---------- */
.hero { padding: 145px 0 105px; }
.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.18fr) minmax(280px, .82fr);
	align-items: center;
	gap: clamp(56px, 8vw, 110px);
}
.hero h1 {
	font-family: var(--font-display);
	color: var(--text-hi);
	font-size: clamp(56px, 9vw, 104px);
	line-height: .98;
	letter-spacing: -.03em;
	font-weight: 700;
	margin-top: 20px;
}
.gold-rule {
	width: 48px;
	height: 1px;
	background: var(--gold);
	border: 0;
	margin: 34px 0;
}
.thesis {
	font-family: var(--font-display);
	color: var(--text-lead);
	font-size: clamp(18px, 2.4vw, 22px);
	font-weight: 500;
}
.hero-sub { max-width: 470px; margin-top: 12px; font-size: 15px; }
.cta-row { display: flex; gap: 14px; margin-top: 44px; flex-wrap: wrap; }
.hero-portrait {
	justify-self: end;
	width: min(100%, 360px);
	aspect-ratio: 4 / 5;
	overflow: hidden;
	position: relative;
	border: 1px solid #2e2a20;
	background: var(--panel);
}
.hero-portrait::after {
	content: "";
	position: absolute;
	inset: 0;
	box-shadow: inset 0 0 0 1px rgba(201, 162, 75, .08);
	pointer-events: none;
}
.hero-portrait img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 26%;
	filter: saturate(.82) contrast(1.04);
}
.btn {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	padding: 14px 24px;
	transition: transform .2s ease, filter .2s ease, border-color .2s ease, color .2s ease;
}
.btn-solid { background: var(--gold); color: #0b0b0d; }
.btn-solid:hover { filter: brightness(1.1); transform: translateY(-2px); }
.btn-ghost { border: 1px solid #333338; color: var(--text-lead); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- sections ---------- */
.section { padding: 110px 0; border-top: 1px solid var(--border); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 24px 0; }
.footer-inner {
	display: flex;
	justify-content: space-between;
	font-size: 11px;
	color: #7a7a80;
	letter-spacing: .06em;
}

/* ---------- reveal animation (JS-gated, motion-safe) ---------- */
.js [data-reveal] {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .7s ease, transform .7s ease;
}
.js:not(.js-ready) [data-reveal] { animation: reveal-fallback .01s 2.5s forwards; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@keyframes reveal-fallback {
	to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- mobile ---------- */
@media (max-width: 720px) {
	.nav-toggle { display: block; }
	.nav-links {
		display: none;
		position: absolute;
		top: 64px; left: 0; right: 0;
		flex-direction: column;
		gap: 22px;
		background: rgba(11, 11, 13, .97);
		border-bottom: 1px solid var(--border);
		padding: 26px 24px;
	}
	.nav.open .nav-links { display: flex; }
	.hero { padding: 124px 0 72px; }
	.hero-grid { grid-template-columns: 1fr; gap: 54px; }
	.hero-portrait { justify-self: start; width: min(82vw, 310px); }
	.section { padding: 80px 0; }
}

/* ---------- ventures: flagship ---------- */
.flagship {
	border: 1px solid #2e2a20;
	background: linear-gradient(135deg, #131311 0%, #0f0f11 100%);
	padding: 44px;
}
.flagship-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}
.flagship-role {
	font-family: var(--font-display);
	color: var(--gold);
	font-size: 10px;
	letter-spacing: .28em;
	text-transform: uppercase;
}
.badge {
	border: 1px solid #2f4f2f;
	color: #7fb77f;
	font-size: 10px;
	letter-spacing: .18em;
	text-transform: uppercase;
	padding: 5px 11px;
}
.flagship h3 {
	font-family: var(--font-display);
	color: var(--text-hi);
	font-size: clamp(30px, 4vw, 42px);
	font-weight: 700;
	margin-top: 20px;
	line-height: 1.1;
}
.tagline { color: #9a968e; font-size: 17px; margin-top: 4px; }
.flagship .desc { max-width: 580px; margin-top: 18px; font-size: 14.5px; }
.flagship .link-gold { display: inline-block; margin-top: 20px; }
.link-gold {
	color: var(--gold);
	font-size: 13px;
	letter-spacing: .08em;
}
.link-gold span { display: inline-block; transition: transform .2s ease; }
.link-gold:hover span { transform: translateX(4px); }
.proof-list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	margin-top: 30px;
	background: #2a281f;
	border: 1px solid #2a281f;
}
.proof-list li {
	background: rgba(11, 11, 13, .72);
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.proof-list strong {
	font-family: var(--font-display);
	color: var(--text-hi);
	font-size: 12px;
	font-weight: 600;
}
.proof-list span { font-size: 11px; color: var(--text-body); }
.widget-disclosure {
	margin-top: 20px;
	border: 1px solid #2a281f;
}
.widget-disclosure summary {
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 52px;
	padding: 13px 18px;
	cursor: pointer;
	color: var(--gold);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
}
.widget-disclosure summary::-webkit-details-marker { display: none; }
.widget-disclosure summary span { font-size: 18px; transition: transform .2s ease; }
.widget-disclosure[open] summary span { transform: rotate(45deg); }
.widget-frame {
	border-top: 1px solid #232320;
	padding: 20px;
	background: rgba(0, 0, 0, .25);
	overflow-x: auto;
}
yanib-portfolio { display: block; max-width: 100%; min-height: 120px; }
.widget-caption {
	margin-top: 12px;
	color: var(--text-label);
	font-size: 11px;
	letter-spacing: .08em;
}

/* ---------- ventures: cards ---------- */
.venture-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 16px;
}
.venture-card {
	border: 1px solid var(--border-card);
	padding: 32px;
	display: flex;
	flex-direction: column;
	transition: border-color .25s ease, transform .25s ease;
}
.venture-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.card-role {
	color: #8a8a8f;
	font-size: 10px;
	letter-spacing: .28em;
	text-transform: uppercase;
}
.venture-card h3 {
	font-family: var(--font-display);
	color: var(--text-hi);
	font-size: 22px;
	font-weight: 700;
	margin-top: 12px;
}
.card-tagline { color: var(--text-lead); font-size: 13.5px; margin-top: 4px; font-weight: 500; }
.card-desc { font-size: 13px; margin-top: 10px; }
.platforms {
	margin-top: auto;
	padding-top: 22px;
	color: #8a8a8f;
	font-size: 11px;
	letter-spacing: .14em;
	text-transform: uppercase;
}
.platforms .link-gold { text-transform: none; letter-spacing: .08em; font-size: 12px; }

/* ---------- ventures: current strip ---------- */
.current {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	border: 1px solid #1e1e24;
	background: var(--panel-2);
	padding: 20px 28px;
	margin-top: 16px;
	transition: border-color .25s ease;
}
.current:hover { border-color: var(--gold); }
.current-label {
	font-family: var(--font-display);
	color: var(--gold);
	font-size: 10px;
	letter-spacing: .28em;
	text-transform: uppercase;
	margin-right: 14px;
}
.current-role { color: #ddd; font-size: 14px; font-weight: 600; }
.pulse {
	color: #4a7a4a;
	font-size: 10px;
	letter-spacing: .18em;
	text-transform: uppercase;
	display: inline-flex;
	align-items: center;
	gap: 7px;
}
.pulse-dot {
	width: 6px; height: 6px;
	border-radius: 50%;
	background: #4a7a4a;
	animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: .3; }
}
@media (prefers-reduced-motion: reduce) {
	.pulse-dot { animation: none; }
}
@media (max-width: 720px) {
	.flagship { padding: 30px 24px; }
	.proof-list { grid-template-columns: 1fr; }
	.widget-frame { padding: 12px; }
	.venture-grid { grid-template-columns: 1fr; }
	.current { flex-direction: column; align-items: flex-start; }
}

/* ---------- journey timeline ---------- */
.timeline {
	border-left: 1px solid #2a2a2e;
	padding-left: 36px;
	display: flex;
	flex-direction: column;
	gap: 48px;
}
.timeline li { position: relative; }
.timeline li::before {
	content: "";
	position: absolute;
	left: -41px;
	top: 7px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--bg);
	border: 1px solid var(--gold);
}
.t-date {
	font-family: var(--font-display);
	font-size: 11px;
	letter-spacing: .25em;
	text-transform: uppercase;
	color: #8a8a8f;
}
.t-date.now { color: var(--gold); }
.timeline h3 {
	font-family: var(--font-display);
	color: #ddd;
	font-size: 18px;
	font-weight: 600;
	margin-top: 7px;
}
.timeline li > p:last-child { font-size: 13.5px; margin-top: 5px; max-width: 560px; }

/* ---------- research: featured (first-author) ---------- */
.pub-featured {
	border: 1px solid #2e2a20;
	background: linear-gradient(135deg, #131311 0%, #0f0f11 100%);
	padding: 40px;
	margin-bottom: 14px;
}
.pub-badge {
	font-family: var(--font-display);
	color: var(--gold);
	font-size: 10px;
	letter-spacing: .28em;
	text-transform: uppercase;
}
.pub-featured h3 {
	font-family: var(--font-display);
	color: var(--text-hi);
	font-size: clamp(19px, 2.4vw, 25px);
	font-weight: 700;
	line-height: 1.3;
	margin-top: 16px;
	max-width: 780px;
}
.pub-authors { color: var(--text-lead); font-size: 13.5px; margin-top: 14px; }
.pub-authors strong { color: var(--gold); font-weight: 600; }
.pub-venue {
	color: var(--text-label);
	font-size: 11.5px;
	letter-spacing: .06em;
	margin-top: 3px;
}
.pub-desc { font-size: 14px; margin-top: 16px; max-width: 640px; }
.pub-actions { display: flex; gap: 26px; margin-top: 22px; flex-wrap: wrap; }

/* ---------- research ---------- */
.pub-card {
	border: 1px solid var(--border-card);
	padding: 28px 32px;
	margin-bottom: 14px;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 24px;
	flex-wrap: wrap;
	transition: border-color .25s ease;
}
.pub-card:hover { border-color: var(--gold); }
.pub-title {
	font-family: var(--font-display);
	color: #eee;
	font-size: 15.5px;
	font-weight: 600;
	max-width: 560px;
	line-height: 1.45;
}
.pub-note { font-size: 12.5px; margin-top: 8px; }
.pub-meta { font-size: 12px; white-space: nowrap; }
.pub-status {
	color: #8a8a8f;
	letter-spacing: .18em;
	text-transform: uppercase;
	font-size: 10px;
	padding-top: 4px;
}
.writing-line { margin-top: 28px; font-size: 13px; }
.writing-line span { color: #aaaaa4; }
.writing-line .link-gold span { color: var(--gold); }

@media (max-width: 720px) {
	.pub-card { flex-direction: column; padding: 24px; }
	.pub-featured { padding: 28px 24px; }
	.timeline { padding-left: 28px; }
	.timeline li::before { left: -33px; }
}

/* ---------- contact ---------- */
.contact { text-align: center; padding: 150px 0; }
.contact h2 {
	font-family: var(--font-display);
	color: var(--text-hi);
	font-size: clamp(36px, 6vw, 58px);
	font-weight: 700;
	letter-spacing: -.02em;
}
.contact-email {
	display: inline-block;
	margin-top: 20px;
	color: var(--text-lead);
	font-size: 17px;
	transition: color .2s ease;
}
.contact-intro {
	max-width: 530px;
	margin: 18px auto 0;
	font-size: 14px;
}
.contact-email:hover { color: var(--gold); }
.contact-links {
	margin-top: 40px;
	display: flex;
	justify-content: center;
	gap: 32px;
	font-size: 11px;
	letter-spacing: .25em;
	text-transform: uppercase;
}
.contact-links a { color: #8a8a8f; transition: color .2s ease; }
.contact-links a:hover { color: var(--gold); }

@media (max-width: 720px) {
	.contact { padding: 100px 0; }
	.contact-links { gap: 20px; flex-wrap: wrap; }
}
