/* =============================================
   NUVEX — PROJECTS PAGE CSS
   ============================================= */

/* ─── IMPORT BASE VARIABLES ─────────────────── */
@import url('../style.css');

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

/* ═══════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════ */
.prj-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 20% 50%, rgba(6,182,212,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 30%, rgba(139,92,246,0.05) 0%, transparent 55%),
    var(--bg);
}

#heroGrid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.prj-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 140px 24px 100px;
  max-width: 840px;
  gap: 0;
}

/* Eyebrow with lines */
.prj-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}
.eyebrow-line {
  height: 1px;
  width: 60px;
  background: linear-gradient(90deg, transparent, rgba(6,182,212,0.4));
}
.prj-hero-eyebrow .eyebrow-line:last-child {
  background: linear-gradient(270deg, transparent, rgba(6,182,212,0.4));
}
.eyebrow-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}

/* Title */
.prj-hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 32px;
}
.prj-title-line {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(38px, 7vw, 88px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--text);
}
.prj-title-accent {
  background: var(--grad-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
  position: relative;
}
/* Underline shimmer */
.prj-title-accent::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-hero);
  border-radius: 2px;
  opacity: 0.5;
  filter: blur(1px);
  animation: shimmerSlide 3s ease-in-out infinite;
}
@keyframes shimmerSlide {
  0%,100% { opacity: 0.3; transform: scaleX(0.8); }
  50% { opacity: 0.7; transform: scaleX(1); }
}

.prj-hero-sub {
  font-family: var(--font-body);
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text2);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 44px;
}

/* Meta pills */
.prj-hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 60px;
  flex-wrap: wrap;
  justify-content: center;
}
.prj-meta-pill {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text2);
}
.prj-meta-num {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: var(--text);
}
.prj-meta-sep {
  color: var(--text3);
  font-size: 22px;
  line-height: 1;
}

/* Scroll indicator */
.prj-hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text3);
  transition: color 0.3s;
  animation: scrollFloat 3s ease-in-out infinite;
}
.prj-hero-scroll:hover { color: var(--cyan); }
@keyframes scrollFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}
.prj-scroll-icon {
  width: 26px;
  height: 42px;
  border-radius: 13px;
  border: 1.5px solid rgba(6,182,212,0.3);
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.prj-scroll-dot {
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--cyan);
  animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot {
  0%,100% { transform: translateY(0); opacity: 1; }
  80% { transform: translateY(12px); opacity: 0; }
}

/* Decorative hero elements */
.hero-decoration {
  position: absolute;
  pointer-events: none;
}
.hero-deco-1 {
  width: 500px; height: 500px;
  border-radius: 50%;
  top: -100px; right: -200px;
  border: 1px solid rgba(6,182,212,0.06);
  animation: decoRotate 50s linear infinite;
}
.hero-deco-2 {
  width: 700px; height: 700px;
  border-radius: 50%;
  bottom: -200px; left: -250px;
  border: 1px solid rgba(139,92,246,0.04);
  animation: decoRotate 70s linear infinite reverse;
}
@keyframes decoRotate {
  to { transform: rotate(360deg); }
}

.prj-hero-number {
  position: absolute;
  bottom: -0.05em;
  right: -0.02em;
  font-family: var(--font-display);
  font-size: clamp(200px, 28vw, 380px);
  font-weight: 800;
  color: rgba(255,255,255,0.015);
  line-height: 1;
  letter-spacing: -0.05em;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}
[data-theme="light"] .prj-hero-number {
  color: rgba(0,0,0,0.02);
}

/* ═══════════════════════════════════════════════
   FEATURED PROJECT — FULL BLEED LAYOUT
   ═══════════════════════════════════════════════ */
.featured-project {
  position: relative;
  background:
    radial-gradient(ellipse 60% 50% at 90% 50%, rgba(6,182,212,0.04) 0%, transparent 60%),
    var(--bg2);
  padding: 140px 0 160px;
  overflow: hidden;
}
.featured-project::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(6,182,212,0.15), transparent);
}

.fp-runway {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
  position: relative;
}

