/* =============================================
   RESET & TOKENS
============================================= */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

:root {
	--ink:        #05050a;
	--ink2:       #0d0d18;
	--surface:    #111120;
	--panel:      #16162a;
	--border:     rgba(255,255,255,0.07);
	--border2:    rgba(255,255,255,0.12);
	--text:       #f8f8ff;
	--muted:      #9d9de3;
	--bright:     #ffffff;
	--lime:       #b8ff57;
	--cyan:       #57e8ff;
	--violet:     #9b6dff;
	--font-head:  'Big Shoulders Display', sans-serif;/*Syne', sans-serif;*/
	--font-mono:  'DM Mono', monospace;
	--font-body:  'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
	background: var(--ink);
	color: var(--text);
	font-family: var(--font-body);
	font-weight: 300;
	line-height: 1.6;
	overflow-x: hidden;
	cursor: none;
}

/* =============================================
   CUSTOM CURSOR
============================================= */
#cursor {
	position: fixed;
	width: 12px; height: 12px;
	background: var(--lime);
	border-radius: 50%;
	pointer-events: none;
	z-index: 9999;
	transform: translate(-50%,-50%);
	transition: transform 0.1s, width 0.3s, height 0.3s, background 0.3s;
	mix-blend-mode: difference;
}
#cursor-ring {
	position: fixed;
	width: 40px; height: 40px;
	border: 1px solid rgba(184,255,87,0.4);
	border-radius: 50%;
	pointer-events: none;
	z-index: 9998;
	transform: translate(-50%,-50%);
	transition: transform 0.15s ease-out, width 0.4s, height 0.4s, border-color 0.3s;
}
body:has(a:hover) #cursor,
body:has(button:hover) #cursor  { width: 6px; height: 6px; }
body:has(a:hover) #cursor-ring,
body:has(button:hover) #cursor-ring {
	width: 56px; height: 56px;
	border-color: rgba(184,255,87,0.7);
}

/* =============================================
   NOISE OVERLAY
============================================= */
body::before {
	content: '';
	position: fixed;
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
	background-size: 200px 200px;
	pointer-events: none;
	z-index: 9000;
	opacity: 0.4;
}

/* =============================================
   GRID BACKGROUND
============================================= */
.grid-bg {
	position: fixed;
	inset: 0;
	background-image:
		linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
	background-size: 60px 60px;
	pointer-events: none;
	z-index: 0;
}

/* =============================================
   NAVIGATION
============================================= */
nav {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 1000;
	padding: 1.5rem 4%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid transparent;
	transition: border-color 0.4s, background 0.4s;
}
nav.scrolled {
	background: rgba(5,5,10,0.85);
	backdrop-filter: blur(20px);
	border-color: var(--border);
}
.nav-logo {
	font-family: var(--font-head);
	font-size: 1.1rem;
	font-weight: 800;
	letter-spacing: -0.5px;
	color: var(--bright);
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 0.75rem;
}
.nav-logo-mark {
	width: 28px; height: 28px;
	border: 2px solid var(--lime);
	display: grid;
	place-items: center;
	font-size: 0.7rem;
	color: var(--lime);
	font-family: var(--font-mono);
}
.nav-links {
	display: flex;
	list-style: none;
	gap: 2.5rem;
	align-items: center;
}
.nav-links a {
	font-family: var(--font-mono);
	font-size: 0.78rem;
	letter-spacing: 1px;
	color: var(--muted);
	text-decoration: none;
	text-transform: uppercase;
	transition: color 0.3s;
	position: relative;
}
.nav-links a::after {
	content: '';
	position: absolute;
	bottom: -4px; left: 0;
	width: 0; height: 1px;
	background: var(--lime);
	transition: width 0.3s;
}
.nav-links a:hover { color: var(--bright); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
	padding: 0.6rem 1.5rem;
	border: 1px solid var(--lime) !important;
	color: var(--lime) !important;
	border-radius: 2px;
	transition: background 0.3s !important;
}
.nav-cta:hover { background: var(--lime) !important; color: var(--ink) !important; }
.nav-cta::after { display: none !important; }

/* =============================================
   HERO
============================================= */
.hero {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 8rem 4% 6rem;
	position: relative;
	overflow: hidden;
}

.hero-eyebrow {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	color: var(--lime);
	letter-spacing: 3px;
	text-transform: uppercase;
	margin-bottom: 2.5rem;
	display: flex;
	align-items: center;
	gap: 1rem;
	opacity: 0;
	animation: fadeUp 0.8s 0.2s forwards;
}
.hero-eyebrow::before {
	content: '';
	width: 40px; height: 1px;
	background: var(--lime);
}

