/* project.css — Shared styles for project detail pages */

/* ── Hero ── */
.project-hero {
  padding: 160px 0 80px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

/* ── Trajectory section with floating photos on the sides ── */
.trajectory-photos-section {
  position: relative;
  overflow: hidden;
  padding: 20px 0 40px;
}

.trajectory-photos-section .project-content {
  position: relative;
  z-index: 2;
}

/* ── Floating Photos anchored to section sides ── */
.project-floating-photos {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.pf-item {
  position: absolute;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  opacity: 0.8;
  width: clamp(150px, 14vw, 260px);
  height: clamp(200px, 19vw, 340px);
  transition: transform 0.3s ease;
}

.pf-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Anchored to corners — mirrors hero visual stack */
.pf-1 {
  top: 8%;
  left: 2%;
  transform: rotate(-5deg);
}

.pf-2 {
  top: 6%;
  right: 2%;
  transform: rotate(4deg);
}

.pf-3 {
  bottom: 6%;
  left: 3%;
  transform: rotate(3deg);
}

.pf-4 {
  bottom: 8%;
  right: 3%;
  transform: rotate(-4deg);
}

/* ── Office/landscape photo as content block ── */
.project-office-photo {
  margin: 40px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16/9;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.project-office-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

@media (max-width: 768px) {
  .project-floating-photos {
    display: none;
  }
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--project-accent, var(--accent));
  display: block;
  margin-bottom: 16px;
}

.project-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 20px;
}

.project-hero .project-subtitle {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--muted);
  max-width: 600px;
}

/* ── Content Container ── */
.project-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ── Back Link ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 32px;
  transition: color 0.3s var(--ease);
}

.back-link:hover {
  color: var(--text);
}

/* ── Section Headings ── */
.project-content h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 20px;
  margin-top: 64px;
}

.project-content h2:first-of-type {
  margin-top: 64px;
}

.project-content>section>p,
.project-content>section p {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 1.2em;
}

/* ── Metric Grid ── */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 40px 0;
}

.metric-card {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow);
}

.metric-card .num {
  display: block;
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 600;
  color: var(--project-accent, var(--accent));
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.metric-card .metric-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted2);
}

/* ── Timeline ── */
.timeline {
  position: relative;
  padding-left: 32px;
  margin: 32px 0 48px 8px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}

.timeline-step {
  position: relative;
  margin-bottom: 32px;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

.timeline-step::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--project-accent, var(--accent));
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--project-accent, var(--accent));
  display: block;
  margin-bottom: 4px;
}

.timeline-step p {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 0;
}

.timeline-step p strong {
  color: var(--text);
  font-weight: 500;
}

/* ── Testimonial ── */
.testimonial {
  background: var(--surface);
  padding: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin: 48px 0;
}

.testimonial p {
  font-family: var(--font-body);
  font-size: 17px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text) !important;
  margin-bottom: 0 !important;
}

.testimonial-cite {
  display: block;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ── Quote Box ── */
.quote-box {
  border-left: 3px solid var(--project-accent, var(--accent));
  padding: 32px 40px;
  background: var(--surface);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 48px 0;
}

.quote-box p {
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text) !important;
  margin-bottom: 0 !important;
}

/* ── Takeaways List ── */
.takeaways-list {
  list-style: none;
  padding: 0;
  margin: 32px 0;
}

.takeaways-list li {
  margin-bottom: 28px;
  padding-left: 20px;
  border-left: 2px solid var(--project-accent, var(--accent));
}

.takeaways-list li h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.takeaways-list li p {
  font-size: 14px !important;
  font-weight: 300;
  color: var(--muted) !important;
  line-height: 1.7;
  margin-bottom: 0 !important;
}

/* ── Photo Gallery ── */
.photo-gallery {
  margin: 48px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.gallery-item.gallery-wide {
  grid-column: 1 / -1;
  aspect-ratio: 2.2/1;
}

.gallery-item.gallery-wide img {
  object-position: center 30%;
}

.gallery-item.gallery-tall {
  aspect-ratio: 3/4;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.03);
}

/* ── Project Logo ── */
.project-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.project-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* ── Project Footer ── */
.project-footer {
  padding: 48px 0 60px;
  margin-top: 80px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.project-footer p {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted2) !important;
  letter-spacing: 0.03em;
  margin-bottom: 0 !important;
}

/* ── Nav overrides for project pages ── */
.project-page #nav {
  background: transparent;
}

.project-page #nav.scrolled {
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .project-content {
    padding: 0 28px;
  }

  .project-hero {
    padding: 120px 0 60px;
  }

  .project-hero h1 {
    font-size: clamp(28px, 8vw, 44px);
  }

  .metric-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .metric-card {
    padding: 20px;
  }

  .metric-card .num {
    font-size: 24px;
  }

  .testimonial,
  .quote-box {
    padding: 28px;
  }

  .quote-box p {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .project-content {
    padding: 0 20px;
  }

  .project-hero h1 {
    font-size: clamp(24px, 8vw, 36px);
  }

  .project-content h2 {
    font-size: 22px;
  }
}


/* ── Custom Cursor Styles ── */
.cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  background: var(--text);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: multiply;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s var(--ease);
}

.cursor-follower {
  position: fixed;
  width: 32px;
  height: 32px;
  border: 1px solid var(--muted2);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.3s var(--ease), opacity 0.3s var(--ease);
}

.cursor.active {
  width: 28px;
  height: 28px;
  background: var(--project-accent, var(--accent));
}

.cursor-follower.active {
  width: 48px;
  height: 48px;
  border-color: var(--project-accent, var(--accent));
  opacity: 0.4;
}

@media (max-width: 768px) {
  body {
    cursor: auto;
  }

  .cursor,
  .cursor-follower {
    display: none;
  }
}