/* =====================================================================
   QUINYX INSIGHTS — CASE STUDY TYPOGRAPHY
   Scoped to .quinyx-project. Sizes follow the shared case-study scale
   in project.css (.case-study); this file only adds Quinyx-specific
   components (impact strip, problem rows, icon feature grid).
   ===================================================================== */

.quinyx-project {
  --font-display: var(--font);

  /* Sizes follow the shared case-study scale in project.css (.case-study) */
  --text-hero:  3rem;                                     /* 48px */
  --text-h2:    1.75rem;                                  /* 28px */
  --text-h3:    1.125rem;                                 /* 18px */
  --text-body:  1.0625rem;                                /* 17px */
  --text-quote: 1.75rem;                                  /* 28px */
  --text-label: 0.75rem;                                  /* 12px */

  --leading-hero:  1.1;
  --leading-h2:    1.2;
  --leading-h3:    1.3;
  --leading-body:  1.65;
  --leading-quote: 1.35;
  --leading-label: 1.4;

  --tracking-hero:  -0.02em;
  --tracking-h2:    -0.01em;
  --tracking-h3:    -0.005em;
  --tracking-quote: -0.01em;
  --tracking-label: 0.08em;

  --prose-max-width:      42em;   /* ~70-75 characters at 18px body */
  --section-gap-desktop:  4rem;
  --section-gap-mobile:   2.5rem;
}

/* ===== HERO ===== */
.quinyx-project .project-hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 600;
  line-height: var(--leading-hero);
  letter-spacing: var(--tracking-hero);
  text-wrap: balance;
}

.quinyx-project .project-subtitle {
  font-size: 1.125rem;
  line-height: var(--leading-body);
}

.quinyx-project .project-label {
  letter-spacing: var(--tracking-label);
}

/* ===== IMPACT STRIP (results-at-a-glance, in the hero) ===== */
.quinyx-project .impact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--divider);
}

.quinyx-project .impact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.quinyx-project .impact-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: var(--tracking-h3);
}

.quinyx-project .impact-label {
  font-size: var(--text-label);
  line-height: var(--leading-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ===== PROBLEM STATEMENT ===== */
.quinyx-project .problem-statement {
  margin-top: 28px;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  overflow: hidden;
}

.quinyx-project .problem-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 20px 24px;
  border-top: 1px solid var(--card-border);
}

.quinyx-project .problem-row:first-child {
  border-top: none;
}

.quinyx-project .problem-label {
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-secondary);
  padding-top: 2px;
}

.quinyx-project .problem-row p {
  font-size: var(--text-body);
  line-height: var(--leading-body);
  max-width: none;
}

@media (max-width: 640px) {
  .quinyx-project .problem-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .quinyx-project .impact-strip {
    gap: 20px;
  }
}

.quinyx-project .meta-label {
  font-size: var(--text-label);
  line-height: var(--leading-label);
  letter-spacing: var(--tracking-label);
}

/* ===== SECTION EYEBROW (heading immediately followed by a big statement) ===== */
.quinyx-project .project-section h2.section-eyebrow {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

/* ===== SECTION STATEMENT (pull-statement, left-aligned with the column) ===== */
.quinyx-project .project-section p.section-statement {
  font-family: var(--font-display);
  font-size: var(--text-quote);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: var(--tracking-quote);
  color: var(--text);
  border-left: 2px solid var(--accent);
  padding-left: 24px;
  margin: 16px 0 32px;
  text-wrap: pretty;
}

/* ===== ICON FEATURE GRID (Solution section: icon + title + body) ===== */
.quinyx-project .icon-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.quinyx-project .icon-feature-card {
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 24px;
}

.quinyx-project .icon-feature-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 202, 202, 0.12);
  color: var(--accent);
  margin-bottom: 16px;
}

.quinyx-project .icon-feature-badge svg {
  width: 20px;
  height: 20px;
}

.quinyx-project .icon-feature-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.quinyx-project .icon-feature-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

@media (max-width: 640px) {
  .quinyx-project .icon-feature-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== SECTION HEADINGS (H2) ===== */
.quinyx-project .project-section {
  padding: var(--section-gap-desktop) 0;
}

.quinyx-project .project-section h2 {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 600;
  line-height: var(--leading-h2);
  letter-spacing: var(--tracking-h2);
  margin-bottom: 20px;
  text-wrap: balance;
}

/* ===== SUB-HEADINGS (H3) ===== */
.quinyx-project .project-section h3,
.quinyx-project .decision-text h3,
.quinyx-project .process-step h3 {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: var(--leading-h3);
  letter-spacing: var(--tracking-h3);
  text-wrap: balance;
}

/* ===== BODY COPY ===== */
.quinyx-project .project-section p,
.quinyx-project .decision-text p,
.quinyx-project .challenge-list li {
  font-size: var(--text-body);
  line-height: var(--leading-body);
  max-width: none;
}

.quinyx-project .project-section p + p {
  margin-top: 1.5em;
}

/* ===== PULL QUOTES / TESTIMONIALS ===== */
.quinyx-project .pull-quote,
.quinyx-project .quote-card blockquote {
  font-size: var(--text-quote);
  font-weight: 500;
  line-height: var(--leading-quote);
  letter-spacing: var(--tracking-quote);
}

.quinyx-project .quote-card cite {
  letter-spacing: var(--tracking-label);
}

/* ===== METADATA / SMALL LABELS ===== */
.quinyx-project .step-number,
.quinyx-project .blueprint-table th,
.quinyx-project .figure-caption,
.quinyx-project .next-project span,
.quinyx-project .prev-project span {
  letter-spacing: var(--tracking-label);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .quinyx-project .project-section {
    padding: var(--section-gap-mobile) 0;
  }

  .quinyx-project .project-hero h1 {
    font-size: 2rem;
  }

  .quinyx-project .project-section p.section-statement {
    font-size: 1.375rem;
    padding-left: 16px;
  }
}
