:root {
  --footer-copy-size: 0.75rem;
  --footer-link-size: 0.8rem;
  --footer-logo-size: 1.1rem;
  --footer-pad: 3rem 4rem;
  --nav-logo-size: 1.25rem;
  --nav-bg: rgba(250,248,251,0.85);
  --accent-dim: rgba(177,4,200,0.12);
  --accent-light: #d635ef;
  --serif: 'Playfair Display', Georgia, serif;
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
 
}

/* ── Nav ── */

.nav-links a {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -3px; left: 0; right: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--paper) !important;
  background: var(--ink);
  padding: 0.6rem 1.4rem;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--accent) !important; transform: translateY(-1px) !important; color: white !important; }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 8rem 4rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
  linear-gradient(var(--rule) 1px, transparent 1px),
  linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.5;
}

.hero-bg-orb {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(177,4,200,0.08) 0%, transparent 70%);
  top: 50%; right: -100px;
  transform: translateY(-50%);
  pointer-events: none;
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 580px;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 0.75rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}
.hero-eyebrow::before {
  content: '';
  display: block; width: 32px; height: 1px;
  background: var(--accent);
}

.hero-headline {
  font-family: var(--serif);
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 900;
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.35s forwards;
}
.hero-headline em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 440px;
  margin-bottom: 2.5rem;
  font-weight: 300;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.5s forwards;
}

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

.btn-primary {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--accent);
  color: white;
  padding: 0.9rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(177,4,200,0.3);
}
.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(177,4,200,0.4);
}
.btn-primary svg { transition: transform 0.2s; }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--accent); border-color: var(--accent); }

/* Hero visual (right column) */
.hero-visual {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  height: 520px;
  opacity: 0;
  animation: fadeIn 1.2s ease 0.7s forwards;
}

.hero-card-stack {
  position: relative;
  width: 340px; height: 420px;
}

.hcard {
  position: absolute;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(14,11,18,0.12);
}

.hcard-1 {
  width: 300px; height: 200px;
  top: 0; left: 20px;
  background: linear-gradient(135deg, #0e0b12 0%, #2a1a2e 100%);
  transform: rotate(-3deg);
  transition: transform 0.4s ease;
  display: flex; flex-direction: column;
  padding: 1.5rem;
  justify-content: space-between;
}
.hcard-1:hover { transform: rotate(0deg) scale(1.02); }

.hcard-2 {
  width: 280px; height: 170px;
  bottom: 30px; right: 0;
  background: var(--paper);
  border: 1px solid var(--rule);
  transform: rotate(2deg);
  transition: transform 0.4s ease;
  padding: 1.25rem;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.hcard-2:hover { transform: rotate(0deg) scale(1.02); }

.hcard-3 {
  width: 160px; height: 120px;
  bottom: 80px; left: 0;
  background: var(--accent);
  transform: rotate(-1deg);
  transition: transform 0.4s ease;
  padding: 1.25rem;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hcard-3:hover { transform: rotate(1deg) scale(1.03); }

/* Card internals */
.chip {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  display: inline-block;
}
.chip-light { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.7); }
.chip-ink { background: var(--accent-dim); color: var(--accent); }

.card-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
}

.progress-row { display: flex; flex-direction: column; gap: 0.4rem; }
.progress-label {
  display: flex; justify-content: space-between;
  font-size: 0.72rem; color: var(--muted);
}
.progress-bar {
  height: 4px; background: var(--rule);
  border-radius: 2px; overflow: hidden;
}
.progress-fill {
  height: 100%; background: var(--accent);
  border-radius: 2px;
  animation: growBar 1.5s ease 1.2s both;
}
@keyframes growBar {
  from { width: 0; }
}
.progress-fill.w88 { width: 88%; }
.progress-fill.w75 { width: 75%; }

.metric {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 900;
  color: white;
  line-height: 1;
}
.metric-label {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.75);
  font-weight: 400;
}

/* ── Marquee ── */
.marquee-strip {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 1rem 0;
  overflow: hidden;
  white-space: nowrap;
  background: var(--ink);
}
.marquee-track {
  display: inline-flex; gap: 3rem;
  animation: marquee 22s linear infinite;
}
.marquee-item {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  display: inline-flex; align-items: center; gap: 0.75rem;
}
.marquee-item::before {
  content: '◆';
  color: var(--accent);
  font-size: 0.5rem;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Section base ── */
section { padding: 6rem 4rem; }

.section-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.section-label::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--accent);
  display: block;
}

/* ── Process ── */
.process { background: var(--ink); }
.process .section-label { color: rgba(177,4,200,0.8); }
.process .section-label::before { background: rgba(177,4,200,0.8); }

.process-headline {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 900;
  color: white;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 600px;
  margin-bottom: 4rem;
}
.process-headline em { font-style: italic; color: var(--accent); }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
}

.step {
  padding: 2.5rem;
  border-right: 1px solid rgba(255,255,255,0.08);
  position: relative;
  transition: background 0.3s;
}
.step:last-child { border-right: none; }
.step:hover { background: rgba(177,4,200,0.06); }

.step-number {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.12em;
  margin-bottom: 2rem;
}

.step-icon {
  font-size: 1.8rem;
  margin-bottom: 1.25rem;
  display: block;
}

.step-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.75rem;
}

.step-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
}

