/* ============================================================
   PORTFOLIO — Projects Grid
   ============================================================ */

.projects { background: var(--offwhite); }
.projects-eyebrow { color: var(--burgundy); }

.projects h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(32px, 4vw, 44px);
  color: var(--navy);
  margin-bottom: 56px;
}

/* ── Featured Projects — Horizontal Cards ── */

.featured-projects {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 64px;
}

.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(13, 27, 42, 0.08);
  transition: box-shadow 0.3s;
}

.featured-card:hover {
  box-shadow: 0 12px 40px rgba(13, 27, 42, 0.14);
}

.featured-card-image {
  position: relative;
  overflow: hidden;
}

.featured-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  transition: transform 0.4s;
}

.featured-card:hover .featured-card-image img {
  transform: scale(1.03);
}

.featured-card-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.featured-card-content h3 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(22px, 2.5vw, 28px);
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
}

.featured-card-content > p {
  font-size: 15px;
  color: var(--charcoal);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Stats row */
.featured-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.featured-stat {
  flex: 1;
  background: rgba(107, 39, 55, 0.06);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.featured-stat-value {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(20px, 2vw, 26px);
  color: var(--burgundy);
  font-weight: 700;
  line-height: 1.2;
}

.featured-stat-label {
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  color: var(--charcoal);
  letter-spacing: 0.5px;
}

/* AI Summary panel */
.featured-summary {
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s;
  max-height: 0;
  opacity: 0;
}

.featured-summary[hidden] {
  display: block !important;
  max-height: 0;
  opacity: 0;
}

.featured-summary.is-open {
  max-height: 600px;
  opacity: 1;
}

.featured-summary-inner {
  background: var(--white);
  border: 1px solid rgba(13, 27, 42, 0.1);
  border-radius: 10px;
  padding: 28px;
  margin-bottom: 24px;
}

.featured-summary-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.featured-summary-icon {
  color: var(--burgundy);
}

.featured-summary-label {
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--burgundy);
}

.featured-summary-hook {
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  color: var(--navy);
  line-height: 1.7;
  font-weight: 400;
  margin-bottom: 16px;
}

.featured-summary-divider {
  border: none;
  border-top: 1px solid rgba(13, 27, 42, 0.08);
  margin: 0 0 16px;
}

.featured-summary-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.featured-summary-bullets li {
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  color: var(--charcoal);
  line-height: 1.7;
  padding-left: 16px;
  position: relative;
}

.featured-summary-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--burgundy);
}

/* Action buttons */
.featured-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.btn-summarise {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: 1px solid rgba(13, 27, 42, 0.15);
  border-radius: 8px;
  background: var(--white);
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.btn-summarise:hover {
  border-color: var(--burgundy);
  background: rgba(107, 39, 55, 0.04);
}

.btn-summarise-icon {
  flex-shrink: 0;
}

.btn-case-study {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 8px;
  background: var(--amber);
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.btn-case-study:hover {
  background: #d4942a;
  transform: translateY(-2px);
}

/* ── Secondary Projects — Compact Grid ── */

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}

.project-card {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 4px 24px rgba(13, 27, 42, 0.08);
  transition: transform 0.25s, box-shadow 0.25s;
  text-decoration: none;
  color: inherit;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(13, 27, 42, 0.14);
}

.project-card-image {
  height: 240px;
  overflow: hidden;
}

.project-card-image img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  transition: transform 0.4s;
}

.project-card:hover .project-card-image img {
  transform: scale(1.04);
}

.project-card-body { padding: 32px; }

.project-card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.project-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(107, 39, 55, 0.1);
  color: var(--burgundy);
}

.project-tag.industry {
  background: rgba(232, 168, 56, 0.15);
  color: #a0720f;
}

.project-card-body h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
}

.project-card-body p {
  font-size: 15px;
  color: var(--charcoal);
  line-height: 1.7;
  margin-bottom: 24px;
}

.project-card-link {
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--burgundy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.project-card:hover .project-card-link { gap: 10px; }

/* Disabled state */
.project-card.coming-soon { cursor: default; }
.project-card.coming-soon:hover {
  transform: none;
  box-shadow: 0 4px 24px rgba(13, 27, 42, 0.08);
}
.project-card.coming-soon:hover .project-card-image img { transform: none; }

.coming-soon-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--neutral-400);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials { background: var(--navy); overflow: hidden; }
.testimonials-eyebrow { color: var(--amber); }

.testimonials h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(32px, 4vw, 44px);
  color: var(--white);
  margin-bottom: 56px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}

.testimonial-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 40px 32px;
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232,168,56,0.25);
  background: rgba(255,255,255,0.06);
}

.testimonial-quote-mark {
  font-family: 'DM Serif Display', serif;
  font-size: 64px;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 8px;
  opacity: 0.6;
}

.testimonial-text {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  line-height: 1.85;
  margin-bottom: 32px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(232,168,56,0.3);
}

.testimonial-author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial-name {
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
}

.testimonial-role {
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.4);
}

/* ============================================================
   CURSOR FOLLOWER
   ============================================================ */
.cursor-follower {
  position: fixed;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--amber);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: translate(-50%, -50%) scale(1);
  transition: width 0.35s cubic-bezier(0.23,1,0.32,1),
              height 0.35s cubic-bezier(0.23,1,0.32,1),
              opacity 0.25s,
              background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  mix-blend-mode: difference;
}

.cursor-follower.visible { opacity: 1; }

.cursor-follower.expanded {
  width: 80px;
  height: 80px;
  mix-blend-mode: normal;
  background: var(--amber);
}

.cursor-follower-label {
  font-family: 'Lato', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--navy);
  opacity: 0;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.cursor-follower.expanded .cursor-follower-label { opacity: 1; }

@media (hover: none) {
  .cursor-follower { display: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .featured-card {
    grid-template-columns: 1fr;
  }
  .featured-card-image {
    min-height: 240px;
  }
  .featured-card-content {
    padding: 28px;
  }
  .featured-stats {
    flex-direction: column;
    gap: 8px;
  }
  .featured-stat {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
  }
  .featured-actions {
    flex-direction: column;
  }
  .projects-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .featured-card-content {
    padding: 32px;
  }
  .featured-stat-value {
    font-size: 20px;
  }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
}