.hero-headline {
	font-family: var(--font-head);
	font-size: clamp(3.5rem, 9vw, 9rem);
	font-weight: 800;
	line-height: 0.95;
	letter-spacing: -3px;
	color: var(--bright);
	max-width: 1100px;
	margin-bottom: 3rem;
	opacity: 0;
	animation: fadeUp 0.8s 0.4s forwards;
}
.hero-headline em {
	font-style: normal;
	color: transparent;
	-webkit-text-stroke: 1px rgba(255,255,255,0.35);
	position: relative;
}
.hero-headline .accent { color: var(--lime); -webkit-text-stroke: 0; }

.hero-sub {
	font-size: 1.1rem;
	color: var(--muted);
	max-width: 520px;
	line-height: 1.8;
	margin-bottom: 3.5rem;
	opacity: 0;
	animation: fadeUp 0.8s 0.6s forwards;
}

.hero-actions {
	display: flex;
	gap: 1.5rem;
	align-items: center;
	flex-wrap: wrap;
	opacity: 0;
	animation: fadeUp 0.8s 0.8s forwards;
}

.btn-primary {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 2.5rem;
	background: var(--lime);
	color: var(--ink);
	font-family: var(--font-mono);
	font-size: 0.85rem;
	font-weight: 400;
	letter-spacing: 1px;
	text-transform: uppercase;
	border: none;
	border-radius: 2px;
	cursor: pointer;
	transition: all 0.3s;
	text-decoration: none;
}
.btn-primary:hover {
	background: var(--bright);
	transform: translate(-2px,-2px);
	box-shadow: 4px 4px 0 var(--lime);
}
.btn-ghost {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 2.5rem;
	background: transparent;
	color: var(--text);
	font-family: var(--font-mono);
	font-size: 0.85rem;
	letter-spacing: 1px;
	text-transform: uppercase;
	border: 1px solid var(--border2);
	border-radius: 2px;
	cursor: pointer;
	transition: all 0.3s;
	text-decoration: none;
}
.btn-ghost:hover {
	border-color: var(--text);
	color: var(--bright);
}

.hero-stats {
	position: absolute;
	right: 4%;
	bottom: 6rem;
	display: flex;
	flex-direction: column;
	gap: 2rem;
	opacity: 0;
	animation: fadeUp 0.8s 1s forwards;
}
.hero-stat {
	text-align: right;
}
.hero-stat-num {
	font-family: var(--font-head);
	font-size: 2.5rem;
	font-weight: 800;
	color: var(--bright);
	line-height: 1;
}
.hero-stat-label {
	font-family: var(--font-mono);
	font-size: 0.7rem;
	color: var(--muted);
	letter-spacing: 1px;
	text-transform: uppercase;
	margin-top: 0.3rem;
}

/* Scrolling ticker */
.ticker-wrap {
	position: absolute;
	bottom: 0; left: 0; right: 0;
	border-top: 1px solid var(--border);
	overflow: hidden;
	padding: 1rem 0;
	background: rgba(5,5,10,0.5);
}
.ticker {
	display: flex;
	gap: 4rem;
	animation: ticker 30s linear infinite;
	white-space: nowrap;
	width: max-content;
}
.ticker span {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--muted);
}
.ticker span.hi { color: var(--lime); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =============================================
   SECTION BASE
============================================= */
section { position: relative; z-index: 1; }

.section-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	margin-bottom: 5rem;
	gap: 2rem;
	flex-wrap: wrap;
}
.section-tag {
	font-family: var(--font-mono);
	font-size: 0.72rem;
	color: var(--lime);
	letter-spacing: 3px;
	text-transform: uppercase;
	margin-bottom: 1rem;
	display: flex;
	align-items: center;
	gap: 0.75rem;
}
.section-tag::before {
	content: '';
	width: 24px; height: 1px;
	background: var(--lime);
}
.section-title {
	font-family: var(--font-head);
	font-size: clamp(2.2rem, 4vw, 4rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -1.5px;
	color: var(--bright);
}
.section-muted {
	color: var(--muted);
	font-size: 1rem;
	max-width: 400px;
	line-height: 1.7;
}

/* =============================================
   MARQUEE DIVIDER
============================================= */
.marquee-divider {
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	padding: 1.2rem 0;
	overflow: hidden;
	background: var(--ink2);
}
.marquee-inner {
	display: flex;
	gap: 3rem;
	animation: ticker 20s linear infinite;
	width: max-content;
}
.marquee-inner span {
	font-family: var(--font-head);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--border2);
	white-space: nowrap;
}
.marquee-inner span.dot { color: var(--lime); font-size: 1.2rem; }