.step-accent-line {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.step:hover .step-accent-line { transform: scaleX(1); }

/* ── Work ── */
.work-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 3rem;
}

.work-headline {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.work-headline em { font-style: italic; color: var(--accent); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project-card {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--ink);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 80px rgba(14,11,18,0.22);
}

.project-thumb-placeholder {
  width: 100%;
  height: 220px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

/* MealMap: warm food & nutrition tones */
.ph-1 {
  background: linear-gradient(135deg, #1e0f0a 0%, #3d1a08 50%, #5c2a10 100%);
}
/* Autonomous Rideshare: electric, tech, night-city */
.ph-2 {
  background: linear-gradient(135deg, #050d1a 0%, #0a1e3d 50%, #0d2b5c 100%);
}
/* Project Rewire: bold, electric, energy/health */
.ph-3 {
  background: linear-gradient(135deg, #110a1e 0%, #2a0a3d 50%, #1a0a2e 100%);
}

/* Decorative SVG shapes inside cards */
.ph-1::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 40%, rgba(220,100,30,0.25) 0%, transparent 60%);
}
.ph-2::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 60%, rgba(0,120,255,0.2) 0%, transparent 60%);
}
.ph-3::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 60% 50%, rgba(177,4,200,0.25) 0%, transparent 60%);
}

.thumb-noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' 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.08'/%3E%3C/svg%3E");
  opacity: 0.35;
  z-index: 1;
}

.project-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14,11,18,0.95) 0%, rgba(14,11,18,0.3) 50%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.75rem;
}

.project-tags { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.tag {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  background: rgba(177,4,200,0.25);
  border: 1px solid rgba(177,4,200,0.4);
  color: var(--accent-light);
}

.project-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: white;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

/* Project body area below image */
.project-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.project-read-more {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--accent-light);
  font-weight: 500;
  transition: gap 0.2s;
}
.project-card:hover .project-read-more { gap: 0.65rem; }

.project-arrow {
  position: absolute; top: 1.25rem; right: 1.25rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  color: white;
  transition: background 0.2s, transform 0.2s;
}
.project-card:hover .project-arrow {
  background: var(--accent);
  transform: rotate(45deg);
}

/* ── About ── */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  background: #f3f0f6;
}

.about-visual {
  position: relative;
  height: 480px;
}

.about-photo-frame {
  position: absolute;
  top: 0; left: 0;
  width: 320px; height: 380px;
  background: linear-gradient(135deg, #2a1a2e, #0e0b12);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(14,11,18,0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem;
}

.about-stat-card {
  position: absolute;
  background: white;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 8px 32px rgba(14,11,18,0.1);
}

.about-stat-card-1 {
  bottom: 40px; left: 200px;
  display: flex; align-items: center; gap: 1rem;
}

.about-stat-card-2 {
  top: 60px; right: 0;
  text-align: center;
}

.stat-icon {
  width: 40px; height: 40px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.stat-num {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
  color: var(--ink);
}
.stat-num span { color: var(--accent); }
.stat-lbl { font-size: 0.75rem; color: var(--muted); }

.about-content .section-label { margin-bottom: 1.5rem; }
.about-headline {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 2.5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.about-headline em { font-style: italic; color: var(--accent); }

.about-body {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.skills-grid {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 2rem;
}
.skill-pill {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  border: 1px solid var(--rule);
  color: var(--muted);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.skill-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* ── Testimonials ── */
.testimonials { background: var(--ink); }
.testimonials .section-label { color: rgba(177,4,200,0.8); }
.testimonials .section-label::before { background: rgba(177,4,200,0.8); }

.testimonials-headline {
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 900;
  color: white;
  letter-spacing: -0.03em;
  margin-bottom: 3rem;
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testi-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 2rem;
  transition: background 0.3s, border-color 0.3s;
}
.testi-card:hover {
  background: rgba(177,4,200,0.06);
  border-color: rgba(177,4,200,0.25);
}

.testi-quote {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.testi-quote::before { content: '\201C'; color: var(--accent); font-size: 1.4rem; line-height: 0; vertical-align: -0.4em; margin-right: 0.2em; }

.testi-author { display: flex; align-items: center; gap: 0.75rem; }
.testi-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #5c0c8f);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; color: white; font-weight: 600;
  flex-shrink: 0;
}
.testi-name {
  font-size: 0.85rem; font-weight: 500;
  color: white;
}
.testi-role { font-size: 0.75rem; color: rgba(255,255,255,0.4); }

/* ── CTA ── */
.cta-section {
  text-align: center;
  padding: 8rem 4rem;
  position: relative;
  overflow: hidden;
}

.cta-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, var(--accent-dim) 0%, transparent 70%);
}

.cta-headline {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  position: relative;
}
.cta-headline em { font-style: italic; color: var(--accent); }

.cta-sub {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  position: relative;
}

.cta-actions {
  display: flex; gap: 1rem; justify-content: center;
  position: relative;
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Responsive (basic) ── */
@media (max-width: 900px) {
  nav { padding: 1.25rem 1.5rem; }
  .nav-links { display: none; }
  section { padding: 4rem 1.5rem; }
  .hero { grid-template-columns: 1fr; padding: 6rem 1.5rem 3rem; }
  .hero-visual { display: none; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-row: auto; }
  .about { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual { height: 260px; }
  .testi-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 1.5rem; text-align: center; }
}
