/* =====================================================================
   RESPONSIVE LAYER
   ===================================================================== */

@media (max-width: 1024px) {
	.ajnas-hero-inner { grid-template-columns: 1fr; }
	.ajnas-hero-photo-wrap { max-width: 420px; margin: 0 auto; order: -1; }
	.ajnas-lab-item { grid-template-columns: 60px 1fr; }
	.ajnas-lab-meta, .ajnas-lab-year { grid-column: 2; }
}

@media (max-width: 860px) {
	.ajnas-nav-links { display: none; }
	.ajnas-menu-toggle { display: flex; }

	.ajnas-nav-links.is-open {
		display: flex;
		flex-direction: column;
		position: fixed;
		top: 78px; right: var(--gutter); left: var(--gutter);
		background: var(--color-surface);
		border: 1px solid var(--color-border);
		border-radius: var(--radius);
		padding: 20px;
		gap: 14px;
		z-index: 99;
		box-shadow: var(--shadow-lg);
	}
	.ajnas-utility-dock { bottom: 20px; right: 16px; }

	.ajnas-section { padding: 64px 0; }
	.ajnas-section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 400px) {
	.ajnas-header-linkedin { padding: 8px 12px; font-size: 11px; }
	.ajnas-logo { font-size: 15px; }
}

@media (max-width: 640px) {
	:root { --gutter: 20px; }
	/* On phones the stacked hero (photo + name + roles + copy + CTA) is
	   almost always taller than one screen. The desktop rule vertically
	   *centers* that stack inside a fixed-height section — so once it
	   overflows, the top gets tucked behind the fixed header and the
	   bottom (the "See the work" button) gets pushed past the fold,
	   both effectively cropped. Below, the section just starts under
	   the header and grows to fit its content instead. */
	.ajnas-hero {
		align-items: flex-start;
		padding-top: 110px;
		padding-bottom: 56px;
	}
	/* The "SCROLL" cue is pinned to the bottom of the hero *section*.
	   On desktop that section is exactly one viewport tall, so it sits
	   at the screen edge. Here the hero grows to fit its stacked
	   content instead (see above), so that same "bottom" lands mid-
	   content — right over the CTA buttons — instead of at the screen
	   edge. There's no fixed-height bottom left for it to usefully
	   mark, so it's hidden on phones rather than left overlapping. */
	.ajnas-scroll-cue { display: none; }
	.ajnas-hero-name { font-size: 15vw; }
	.ajnas-hero-roles { font-size: 18px; }
	.ajnas-skills-grid { grid-template-columns: 1fr 1fr; }
	.ajnas-builder-stage { min-width: unset; }
	.ajnas-contact-grid { gap: 32px; }
	.ajnas-footer-inner {
		flex-direction: column-reverse;
		text-align: center;
	}
	.ajnas-venture-actions { flex-direction: column; align-items: flex-start; gap: 14px; }
	.ajnas-certs-list li { flex-wrap: wrap; }
	.ajnas-lightbox-prev, .ajnas-lightbox-next { width: 40px; height: 40px; font-size: 22px; }
}

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

/* Respect reduced-motion preference: kill scroll/parallax animation,
   keep the reveal state visible immediately. */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	[data-reveal] {
		transition: none !important;
		opacity: 1 !important;
		transform: none !important;
	}
	.ajnas-hero-photo-wrap { transform: none !important; }
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