/* Sticky label */
.fp-sticky-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}
.fp-label-text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 5px 14px;
  border: 1px solid rgba(6,182,212,0.2);
  border-radius: 100px;
  background: rgba(6,182,212,0.05);
}
.fp-label-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text3);
}

/* Main card — two-column layout */
.fp-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* ─── VISUAL half ─── */
.fp-visual {
  position: relative;
}
.fp-visual-inner {
  position: relative;
  border-radius: var(--r-xl);
  overflow: visible;
}

/* Fake browser */
.fp-browser {
  background: #0d1117;
  border-radius: 12px;
  border: 1px solid rgba(6,182,212,0.12);
  box-shadow:
    0 40px 100px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.03),
    0 0 60px rgba(6,182,212,0.06);
  overflow: hidden;
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1), box-shadow 0.6s;
}
.fp-browser:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow:
    0 60px 120px rgba(0,0,0,0.7),
    0 0 0 1px rgba(255,255,255,0.04),
    0 0 80px rgba(6,182,212,0.1);
}
.fp-browser-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.fp-browser-dots { display: flex; gap: 5px; }
.fp-browser-dots i {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: block;
}
.fp-browser-url {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255,255,255,0.35);
}
.fp-url-text { color: rgba(255,255,255,0.5); }
.fp-browser-actions { display: flex; gap: 5px; }
.fp-ba-dot {
  width: 16px; height: 16px;
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
}

/* Simulated dashboard */
.fp-browser-content {
  display: flex;
  height: 340px;
}
.sim-sidebar {
  width: 44px;
  background: rgba(255,255,255,0.02);
  border-right: 1px solid rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 12px;
  flex-shrink: 0;
}
.sim-sb-logo {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: linear-gradient(135deg, #06b6d4, #8b5cf6);
}
.sim-sb-nav { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.sim-nav-item {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
}
.sim-nav-active {
  background: rgba(6,182,212,0.15);
  border: 1px solid rgba(6,182,212,0.25);
}
.sim-main {
  flex: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}
.sim-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sim-greeting { display: flex; flex-direction: column; gap: 5px; }
.sim-greeting-line {
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.08);
}
.sim-line-big { width: 140px; height: 9px; background: rgba(255,255,255,0.12); }
.sim-line-sm { width: 80px; }
.sim-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #06b6d4, #ec4899);
}
.sim-cards {
  display: flex;
  gap: 8px;
}
.sim-card {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
}
.sim-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--sc);
  box-shadow: 0 0 8px var(--sc);
}
.sim-card-icon {
  width: 20px; height: 20px;
  border-radius: 5px;
  background: color-mix(in srgb, var(--sc) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--sc) 25%, transparent);
}
.sim-card-lines { display: flex; flex-direction: column; gap: 4px; }
.sim-cl {
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.06);
  width: 60%;
}
.sim-cl-big {
  width: 80%;
  height: 8px;
  background: rgba(255,255,255,0.12);
}
.sim-card-spark {
  height: 24px;
  position: relative;
  overflow: hidden;
}
.sim-chart-area {
  flex: 1;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 8px;
  overflow: hidden;
}
.sim-chart-area canvas {
  width: 100% !important;
  height: 100% !important;
}

/* Floating badges on visual */
.fp-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  backdrop-filter: blur(12px);
  z-index: 5;
  animation: badgeFloat 4s ease-in-out infinite;
}
.fp-badge-1 {
  top: -20px;
  right: -20px;
  animation-delay: 0s;
}
.fp-badge-2 {
  bottom: 30px;
  left: -24px;
  animation-delay: 2s;
}
@keyframes badgeFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.fp-badge svg {
  width: 20px; height: 20px;
  color: var(--green);
  flex-shrink: 0;
}
.fp-badge-2 svg { color: var(--cyan); }
.fp-badge div { display: flex; flex-direction: column; gap: 1px; }
.fp-badge strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.fp-badge span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text3);
}

/* Background canvas on visual */
#projectCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  border-radius: var(--r-xl);
  opacity: 0.5;
}

