/* ============================================================
   MATRUKA PROJECT PAGE — FULLY RESPONSIVE CSS
   Root values identical to portfolio
   ============================================================ */

/* ===== ROOT ===== */
:root {
  --color-primary: #2d2d2d;
  --color-accent: #6c797b;
  --color-bg: #000;
  --color-surface: #000;
  --color-text: #fff;
  --color-text-muted: #9ca3af;
  --color-border: #2d3748;
  --font-main: "Syne", sans-serif;
  --font-mono: "DM Mono", monospace;
  --fw-regular: 300;
  --fw-medium: 500;
  --fw-bold: 700;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --radius: 12px;
  --color-cream: #f8f7f3;
  --color-light: #f0f0f0;
  --color-matruka: #4a7c59;
  --color-matruka-soft: rgba(74, 124, 89, 0.15);
  --color-matruka-border: rgba(74, 124, 89, 0.35);
}

/* ===== BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
a { color: inherit; text-decoration: none; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  cursor: none;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }

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

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--color-matruka), #7ab893);
  z-index: 9999; transition: width 0.1s linear;
}

/* ===== CURSOR ===== */
.cursor {
  position: fixed; width: 10px; height: 10px; background: #fff;
  border-radius: 50%; pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.25s, height 0.25s, background 0.25s;
  mix-blend-mode: difference;
}
.cursor-ring {
  position: fixed; width: 36px; height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 50%;
  pointer-events: none; z-index: 9997; transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s; mix-blend-mode: difference;
}

/* ===== LAYOUT ===== */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 500;
  padding: 14px 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1200px; margin: 0 auto; padding: 0 40px;
}

.nav-logo {
  font-family: var(--font-mono); font-size: 0.88rem; font-weight: 400; color: #fff;
  display: flex; align-items: center; gap: 4px; flex-shrink: 0;
}
.nav-logo-bracket { color: var(--color-accent); }

.nav-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  padding: 8px 14px; border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s; white-space: nowrap;
}
.nav-back:hover { color: #fff; border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.05); }
.nav-back svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }

.nav-links-right { display: flex; align-items: center; gap: 8px; }

.nav-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 0.76rem; font-weight: 400;
  padding: 8px 16px; border-radius: 8px;
  transition: all 0.22s; cursor: pointer; border: none; white-space: nowrap;
}
.nav-btn svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }

.btn-ghost {
  background: transparent; color: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.btn-ghost:hover { background: rgba(255,255,255,0.07); color: #fff; border-color: rgba(255,255,255,0.25); }

.btn-green {
  background: var(--color-matruka); color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 4px 16px rgba(74, 124, 89, 0.3);
}
.btn-green:hover { background: #3d6b4c; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(74,124,89,0.4); }

/* ===== HERO ===== */
.project-hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  position: relative; overflow: hidden;
  padding-top: 90px; /* clears fixed navbar — key fix */
  padding-bottom: 80px;
  /* REMOVED: margin-left: -160px — this was the main layout bug */
}

.project-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 70% 50%, rgba(74,124,89,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 10% 80%, rgba(74,124,89,0.07) 0%, transparent 60%),
    #060a07;
  z-index: 0;
}

.hero-grid-bg {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    repeating-linear-gradient(to right, rgba(74,124,89,0.06) 1px, transparent 1px),
    repeating-linear-gradient(to bottom, rgba(74,124,89,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: gridDrift 24s linear infinite;
}

@keyframes gridDrift {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(48px, 48px); }
}

.hero-content {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: 1fr 440px;
  gap: 56px; align-items: end;
}

/* hero left */
.hero-eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 300;
  color: var(--color-accent); letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 24px;
  opacity: 0; animation: fadeUp 0.7s ease 0.2s forwards;
}
.hero-eyebrow::before {
  content: ''; display: block; width: 28px; height: 1px;
  background: var(--color-accent); flex-shrink: 0;
}

.project-title {
  font-size: clamp(3.2rem, 8vw, 8rem);
  font-weight: 900; line-height: 0.88; letter-spacing: -0.04em;
  opacity: 0; animation: fadeUp 0.8s ease 0.3s forwards;
}
.project-title .title-solid { color: #fff; display: block; }
.project-title .title-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(74, 124, 89, 0.7);
  display: block;
}

.hero-tagline {
  font-family: var(--font-mono); font-size: 0.95rem; font-weight: 300;
  color: rgba(255, 255, 255, 0.55); line-height: 1.75;
  margin-top: 24px; max-width: 440px;
  opacity: 0; animation: fadeUp 0.8s ease 0.5s forwards;
}

.hero-cta-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  margin-top: 36px;
  opacity: 0; animation: fadeUp 0.8s ease 0.65s forwards;
}