/* =============================================
   CAPABILITIES
============================================= */
.capabilities { padding: 8rem 4%; }

.cap-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	border: 1px solid var(--border);
}
.cap-item {
	padding: 3rem 2.5rem;
	border-right: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	position: relative;
	transition: background 0.4s;
	overflow: hidden;
}
.cap-item:nth-child(3n) { border-right: none; }
.cap-item:nth-last-child(-n+3) { border-bottom: none; }
.cap-item::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(184,255,87,0.04), transparent);
	opacity: 0;
	transition: opacity 0.4s;
}
.cap-item:hover::before { opacity: 1; }
.cap-item:hover { background: rgba(255,255,255,0.02); }

.cap-icon {
	font-size: 1.8rem;
	color: var(--lime);
	margin-bottom: 1.5rem;
	display: block;
	line-height: 1;
}
.cap-num {
	position: absolute;
	top: 2rem; right: 2rem;
	font-family: var(--font-mono);
	font-size: 0.7rem;
	color: var(--border2);
	letter-spacing: 1px;
}
.cap-title {
	font-family: var(--font-head);
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--bright);
	margin-bottom: 1rem;
}
.cap-desc {
	font-size: 1rem;
	color: var(--muted);
	line-height: 1.7;
}

/* =============================================
   PORTFOLIO
============================================= */
.portfolio { padding: 8rem 4%; background: var(--ink2); }

.portfolio-list {
	display: flex;
	flex-direction: column;
	gap: 0;
	border: 1px solid var(--border);
}

.p-row {
	display: grid;
	grid-template-columns: 80px 1fr 200px 160px 160px;
	align-items: center;
	padding: 2rem 2.5rem;
	border-bottom: 1px solid var(--border);
	cursor: pointer;
	transition: background 0.3s;
	position: relative;
	gap: 2rem;
}
.p-row:last-child { border-bottom: none; }
.p-row:hover { background: rgba(255,255,255,0.03); }
.p-row:hover .p-num { color: var(--lime); }
.p-row:hover .p-arrow { opacity: 1; transform: translateX(0); }

.p-num {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	color: var(--border2);
	letter-spacing: 1px;
	transition: color 0.3s;
}
.p-title {
	font-family: var(--font-head);
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--bright);
	letter-spacing: -0.5px;
}
.p-excerpt {
	font-size: 1rem;
	color: var(--muted);
	margin-top: 0.25rem;
}
.p-cat {
	font-family: var(--font-mono);
	font-size: 0.72rem;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--muted);
}
.p-tech {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}
.p-tech-tag {
	font-family: var(--font-mono);
	font-size: 0.65rem;
	letter-spacing: 0.5px;
	padding: 0.2rem 0.6rem;
	border: 1px solid var(--border);
	color: var(--muted);
	border-radius: 2px;
}
.p-date {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	color: var(--muted);
	letter-spacing: 1px;
	text-align: right;
}
.p-arrow {
	position: absolute;
	right: 2rem;
	font-size: 1.2rem;
	color: var(--lime);
	opacity: 0;
	transform: translateX(-8px);
	transition: all 0.3s;
}

/* =============================================
   PROCESS
============================================= */
.process { padding: 8rem 4%; }

.process-steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
	position: relative;
	margin-top: 5rem;
}
.process-steps::before {
	content: '';
	position: absolute;
	top: 2.5rem;
	left: 4%;
	right: 4%;
	height: 1px;
	background: linear-gradient(90deg, var(--lime), var(--cyan), var(--violet), transparent);
}
.step {
	padding: 0 2rem 3rem;
	position: relative;
}
.step-dot {
	width: 12px; height: 12px;
	border-radius: 50%;
	background: var(--lime);
	margin-bottom: 2.5rem;
	box-shadow: 0 0 20px rgba(184,255,87,0.4);
}
.step:nth-child(2) .step-dot { background: var(--cyan); box-shadow: 0 0 20px rgba(87,232,255,0.4); }
.step:nth-child(3) .step-dot { background: var(--violet); box-shadow: 0 0 20px rgba(155,109,255,0.4); }
.step:nth-child(4) .step-dot { background: var(--text); box-shadow: none; }
.step-num {
	font-family: var(--font-mono);
	font-size: 0.7rem;
	color: var(--muted);
	letter-spacing: 1px;
	margin-bottom: 1rem;
}
.step-title {
	font-family: var(--font-head);
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--bright);
	margin-bottom: 0.75rem;
}
.step-desc {
	font-size: 1rem;
	color: var(--muted);
	line-height: 1.7;
}

