/* ════════════════════════════════
   PORTFOLIO PAGE (Graphical Edition)
   ════════════════════════════════ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── BACKGROUND GRAPHICS ──────── */
.bg-graphics {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.line-art {
  position: absolute;
  width: 40vw;
  opacity: 0.6;
}

.art-1 { top: 10%; right: -5%; transform: rotate(-10deg); }
.art-2 { bottom: 10%; left: -5%; }

/* ── HERO ─────────────────────── */
.portfolio-hero {
  padding: 180px 0 100px;
  text-align: center;
}

.tag-label {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 2rem;
}

.page-title {
  font-family: var(--heading);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 1; /* Tighter line height for two lines */
  color: var(--white);
  margin-bottom: 2.5rem;
  letter-spacing: -2px;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── METRICS GRID ────────────── */
.metrics-section {
  padding-bottom: 100px;
}

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

.metric-card {
  padding: 3rem 2rem;
  text-align: center;
  transition: var(--transition);
}

.m-val {
  font-family: var(--heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.m-label {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 500;
}

/* ── METHODOLOGY ─────────────── */
.methodology { padding: 100px 0; }

.meth-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.meth-text h2 {
  font-family: var(--heading);
  font-size: 2.8rem;
  color: var(--white);
  margin: 1.5rem 0 2rem;
  line-height: 1.1;
}

.meth-text p {
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 2rem;
}

.meth-visual {
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.visual-line {
  width: 100%;
  margin-bottom: 2rem;
  filter: drop-shadow(0 0 10px var(--accent-cyan));
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.stat-row strong {
  font-family: var(--heading);
  font-size: 1.8rem;
  color: var(--accent-cyan);
}

/* ── CASE STUDIES ────────────── */
.case-studies { padding: 80px 0; }
.section-header { margin-bottom: 5rem; text-align: center; }
.section-header h2 { font-family: var(--heading); font-size: 3rem; color: var(--white); }

.study-card { padding: 4rem; margin-bottom: 2.5rem; }
.study-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2rem; }
.study-info h3 { font-size: 1.8rem; color: var(--white); }
.study-meta { color: var(--accent-cyan); font-weight: 700; font-size: 0.85rem; }

/* ── INITIATE HANDSHAKE PORTAL ── */
.portfolio-cta {
  padding: 100px 0;
}

.handshake-portal {
  display: flex;
  align-items: center;
  gap: 4rem;
  padding: 5rem;
}

.handshake-visual {
  flex: 0 0 200px;
}

.portal-svg {
  width: 100%;
  animation: rotate-slow 20s linear infinite;
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.handshake-content h2 {
  font-family: var(--heading);
  font-size: 3.5rem;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.handshake-content p {
  font-size: 1.2rem;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
  max-width: 500px;
}

/* ── RESPONSIVE ──────────────── */
@media (max-width: 1024px) {
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .meth-grid { grid-template-columns: 1fr; }
  .handshake-portal { flex-direction: column; text-align: center; padding: 4rem 2rem; }
  .handshake-content p { margin: 0 auto 2.5rem; }
  .line-art { display: none; }
}

@media (max-width: 576px) {
  .metrics-grid { grid-template-columns: 1fr; }
  .portfolio-hero { padding: 140px 0 60px; }
  .page-title { font-size: 2.5rem; }
  .handshake-content h2 { font-size: 2.2rem; }
  .study-card { padding: 2.5rem 1.5rem; }
  .handshake-visual { flex: 0 0 150px; }
}