/* ─── CONTENT half ─── */
.fp-content {
  display: flex;
  flex-direction: column;
}
.fp-content-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.fp-overline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.fp-overline-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--cyan);
}
.fp-overline-sep {
  flex: 1;
  max-width: 40px;
  height: 1px;
  background: rgba(6,182,212,0.3);
}
.fp-overline-cat {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text3);
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 100px;
}

.fp-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 62px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: var(--text);
  margin-bottom: 24px;
}
.fp-title-dim {
  color: var(--text3);
  font-weight: 600;
}

.fp-description {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.5vw, 16.5px);
  line-height: 1.8;
  color: var(--text2);
  margin-bottom: 32px;
  max-width: 50ch;
}

/* Story timeline */
.fp-story {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 32px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  position: relative;
}
/* Vertical line connecting dots */
.fp-story::before {
  content: '';
  position: absolute;
  left: 36px;
  top: 36px;
  bottom: 36px;
  width: 1px;
  background: linear-gradient(to bottom, rgba(6,182,212,0.2), rgba(16,185,129,0.4), rgba(16,185,129,0.15));
}
.fp-story-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 10px 0;
}
.fp-story-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
  margin-top: 3px;
  position: relative;
  z-index: 1;
}
.fp-story-dot-active {
  background: rgba(6,182,212,0.2);
  border-color: var(--cyan);
  box-shadow: 0 0 10px rgba(6,182,212,0.4);
}
.fp-story-dot-success {
  background: rgba(16,185,129,0.2);
  border-color: var(--green);
  box-shadow: 0 0 10px rgba(16,185,129,0.4);
}
.fp-story-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.fp-story-text strong {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.fp-story-text span {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
}

/* Stack */
.fp-stack {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.fp-stack-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text3);
  flex-shrink: 0;
}
.fp-stack-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.fp-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--cyan);
  padding: 4px 12px;
  border: 1px solid rgba(6,182,212,0.2);
  border-radius: 100px;
  background: rgba(6,182,212,0.05);
  transition: all 0.25s;
}
.fp-tag:hover {
  background: rgba(6,182,212,0.1);
  border-color: rgba(6,182,212,0.4);
}

/* Meta row */
.fp-meta {
  display: flex;
  gap: 32px;
  margin-bottom: 36px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.fp-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fp-meta-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text3);
}
.fp-meta-val {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

/* Action buttons */
.fp-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.fp-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  background: var(--grad-violet);
  border-radius: var(--r-md);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s var(--spring);
  box-shadow: 0 0 30px rgba(6,182,212,0.2);
}
.fp-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(6,182,212,0.35);
}
.fp-btn-primary svg { width: 17px; height: 17px; transition: transform 0.3s var(--spring); }
.fp-btn-primary:hover svg { transform: translateX(4px); }

.fp-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border: 1px solid var(--border2);
  border-radius: var(--r-md);
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--spring);
}
.fp-btn-ghost:hover {
  background: var(--surface);
  transform: translateY(-2px);
}
.fp-btn-ghost svg { width: 16px; height: 16px; transition: transform 0.3s var(--spring); }
.fp-expand-btn.open svg { transform: rotate(90deg); }

/* ─── CASE STUDY PANEL ─── */
.fp-case-study {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.8s cubic-bezier(0.16,1,0.3,1);
}
.fp-case-study.open {
  max-height: 1000px;
}
.fcs-inner {
  margin-top: 60px;
  padding: 56px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  position: relative;
}

.fcs-close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s;
}
.fcs-close:hover { color: var(--text); border-color: var(--border2); background: var(--surface2); }
.fcs-close svg { width: 14px; height: 14px; }

.fcs-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  margin-bottom: 48px;
}

.fcs-section-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}
.fcs-col h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.fcs-col p {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text2);
  line-height: 1.75;
}

.fcs-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.fcs-stat {
  padding: 16px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fcs-stat strong {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.fcs-stat span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text3);
}