/* =============================================
   CTA SECTION
============================================= */
.cta-section {
	padding: 10rem 4%;
	text-align: center;
	position: relative;
	overflow: hidden;
	background: var(--ink2);
}
.cta-section::before {
	content: '';
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%,-50%);
	width: 600px; height: 600px;
	background: radial-gradient(circle, rgba(184,255,87,0.06) 0%, transparent 70%);
	pointer-events: none;
}
.cta-big {
	font-family: var(--font-head);
	font-size: clamp(3rem, 7vw, 7rem);
	font-weight: 800;
	letter-spacing: -3px;
	line-height: 1;
	color: var(--bright);
	margin-bottom: 2rem;
}
.cta-big .outline { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.3); }
.cta-sub {
	color: var(--muted);
	font-size: 1.1rem;
	margin-bottom: 3rem;
}

/* =============================================
   FOOTER
============================================= */
footer {
	padding: 4rem 4% 3rem;
	border-top: 1px solid var(--border);
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 3rem;
	align-items: end;
}
.footer-brand {
	font-family: var(--font-head);
	font-size: 1.4rem;
	font-weight: 800;
	color: var(--bright);
	margin-bottom: 1rem;
}
.footer-copy {
	font-family: var(--font-mono);
	font-size: 0.72rem;
	color: var(--muted);
	letter-spacing: 0.5px;
}
.footer-links {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}
.footer-links a {
	font-family: var(--font-mono);
	font-size: 0.8rem;
	color: var(--muted);
	text-decoration: none;
	letter-spacing: 0.5px;
	transition: color 0.3s;
}
.footer-links a:hover { color: var(--bright); }
.footer-contact {
	text-align: right;
}
.footer-contact a {
	display: block;
	font-family: var(--font-mono);
	font-size: 0.8rem;
	color: var(--muted);
	text-decoration: none;
	margin-bottom: 0.5rem;
	transition: color 0.3s;
}
.footer-contact a:hover { color: var(--lime); }

/* =============================================
   MODALS
============================================= */

.modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.8);
	backdrop-filter: blur(10px);
	z-index: 2000;
	align-items: center;
	justify-content: center;
	padding: 2rem;
}
.modal-overlay.open { display: flex; }



/* Contact Modal */
.contact-modal {
	background: var(--surface);
	border: 1px solid var(--border2);
	border-radius: 4px;
	max-width: 580px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	padding: 3rem;
	position: relative;
	animation: modalIn 0.3s ease-out;
}
.modal-close {
	position: absolute;
	top: 1.5rem; right: 1.5rem;
	background: none;
	border: 1px solid var(--border);
	border-color: var(--bright);
	color: var(--bright);
	width: 36px; height: 36px;
	cursor: pointer;
	font-size: 1rem;
	border-radius: 2px;
	display: grid;
	place-items: center;
	transition: all 0.3s;
}
.modal-close:hover { border-color: var(--bright); color: var(--bright); }

.modal-tag {
	font-family: var(--font-mono);
	font-size: 0.7rem;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--lime);
	margin-bottom: 1rem;
}
.modal-title {
	font-family: var(--font-head);
	font-size: 2.2rem;
	font-weight: 800;
	color: var(--bright);
	letter-spacing: -1px;
	margin-bottom: 0.5rem;
}
.modal-sub {
	color: var(--muted);
	font-size: 0.9rem;
	margin-bottom: 2.5rem;
}