/* Buttons */
.cta-primary {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-main); font-weight: 600; font-size: 0.9rem;
  background: var(--color-matruka); color: #fff;
  padding: 14px 30px; border-radius: 10px; border: none; cursor: pointer;
  box-shadow: 0 6px 24px rgba(74, 124, 89, 0.35); transition: all 0.25s;
}
.cta-primary:hover { background: #3d6b4c; transform: translateY(-2px); box-shadow: 0 12px 36px rgba(74,124,89,0.5); }
.cta-primary svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }

.cta-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-weight: 300; font-size: 0.85rem;
  background: transparent; color: rgba(255, 255, 255, 0.7);
  padding: 13px 26px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.25s; cursor: pointer;
}
.cta-secondary:hover { color: #fff; border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.05); transform: translateY(-2px); }
.cta-secondary svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }

/* hero meta card */
.hero-meta-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px; padding: 28px;
  opacity: 0; animation: fadeRight 0.9s ease 0.5s forwards;
  position: relative; overflow: hidden;
}
.hero-meta-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-matruka), transparent);
}

.meta-row {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.meta-row:last-child { border-bottom: none; padding-bottom: 0; }
.meta-row:first-child { padding-top: 0; }

.meta-label {
  font-family: var(--font-mono); font-size: 0.63rem; font-weight: 300;
  color: var(--color-accent); letter-spacing: 0.12em; text-transform: uppercase;
}
.meta-value {
  font-family: var(--font-mono); font-size: 0.85rem; font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
}
.meta-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.meta-tag {
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 300;
  padding: 3px 10px; border-radius: 999px;
  background: var(--color-matruka-soft); border: 1px solid var(--color-matruka-border);
  color: #7ab893;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeRight {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ===== SCROLL HINT ===== */
.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 4; opacity: 0; animation: fadeUp 0.8s ease 1s forwards;
}
.scroll-hint span {
  font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.35);
}
.scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, rgba(74,124,89,0.6), transparent);
  animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }

/* ===== DIVIDER ===== */
.section-sep { border: none; border-top: 1px solid rgba(255,255,255,0.06); margin: 0; }

/* ===== SECTION BASE ===== */
.proj-section { padding: 100px 0; }
.proj-section-light { padding: 100px 0; background: var(--color-cream); color: #111; }

.section-label {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 300;
  color: var(--color-accent); letter-spacing: 0.12em; text-transform: uppercase;
  display: block; margin-bottom: 16px;
}
.section-label-dark {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 300;
  color: #888; letter-spacing: 0.12em; text-transform: uppercase;
  display: block; margin-bottom: 16px;
}
.section-heading {
  font-size: clamp(1.9rem, 4vw, 3.2rem); font-weight: 800;
  line-height: 1.05; letter-spacing: -0.02em;
}

/* ===== REVEAL ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ===== OVERVIEW ===== */
.overview-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: start; margin-top: 56px;
}
.overview-text p {
  font-family: var(--font-mono); font-weight: 300; font-size: 0.95rem;
  line-height: 1.8; color: rgba(255,255,255,0.75); margin-bottom: 20px;
}
.overview-text p:last-child { margin-bottom: 0; }
.highlight-text { color: rgba(255,255,255,0.95) !important; font-size: 1.05rem !important; line-height: 1.75 !important; }

.overview-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.stat-box {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px; padding: 28px 24px;
  display: flex; flex-direction: column; gap: 6px;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.stat-box:hover { background: rgba(74,124,89,0.07); border-color: rgba(74,124,89,0.25); transform: translateY(-3px); }
.stat-box-num { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; color: #fff; line-height: 1; letter-spacing: -0.03em; }
.stat-box-label { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 300; color: var(--color-text-muted); letter-spacing: 0.06em; }

/* ===== PROBLEM / SOLUTION ===== */
.ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 56px; }
.ps-card { padding: 44px 36px; position: relative; overflow: hidden; }
.ps-card-problem { background: #060606; border: 1px solid rgba(255,255,255,0.07); border-radius: 20px 0 0 20px; }
.ps-card-solution { background: rgba(74,124,89,0.08); border: 1px solid rgba(74,124,89,0.2); border-radius: 0 20px 20px 0; }
.ps-card-solution::before {
  content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, transparent, var(--color-matruka), transparent);
}
.ps-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 24px; }
.ps-icon-problem { background: rgba(255,80,80,0.08); border: 1px solid rgba(255,80,80,0.15); }
.ps-icon-solution { background: var(--color-matruka-soft); border: 1px solid var(--color-matruka-border); }
.ps-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 20px; color: #fff; }
.ps-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.ps-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-family: var(--font-mono); font-size: 0.83rem; font-weight: 300;
  color: rgba(255,255,255,0.65); line-height: 1.6;
}
.ps-list li::before { content: ''; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; margin-top: 7px; }
.ps-card-problem .ps-list li::before { background: rgba(255,100,100,0.6); }
.ps-card-solution .ps-list li::before { background: var(--color-matruka); }