/* Quote */
.fcs-quote {
  position: relative;
  padding: 32px 40px;
  background: rgba(6,182,212,0.03);
  border: 1px solid rgba(6,182,212,0.12);
  border-radius: var(--r-lg);
}
.fcs-quote-icon {
  position: absolute;
  top: -14px;
  left: 32px;
  width: 28px;
  height: 28px;
  color: var(--cyan);
  background: var(--surface);
  padding: 4px;
  border-radius: 6px;
  border: 1px solid rgba(6,182,212,0.15);
  opacity: 0.6;
}
.fcs-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(15px, 2vw, 20px);
  font-weight: 600;
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.fcs-quote cite {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text3);
  font-style: normal;
}

/* ═══════════════════════════════════════════════
   COMING SOON SECTION
   ═══════════════════════════════════════════════ */
.prj-coming-soon {
  padding: 140px 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.prj-coming-soon::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(6,182,212,0.12), transparent);
}

.pcs-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.pcs-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.pcs-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text3);
}
.pcs-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text3);
  animation: pcsBlip 3s ease-in-out infinite;
}
@keyframes pcsBlip {
  0%,100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); background: var(--cyan); }
}
.pcs-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1.05;
  margin-bottom: 20px;
}
.pcs-sub {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.5vw, 17px);
  color: var(--text2);
  line-height: 1.75;
  max-width: 40ch;
  margin-bottom: 36px;
}
.pcs-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--grad-violet);
  border-radius: var(--r-md);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  width: fit-content;
  transition: all 0.3s var(--spring);
  box-shadow: 0 0 30px rgba(6,182,212,0.15);
}
.pcs-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(6,182,212,0.3);
}
.pcs-btn svg { width: 17px; height: 17px; transition: transform 0.3s var(--spring); }
.pcs-btn:hover svg { transform: translateX(4px); }

/* Stacked ghost cards */
.pcs-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}
.pcs-cards-stack {
  position: relative;
  width: 340px;
  height: 240px;
}
.pcs-ghost-card {
  position: absolute;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  transition: all 0.4s var(--spring);
}
.pcs-ghost-3 {
  height: 200px;
  bottom: 0;
  transform: rotate(-6deg) translateY(12px);
  opacity: 0.3;
}
.pcs-ghost-2 {
  height: 210px;
  bottom: 0;
  transform: rotate(-2.5deg) translateY(6px);
  opacity: 0.5;
}
.pcs-ghost-1 {
  height: 220px;
  bottom: 0;
  transform: rotate(1deg);
  opacity: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pcs-cards-stack:hover .pcs-ghost-3 { transform: rotate(-8deg) translateY(18px); }
.pcs-cards-stack:hover .pcs-ghost-2 { transform: rotate(-3.5deg) translateY(10px); }
.pcs-cards-stack:hover .pcs-ghost-1 { transform: rotate(2deg); }

.pgc-top { display: flex; flex-direction: column; gap: 7px; }
.pgc-line {
  height: 6px;
  border-radius: 3px;
  background: var(--border);
}
.pgc-line-title { width: 60%; height: 12px; }
.pgc-line-sub { width: 40%; }

.pgc-image {
  flex: 1;
  border-radius: var(--r-md);
  background: var(--bg3);
  overflow: hidden;
  position: relative;
}
.pgc-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(6,182,212,0.06) 40%,
    rgba(6,182,212,0.12) 50%,
    rgba(6,182,212,0.06) 60%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: pgcShimmer 2.5s ease-in-out infinite;
}
@keyframes pgcShimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.pgc-tags { display: flex; gap: 6px; }
.pgc-tag {
  height: 18px;
  border-radius: 100px;
  background: var(--border);
}
.pgc-tag:nth-child(1) { width: 44px; }
.pgc-tag:nth-child(2) { width: 56px; }
.pgc-tag:nth-child(3) { width: 38px; }

/* ═══════════════════════════════════════════════
   CTA STRIP (reuse from services)
   ═══════════════════════════════════════════════ */