.form-group {
	margin-bottom: 1.5rem;
}
.form-label {
	display: block;
	font-family: var(--font-mono);
	font-size: 0.7rem;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 0.5rem;
}
.form-input {
	width: 100%;
	background: rgba(255,255,255,0.04);
	border: 1px solid var(--border2);
	color: var(--bright);
	padding: 0.85rem 1rem;
	font-family: var(--font-body);
	font-size: 0.95rem;
	border-radius: 2px;
	transition: border-color 0.3s;
	outline: none;
}
.form-input:focus { border-color: var(--lime); }
.form-input::placeholder { color: var(--muted); }
select.form-input option { background: var(--surface); }
textarea.form-input { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-submit {
	width: 100%;
	padding: 1rem;
	background: var(--lime);
	color: var(--ink);
	font-family: var(--font-mono);
	font-size: 0.85rem;
	font-weight: 400;
	letter-spacing: 2px;
	text-transform: uppercase;
	border: none;
	border-radius: 2px;
	cursor: pointer;
	transition: all 0.3s;
	margin-top: 0.5rem;
}
.form-submit:hover { background: var(--bright); }
.form-message {
	padding: 1rem;
	margin-bottom: 1.5rem;
	border-radius: 2px;
	font-family: var(--font-mono);
	font-size: 0.8rem;
	letter-spacing: 0.5px;
}
.form-message.success { background: rgba(184,255,87,0.1); border: 1px solid rgba(184,255,87,0.3); color: var(--lime); }
.form-message.error   { background: rgba(255,80,80,0.1);  border: 1px solid rgba(255,80,80,0.3);  color: #ff8080; }

/* Project detail modal */
.project-modal {
	background: var(--surface);
	border: 1px solid var(--border2);
	border-radius: 4px;
	max-width: 820px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	animation: modalIn 0.3s ease-out;
}
.pm-hero {
	height: 300px;
	background: var(--panel);
	background-size: cover;
	background-position: center;
	position: relative;
	flex-shrink: 0;
}
.pm-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(5,5,10,0.95) 0%, rgba(5,5,10,0.2) 100%);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 2.5rem;
}
.pm-cat {
	font-family: var(--font-mono);
	font-size: 0.7rem;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--lime);
	margin-bottom: 0.75rem;
}
.pm-title {
	font-family: var(--font-head);
	font-size: 2.5rem;
	font-weight: 800;
	color: var(--bright);
	letter-spacing: -1px;
}
.pm-body { padding: 2.5rem; }
.pm-meta {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	padding: 1.5rem;
	background: rgba(255,255,255,0.03);
	border: 1px solid var(--border);
	margin-bottom: 2.5rem;
	border-radius: 2px;
}
.pm-meta-item { text-align: center; }
.pm-meta-label {
	font-family: var(--font-mono);
	font-size: 0.65rem;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 0.4rem;
}
.pm-meta-val {
	font-family: var(--font-head);
	font-size: 1rem;
	font-weight: 700;
	color: var(--bright);
}
.pm-section { margin-bottom: 2rem; }
.pm-section-title {
	font-family: var(--font-mono);
	font-size: 0.7rem;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--lime);
	margin-bottom: 0.75rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--border);
}
.pm-text { font-size: 0.92rem; color: var(--muted); line-height: 1.8; }
.pm-results { list-style: none; }
.pm-results li {
	font-size: 0.92rem;
	color: var(--muted);
	padding: 0.5rem 0;
	padding-left: 1.5rem;
	position: relative;
	border-bottom: 1px solid var(--border);
}
.pm-results li::before { content: '→'; position: absolute; left: 0; color: var(--lime); }
.pm-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pm-tag {
	font-family: var(--font-mono);
	font-size: 0.72rem;
	padding: 0.35rem 0.85rem;
	border: 1px solid var(--border2);
	color: var(--text);
	border-radius: 2px;
}
.pm-cta {
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid var(--border);
}
.pm-live-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.85rem 2rem;
	background: var(--lime);
	color: var(--ink);
	font-family: var(--font-mono);
	font-size: 0.8rem;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 2px;
	font-weight: 600;
	transition: all 0.3s;
}
.pm-live-btn:hover { background: var(--bright); }

/* =============================================
   ANIMATIONS
============================================= */
@keyframes fadeUp {
	from { opacity: 0; transform: translateY(30px); }
	to   { opacity: 1; transform: translateY(0); }
}
@keyframes modalIn {
	from { opacity: 0; transform: scale(0.96) translateY(10px); }
	to   { opacity: 1; transform: scale(1) translateY(0); }
}

.reveal {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
	opacity: 1;
	transform: translateY(0);
}

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

