/* ── WORK.CSS — Portfolio grid & project pages ── */

/* ── WORK GRID ── */
.work-hero {
  background: var(--white);
  padding: calc(var(--nav-h) + 3rem) var(--pad-x) 3rem;
  border-bottom: 2px solid var(--bg);
}
.work-hero-inner { max-width: 960px; margin: 0 auto; }
.work-intro {
  font-size: 1.05rem;
  color: var(--neutral);
  font-weight: 300;
  max-width: 580px;
  margin-top: 0.5rem;
}

.projects-section {
  padding: 3rem var(--pad-x) 5rem;
  background: var(--bg);
}
.projects-inner { max-width: 960px; margin: 0 auto; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.project-card {
  background: var(--white);
  border-top: 4px solid var(--primary);
  padding: 2rem 1.75rem;
  position: relative;
  text-decoration: none;
  display: block;
  transition: transform 0.2s, box-shadow 0.2s;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(10,116,218,0.11);
}

.project-number {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 700;
  color: rgba(10,116,218,0.08);
  line-height: 1;
  user-select: none;
}

.project-tag {
  font-family: var(--font-title);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  background: var(--primary);
  padding: 0.25rem 0.65rem;
  display: inline-block;
  margin-bottom: 1rem;
}

.project-title {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
  line-height: 1.2;
}

.project-desc {
  font-size: 0.88rem;
  color: var(--neutral);
  font-weight: 300;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.project-link {
  font-family: var(--font-title);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1.5px solid var(--primary);
  padding-bottom: 1px;
}

/* ── PROJECT CASE STUDY PAGE ── */
.proj-hero {
  background: var(--primary);
  padding: calc(var(--nav-h) + 3rem) var(--pad-x) 4rem;
}
.proj-hero-inner { max-width: 860px; margin: 0 auto; }

.proj-back {
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}
.proj-back:hover { color: var(--white); }

.proj-tag {
  font-family: var(--font-title);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  background: var(--cta);
  padding: 0.25rem 0.7rem;
  display: inline-block;
  margin-bottom: 1.25rem;
  border-radius: 2px;
}

.proj-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.proj-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  font-weight: 300;
  max-width: 600px;
}

/* Results bar */
.proj-results {
  background: var(--text);
  padding: 2.5rem var(--pad-x);
}
.proj-results-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}
.result-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.result-number {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--cta);
  line-height: 1;
}
.result-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  font-weight: 300;
  max-width: 160px;
  line-height: 1.4;
}

/* Content sections */
.proj-body {
  padding: 4rem var(--pad-x);
  background: var(--bg);
}
.proj-body-inner {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 4rem;
  align-items: start;
}

.proj-section-label {
  font-family: var(--font-title);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}

.proj-section-content { }

.proj-section-content p {
  font-size: 0.95rem;
  color: var(--neutral);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.proj-section-content h3 {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}

.proj-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.proj-list li {
  font-size: 0.9rem;
  color: var(--neutral);
  font-weight: 300;
  line-height: 1.6;
  padding-left: 1rem;
  position: relative;
}
.proj-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.proj-divider {
  border: none;
  border-top: 1px solid rgba(10,116,218,0.1);
  margin: 3rem 0;
}

.proj-tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.proj-tool-tag {
  font-family: var(--font-title);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.4rem 0.85rem;
  background: var(--white);
  color: var(--neutral);
  border: 1px solid rgba(10,116,218,0.15);
  border-radius: 2px;
}

/* Next project nav */
.proj-nav {
  background: var(--white);
  padding: 2rem var(--pad-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 2px solid var(--bg);
}
.proj-nav a {
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}
.proj-nav a:hover { color: var(--accent); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .proj-body-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .proj-section-label { position: static; }
  .proj-results-inner { gap: 2rem; }
}
@media (max-width: 480px) {
  .projects-grid { grid-template-columns: 1fr; }
}

/* ── SCREENSHOTS GALLERY ── */
.proj-screenshots {
  background: var(--bg);
  padding: 0 var(--pad-x) 4rem;
}

.proj-screenshots-inner {
  max-width: 860px;
  margin: 0 auto;
}

.proj-screenshots .proj-section-label {
  display: block;
  margin-bottom: 1.5rem;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.screenshot-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.screenshot-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
  border: 1px solid rgba(10,116,218,0.1);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: box-shadow 0.2s, transform 0.2s;
}

.screenshot-img:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.14);
  transform: translateY(-2px);
}

.screenshot-caption {
  font-size: 0.82rem;
  color: var(--neutral);
  font-weight: 300;
  font-style: italic;
}

@media (max-width: 600px) {
  .screenshots-grid { grid-template-columns: 1fr; }
}

/* Real image updates */
.screenshot-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top;
  display: block;
  border-radius: 2px;
}

.screenshot-img--contain {
  object-fit: contain;
  background: var(--bg);
  padding: 1rem;
}

/* Narrow 2-col grid for portrait screenshots (chatbot) */
.screenshots-grid--narrow {
  grid-template-columns: repeat(2, minmax(180px, 280px));
}

@media (max-width: 600px) {
  .screenshots-grid--narrow { grid-template-columns: 1fr; }
  .screenshot-img { height: 180px; }
}