.svc-cta-strip {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  background: var(--bg2);
}
.cta-strip-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.cta-strip-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(6,182,212,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: ctaGlowPulse 4s ease-in-out infinite;
}
@keyframes ctaGlowPulse {
  0%,100% { opacity: 0.6; transform: translate(-50%,-50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%,-50%) scale(1.1); }
}
.cta-strip-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.1;
}
.cta-strip-sub {
  font-family: var(--font-body);
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text2);
  margin-bottom: 40px;
}
.cta-strip-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-strip-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--grad-violet);
  border-radius: var(--r-md);
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s var(--spring);
  box-shadow: 0 0 40px rgba(6,182,212,0.25);
}
.cta-strip-btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 50px rgba(6,182,212,0.4);
}
.cta-strip-btn-primary svg { width: 18px; height: 18px; transition: transform 0.3s var(--spring); }
.cta-strip-btn-primary:hover svg { transform: translateX(5px); }
.cta-strip-btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 16px 32px;
  border: 1px solid var(--border2);
  border-radius: var(--r-md);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}
.cta-strip-btn-ghost:hover { background: var(--surface2); transform: translateY(-2px); }

/* ═══════════════════════════════════════════════
   REVEAL ANIMATIONS
   ═══════════════════════════════════════════════ */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.reveal-up.visible { opacity: 1; transform: none; }
[data-delay="80"] { transition-delay: 80ms; }
[data-delay="100"] { transition-delay: 100ms; }
[data-delay="160"] { transition-delay: 160ms; }
[data-delay="200"] { transition-delay: 200ms; }
[data-delay="240"] { transition-delay: 240ms; }
[data-delay="300"] { transition-delay: 300ms; }
[data-delay="380"] { transition-delay: 380ms; }

/* ═══════════════════════════════════════════════
   LIGHT MODE OVERRIDES
   ═══════════════════════════════════════════════ */
[data-theme="light"] .fp-browser { background: #1a1f2e; }

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .fp-card { gap: 50px; }
  .fcs-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 900px) {
  .fp-card {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .pcs-inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .fp-badge-1 { top: -10px; right: 0; }
  .fp-badge-2 { bottom: 20px; left: 0; }
  .fcs-inner { padding: 32px; }
}

@media (max-width: 640px) {
  .fp-meta { flex-wrap: wrap; gap: 16px; }
  .fp-story::before { left: 30px; }
  .prj-hero-meta { gap: 12px; }
  .pcs-cards-stack { width: 280px; height: 200px; }
  .prj-hero-number { font-size: 180px; }
  .fp-browser-content { height: 260px; }
  .fcs-stats { grid-template-columns: 1fr 1fr; }
  .featured-project { padding: 80px 0 100px; }
  .prj-coming-soon { padding: 80px 0; }
}

/* ── Cover image (real photo replacing simulated browser) ──────── */

.fp-cover-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 16px;
  overflow: hidden;
}

.fp-cover-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ── Case study: single-column override ───────────────────────── */

.fcs-grid-single {
  grid-template-columns: 1fr;
}

.fcs-grid-single .fcs-col {
  max-width: 680px;
}

/* ── More projects grid ───────────────────────────────────────── */

.prj-more-section {
  padding: 80px 0 100px;
}

.prj-more-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.prj-more-header {
  text-align: center;
  margin-bottom: 48px;
}

.prj-more-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

/* ── Project card ─────────────────────────────────────────────── */

.prj-card {
  background: var(--card-bg, rgba(255,255,255,0.03));
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.prj-card:hover {
  transform: translateY(-4px);
  border-color: rgba(6,182,212,0.3);
}

.prj-card-visual {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: rgba(6,182,212,0.05);
  position: relative;
}

.prj-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@media (min-width: 641px) {
  .prj-card-visual { height: 200px; }
}

.prj-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(6,182,212,0.3);
}

.prj-card-body {
  padding: 24px;
}

.prj-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.prj-card-type {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--accent, #06b6d4);
  font-family: var(--font-mono, 'DM Mono', monospace);
}

.prj-card-year {
  font-size: 11px;
  color: var(--text-muted, rgba(255,255,255,0.35));
  font-family: var(--font-mono, 'DM Mono', monospace);
}

.prj-card-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
  line-height: 1.3;
}

.prj-card-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary, rgba(255,255,255,0.55));
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prj-card-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.prj-card-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(6,182,212,0.08);
  color: var(--accent, #06b6d4);
  border: 1px solid rgba(6,182,212,0.15);
  font-family: var(--font-mono, 'DM Mono', monospace);
}