/* ===== FEATURES ===== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 56px; }
.feature-card {
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px; padding: 32px 28px;
  display: flex; flex-direction: column; gap: 16px;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
  position: relative; overflow: hidden;
}
.feature-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(74,124,89,0.04) 0%, transparent 60%);
  pointer-events: none; border-radius: 16px; opacity: 0; transition: opacity 0.3s;
}
.feature-card:hover { background: rgba(74,124,89,0.06); border-color: rgba(74,124,89,0.22); transform: translateY(-4px); }
.feature-card:hover::after { opacity: 1; }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--color-matruka-soft); border: 1px solid var(--color-matruka-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; flex-shrink: 0;
}
.feature-card h3 { font-size: 1rem; font-weight: 700; color: rgba(255,255,255,0.95); line-height: 1.3; }
.feature-card p { font-family: var(--font-mono); font-size: 0.82rem; font-weight: 300; color: var(--color-text-muted); line-height: 1.65; }
.feature-tag {
  display: inline-block; font-family: var(--font-mono); font-size: 0.65rem; font-weight: 300;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.45); margin-top: auto; letter-spacing: 0.05em;
}

/* ===== TECH STACK ===== */
.tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin-top: 56px; }
.tech-card {
  background: #fff; border: 1px solid rgba(0,0,0,0.07); border-radius: 14px; padding: 28px 20px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.tech-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.1); border-color: rgba(74,124,89,0.3); }
.tech-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(0,0,0,0.04); border: 1px solid rgba(0,0,0,0.07);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.tech-name { font-weight: 700; font-size: 0.9rem; color: #111; }
.tech-desc { font-family: var(--font-mono); font-size: 0.74rem; font-weight: 300; color: #666; line-height: 1.6; }

/* ===== ARCHITECTURE ===== */
.arch-diagram {
  margin-top: 56px;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px; padding: 40px 32px; position: relative; overflow: hidden;
}
.arch-diagram::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-matruka), transparent);
}
.arch-layers { display: flex; flex-direction: column; gap: 2px; }
.arch-layer {
  display: grid; grid-template-columns: 80px 1fr;
  align-items: center; gap: 20px; padding: 18px 20px;
  border-radius: 12px; border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}
.arch-layer-ai { background: rgba(74,124,89,0.06); border-color: rgba(74,124,89,0.15); }
.arch-layer-badge {
  font-family: var(--font-mono); font-size: 0.63rem; font-weight: 400;
  color: var(--color-accent); letter-spacing: 0.1em; text-transform: uppercase; text-align: center;
}
.arch-layer-items { display: flex; flex-wrap: wrap; gap: 8px; }
.arch-pill {
  font-family: var(--font-mono); font-size: 0.76rem; font-weight: 300;
  padding: 6px 14px; border-radius: 8px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.75);
}
.arch-layer-ai .arch-pill { background: var(--color-matruka-soft); border-color: var(--color-matruka-border); color: #7ab893; }
.arch-arrow { display: flex; justify-content: center; align-items: center; height: 24px; color: rgba(255,255,255,0.15); font-size: 1rem; }

/* ===== CHALLENGES ===== */
.challenges-list { display: flex; flex-direction: column; gap: 2px; margin-top: 56px; }
.challenge-item {
  display: grid; grid-template-columns: 56px 1fr 1fr;
  gap: 36px; align-items: start; padding: 36px;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px; transition: background 0.25s, border-color 0.25s;
}
.challenge-item:hover { background: rgba(74,124,89,0.05); border-color: rgba(74,124,89,0.15); }
.challenge-num { font-family: var(--font-mono); font-size: 2rem; font-weight: 900; color: rgba(74,124,89,0.4); line-height: 1; letter-spacing: -0.04em; }
.challenge-problem h4 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; color: rgba(255,255,255,0.9); }
.challenge-problem p { font-family: var(--font-mono); font-size: 0.82rem; font-weight: 300; color: rgba(255,255,255,0.5); line-height: 1.65; }
.challenge-solution h4 { font-size: 0.72rem; font-weight: 400; font-family: var(--font-mono); color: var(--color-matruka); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; }
.challenge-solution p { font-family: var(--font-mono); font-size: 0.82rem; font-weight: 300; color: rgba(255,255,255,0.6); line-height: 1.65; }