/* Hamburger */
.nav-hamburger {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
	z-index: 1001;
}
.nav-hamburger span {
	display: block;
	width: 24px;
	height: 1.5px;
	background: var(--text);
	transition: all 0.3s;
	transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav drawer */
.nav-drawer {
	display: none;
	position: fixed;
	inset: 0;
	background: var(--ink);
	z-index: 999;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2.5rem;
	border-top: 1px solid var(--border);
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
	font-family: var(--font-head);
	font-size: 2.5rem;
	font-weight: 800;
	color: var(--text);
	text-decoration: none;
	letter-spacing: -1px;
	transition: color 0.2s;
}
.nav-drawer a:hover { color: var(--lime); }
.nav-drawer .drawer-cta {
	font-size: 1rem;
	font-family: var(--font-mono);
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--lime) !important;
	border: 1px solid var(--lime);
	padding: 0.85rem 2rem;
	border-radius: 2px;
	margin-top: 1rem;
}

/* Portfolio table header - hide on mobile via JS class */
.portfolio-table-header { display: grid; }

@media (max-width: 1024px) {
	.cap-grid { grid-template-columns: repeat(2, 1fr); }
	.cap-item:nth-child(3n) { border-right: 1px solid var(--border); }
	.cap-item:nth-child(2n) { border-right: none; }
	.process-steps { grid-template-columns: repeat(2, 1fr); }
	.process-steps::before { display: none; }
	.p-row { grid-template-columns: 50px 1fr 130px; }
	.p-tech, .p-date { display: none; }
	footer { grid-template-columns: 1fr 1fr; }
	.footer-contact { text-align: left; grid-column: span 2; }
	.section-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

@media (max-width: 768px) {
	/* Nav */
	.nav-links { display: none; }
	.nav-hamburger { display: flex; }

	/* Hero */
	.hero { padding: 6rem 5% 5rem; }
	.hero-headline { letter-spacing: -2px; margin-bottom: 1.5rem; }
	.hero-eyebrow { margin-bottom: 1.5rem; }
	.hero-sub { font-size: 0.95rem; margin-bottom: 2.5rem; }
	.hero-stats { display: none; }
	.hero-actions { flex-direction: column; width: 100%; }
	.btn-primary, .btn-ghost { width: 100%; justify-content: center; }

	/* Section spacing */
	.capabilities,
	.portfolio,
	.process { padding: 5rem 5%; }
	.cta-section { padding: 6rem 5%; }
	.section-header { flex-direction: column; align-items: flex-start; gap: 1rem; margin-bottom: 3rem; }
	.section-muted { max-width: 100%; }

	/* Capabilities grid */
	.cap-grid { grid-template-columns: 1fr; }
	.cap-item:nth-child(n) { border-right: none; border-bottom: 1px solid var(--border); }
	.cap-item:last-child { border-bottom: none; }

	/* Portfolio table → simplified rows */
	.portfolio-table-header { display: none; }
	.p-row {
		grid-template-columns: 36px 1fr;
		gap: 0.75rem;
		padding: 1.5rem;
	}
	.p-cat, .p-tech, .p-date { display: none; }
	.p-title { font-size: 1.2rem; }
	.p-arrow { right: 1.25rem; opacity: 0.4; transform: none; }
	.p-row:hover .p-arrow { opacity: 1; }

	/* Process */
	.process-steps { grid-template-columns: 1fr; gap: 0; }
	.step {
		padding: 2rem 0 2rem 3rem;
		border-left: 1px solid var(--border);
		margin-left: 6px;
	}
	.step:last-child { border-left: none; }
	.step-dot {
		position: absolute;
		left: -6px;
		top: 2.25rem;
		margin-bottom: 0;
	}
	.step { position: relative; }

	/* CTA */
	.cta-big { letter-spacing: -2px; }
	.cta-big .outline { display: block; }

	/* Footer */
	footer { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 5% 2.5rem; }
	.footer-contact { text-align: left; grid-column: unset; }

	/* Modals */
	//.modal-overlay { padding: 0; align-items: flex-end; }
	.modal-overlay { padding: 1rem; align-items: flex-end; }
	.contact-modal {
		max-height: 95vh;
		border-radius: 12px 12px 0 0;
		padding: 2rem 1.5rem;
		width: 100%;
		margin: 0;
	}
	.form-row { grid-template-columns: 1fr; }
	.project-modal {
		max-height: 72vh;
		border-radius: 12px 12px 0 0;
		width: 100%;
		margin: 0;
	}
	.pm-hero { height: 220px; }
	.pm-title { font-size: 1.6rem; }
	.pm-body { padding: 1.5rem; }
	.pm-meta { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; padding: 1rem; }
	.pm-meta-val { font-size: 0.85rem; }

	/* Cursor off */
	#cursor, #cursor-ring { display: none; }
	body { cursor: auto; }
}