@media (max-width: 768px) {
  .prj-more-inner { padding: 0 20px; }
  .prj-more-grid  { grid-template-columns: 1fr; gap: 20px; }
  .prj-more-section { padding: 60px 0; }
}

/* ── Card "View Details" button ─────────────────────────────── */

.prj-card { cursor: pointer; }

.prj-card-footer {
  padding: 0 24px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.prj-card-details-btn {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--accent, #06b6d4);
  background: rgba(6,182,212,0.08);
  border: 1px solid rgba(6,182,212,0.2);
  border-radius: 20px;
  padding: 5px 14px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  font-family: var(--font-mono, 'DM Mono', monospace);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}

.prj-card-details-btn:hover {
  background: rgba(6,182,212,0.15);
  border-color: rgba(6,182,212,0.4);
}

/* ── Project detail modal ───────────────────────────────────── */

.prj-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5,5,8,0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.prj-modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

.prj-modal {
  background: var(--card-bg, #0d0d12);
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  border-radius: 20px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1);
  scrollbar-width: thin;
  scrollbar-color: rgba(6,182,212,0.2) transparent;
}

.prj-modal-backdrop.open .prj-modal {
  transform: translateY(0) scale(1);
}

[data-theme="light"] .prj-modal {
  background: #ffffff;
  border-color: rgba(0,0,0,0.08);
}

.prj-modal-close {
  position: sticky;
  top: 16px;
  float: right;
  margin: 16px 16px 0 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border, rgba(255,255,255,0.12));
  background: var(--card-bg, rgba(255,255,255,0.05));
  color: var(--text, #f1f0ff);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
  transition: background 0.2s, border-color 0.2s;
}

.prj-modal-close:hover {
  background: rgba(6,182,212,0.12);
  border-color: rgba(6,182,212,0.3);
}

.prj-modal-body {
  padding: 8px 32px 32px;
  clear: both;
}

.pm-img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 24px;
  background: rgba(6,182,212,0.04);
  display: block;
}

.pm-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.pm-type {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--accent, #06b6d4);
  font-family: var(--font-mono, 'DM Mono', monospace);
}

.pm-year {
  font-size: 11px;
  color: var(--text-muted, rgba(255,255,255,0.35));
  font-family: var(--font-mono, 'DM Mono', monospace);
}

.pm-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 12px;
}

.pm-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary, rgba(255,255,255,0.6));
  margin-bottom: 24px;
}

.pm-story {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 24px;
  border-left: 2px solid rgba(6,182,212,0.2);
  padding-left: 20px;
}

.pm-story-item {
  position: relative;
  padding: 0 0 18px;
}

.pm-story-item:last-child { padding-bottom: 0; }

.pm-story-item::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(6,182,212,0.5);
  border: 2px solid var(--bg, #050508);
}

.pm-story-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--accent, #06b6d4);
  font-family: var(--font-mono, 'DM Mono', monospace);
  display: block;
  margin-bottom: 4px;
}

.pm-story-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary, rgba(255,255,255,0.6));
}

.pm-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.pm-stack-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(6,182,212,0.08);
  color: var(--accent, #06b6d4);
  border: 1px solid rgba(6,182,212,0.15);
  font-family: var(--font-mono, 'DM Mono', monospace);
}

.pm-meta-grid {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.pm-meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pm-meta-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted, rgba(255,255,255,0.35));
  font-family: var(--font-mono, 'DM Mono', monospace);
}

.pm-meta-val {
  font-size: 14px;
  font-weight: 600;
}

.pm-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pm-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 24px;
  background: var(--accent, #06b6d4);
  color: #050508;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s;
}

.pm-btn-primary:hover { opacity: 0.85; }

.pm-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 24px;
  border: 1px solid var(--border, rgba(255,255,255,0.15));
  color: var(--text, #f1f0ff);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.pm-btn-ghost:hover {
  border-color: rgba(6,182,212,0.4);
  background: rgba(6,182,212,0.06);
}

@media (max-width: 480px) {
  .prj-modal-body { padding: 8px 20px 24px; }
  .pm-title { font-size: 22px; }
}