/* ===== SCREENSHOTS ===== */
.screens-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.screen-card {
  border-radius: 14px; overflow: hidden; border: 1px solid rgba(0,0,0,0.1);
  background: #e8e8e2; aspect-ratio: 4/3; position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}
.screen-card:hover { transform: translateY(-6px) scale(1.01); box-shadow: 0 20px 50px rgba(0,0,0,0.15); }
.screen-card img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85); }
.screen-label {
  position: absolute; bottom: 12px; left: 12px;
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 400;
  background: rgba(0,0,0,0.72); color: #fff; padding: 4px 10px;
  border-radius: 6px; backdrop-filter: blur(8px);
}

/* ===== CTA ===== */
.cta-section {
  padding: 100px 0;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(74,124,89,0.12) 0%, transparent 70%), #050905;
  text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
  content: 'MATRUKA';
  position: absolute; bottom: -60px; left: 50%; transform: translateX(-50%);
  font-size: 18vw; font-weight: 900; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(74,124,89,0.08);
  white-space: nowrap; pointer-events: none; user-select: none;
}
.cta-inner { position: relative; z-index: 2; }
.cta-eyebrow {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 300;
  color: var(--color-matruka); letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 20px; display: block;
}
.cta-heading { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 900; line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 20px; }
.cta-heading .outline { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.5); }
.cta-sub { font-family: var(--font-mono); font-size: 0.9rem; font-weight: 300; color: rgba(255,255,255,0.45); margin-bottom: 44px; line-height: 1.7; }
.cta-buttons { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.cta-btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-main); font-weight: 600; font-size: 0.95rem;
  background: var(--color-matruka); color: #fff;
  padding: 16px 40px; border-radius: 12px;
  box-shadow: 0 8px 32px rgba(74,124,89,0.4); transition: all 0.25s;
}
.cta-btn-primary:hover { background: #3d6b4c; transform: translateY(-3px); box-shadow: 0 16px 48px rgba(74,124,89,0.55); }
.cta-btn-primary svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.cta-btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-weight: 300; font-size: 0.88rem;
  background: transparent; color: rgba(255,255,255,0.65);
  padding: 15px 36px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.15); transition: all 0.25s;
}
.cta-btn-ghost:hover { color: #fff; border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.05); transform: translateY(-3px); }
.cta-btn-ghost svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ===== FOOTER ===== */
.project-footer { background: var(--color-cream); padding: 28px 0; border-top: 1px solid rgba(0,0,0,0.08); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-text { font-family: var(--font-mono); font-size: 0.76rem; font-weight: 300; color: #777; }
.footer-back {
  font-family: var(--font-mono); font-size: 0.76rem; font-weight: 400; color: #444;
  padding: 8px 16px; border: 1px solid rgba(0,0,0,0.12); border-radius: 8px; transition: all 0.2s;
}
.footer-back:hover { background: rgba(0,0,0,0.05); color: #111; transform: translateY(-1px); }
.nav-link-active { color: #fff !important; }

/* =================================================================
   RESPONSIVE BREAKPOINTS — comprehensive, mobile-first adjustments
   ================================================================= */

/* ── Tablet landscape (≤ 1100px) ── */
@media (max-width: 1100px) {
  .hero-content { grid-template-columns: 1fr 360px; gap: 40px; }
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Tablet portrait (≤ 900px) ── */
@media (max-width: 900px) {
  /* Hero: stack vertically */
  .hero-content { grid-template-columns: 1fr; gap: 40px; align-items: start; }
  .hero-meta-card {
    max-width: 100%;
    animation: fadeUp 0.9s ease 0.5s forwards; /* swap to fadeUp, no translateX */
  }

  /* Overview */
  .overview-grid { grid-template-columns: 1fr; gap: 48px; }

  /* Problem / Solution */
  .ps-grid { grid-template-columns: 1fr; }
  .ps-card-problem { border-radius: 20px 20px 0 0; }
  .ps-card-solution { border-radius: 0 0 20px 20px; }
  .ps-card-solution::before { display: none; }

  /* Features 2-col */
  .features-grid { grid-template-columns: repeat(2, 1fr); }

  /* Tech 2-col */
  .tech-grid { grid-template-columns: repeat(2, 1fr); }

  /* Screens 2-col */
  .screens-grid { grid-template-columns: repeat(2, 1fr); }

  /* Challenges: collapse 3-col → num + text columns */
  .challenge-item { grid-template-columns: 48px 1fr; gap: 20px 24px; }
  .challenge-solution { grid-column: 2; }

  /* Architecture: compact badge column */
  .arch-layer { grid-template-columns: 64px 1fr; gap: 14px; }
}

/* ── Mobile landscape / large phones (≤ 768px) ── */
@media (max-width: 768px) {
  .cursor, .cursor-ring { display: none; }
  body { cursor: auto; }

  .container { padding: 0 20px; }
  .nav-inner  { padding: 0 20px; }

  /* Navbar: hide "Back" text, keep icon */
  .nav-back .nav-back-label { display: none; }
  .nav-back { padding: 8px 10px; gap: 0; }

  /* Shorten nav buttons */
  .nav-btn { padding: 7px 11px; font-size: 0.7rem; gap: 5px; }

  /* Section padding */
  .proj-section, .proj-section-light, .cta-section { padding: 72px 0; }

  /* Hero */
  .project-title { font-size: clamp(2.8rem, 11vw, 5rem); }
  .hero-tagline  { font-size: 0.88rem; max-width: 100%; }
  .hero-cta-row  { gap: 10px; }
  .cta-primary   { padding: 12px 22px; font-size: 0.85rem; }
  .cta-secondary { padding: 11px 18px; font-size: 0.8rem; }

  /* Features: 1-col */
  .features-grid { grid-template-columns: 1fr; }

  /* Screens: 1-col */
  .screens-grid { grid-template-columns: 1fr; }

  /* Tech stays 2-col on tablets */

  /* Challenges: full single-col */
  .challenge-item { grid-template-columns: 1fr; gap: 16px; padding: 28px 24px; }
  .challenge-num { font-size: 1.2rem; }
  .challenge-solution { grid-column: 1; }

  /* Architecture: badge above pills */
  .arch-layer { grid-template-columns: 1fr; gap: 10px; }
  .arch-layer-badge { text-align: left; }
  .arch-diagram { padding: 28px 20px; }

  /* PS cards */
  .ps-card { padding: 32px 24px; }

  /* CTA: stack buttons */
  .cta-buttons { flex-direction: column; align-items: stretch; }
  .cta-btn-primary, .cta-btn-ghost { justify-content: center; padding: 14px 24px; }
}

/* ── Small phones (≤ 480px) ── */
@media (max-width: 480px) {
  /* Navbar: hide back link (footer has it) */
  .nav-back { display: none; }
  .nav-logo { font-size: 0.78rem; }
  .nav-btn  { padding: 7px 10px; font-size: 0.68rem; }

  /* Hero */
  .project-hero  { padding-top: 80px; padding-bottom: 56px; }
  .project-title { font-size: clamp(2.6rem, 14vw, 4rem); }
  .hero-eyebrow  { font-size: 0.62rem; }
  .hero-tagline  { font-size: 0.84rem; margin-top: 16px; }

  /* CTA row: stack & stretch */
  .hero-cta-row { flex-direction: column; align-items: stretch; }
  .cta-primary, .cta-secondary { justify-content: center; width: 100%; }

  /* Meta card */
  .hero-meta-card { padding: 20px 16px; }
  .meta-value { font-size: 0.8rem; }

  /* Overview stats always 2-col */
  .overview-stats { grid-template-columns: 1fr 1fr; }

  /* Sections tighter */
  .proj-section, .proj-section-light, .cta-section { padding: 56px 0; }

  /* Tech: 1-col */
  .tech-grid { grid-template-columns: 1fr; }

  /* Feature cards */
  .feature-card { padding: 24px 20px; }

  /* PS cards */
  .ps-card { padding: 28px 18px; }

  /* Architecture pills smaller */
  .arch-pill { font-size: 0.7rem; padding: 5px 10px; }

  /* Stat box */
  .stat-box { padding: 20px 16px; }

  /* Hide scroll hint (overlaps on very small) */
  .scroll-hint { display: none; }

  /* CTA watermark */
  .cta-section::before { font-size: 24vw; }
}

/* ── Landscape orientation on short viewports ── */
@media (max-height: 500px) and (orientation: landscape) {
  .project-hero { min-height: auto; padding-top: 80px; padding-bottom: 48px; }
  .scroll-hint  { display: none; }
}
