/* Project Details Modern (scoped) */
.pd-modern{
  /* Inherit main site palette (light) */
  --bg: var(--gray-50);
  --surface: var(--white);
  --surface2: var(--gray-100);
  --border: rgba(15, 23, 42, .10);
  --border2: rgba(15, 23, 42, .16);

  /* Use site primary as accent */
  --accent: var(--primary);
  --accent-light: var(--primary-light);
  --accent-glow: rgba(79, 70, 229, .10);

  --text: var(--secondary);
  --muted: var(--gray-600);
  --muted2: var(--gray-500);
  --white: var(--secondary);
  --card-bg: var(--white);

  background: var(--bg);
  color: var(--text);
  font-family: "Sora", system-ui, -apple-system, Segoe UI, Roboto, "Inter", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Safety: make links inherit inside modern area */
.pd-modern a{ color:inherit; text-decoration:none; }

.pd-hero{
  padding:140px 2.5rem 80px;
  max-width:1100px;
  margin:0 auto;
  text-align:center;
  animation:pd-fadeUp .7s ease both;
}
.pd-badge{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  background:var(--surface2);
  border:1px solid var(--border2);
  border-radius:100px;
  padding:.35rem 1rem;
  font-size:.78rem;
  color:var(--accent-light);
  font-weight:500;
  letter-spacing:.04em;
  margin-bottom:1.8rem;
}
.pd-badge-dot{
  width:6px;height:6px;border-radius:50%;
  background:var(--accent);
}
.pd-hero h1{
  font-family:"Instrument Serif", ui-serif, Georgia, serif;
  font-size:clamp(2.6rem, 6vw, 5rem);
  font-weight:400;
  line-height:1.1;
  color:#111827;
  margin-bottom:1.2rem;
  letter-spacing:-.02em;
}
.pd-hero-sub{
  font-size:1.05rem;
  color:var(--muted);
  max-width:650px;
  margin:0 auto;
  line-height:1.7;
  font-weight:300;
}

.pd-hero-image,
.pd-divider-image{
  max-width:1100px;
  margin:0 auto;
  padding:0 2.5rem;
}
.pd-hero-image{ animation:pd-fadeUp .7s .15s ease both; }

.pd-hero-image img{
  width:100%;
  height:520px;
  object-fit:cover;
  border-radius:16px;
  border:1px solid var(--border2);
  display:block;
}
.pd-divider-image img{
  width:100%;
  height:420px;
  object-fit:cover;
  border-radius:16px;
  border:1px solid var(--border);
  display:block;
}

.pd-section{
  max-width:1100px;
  margin:0 auto;
  padding:5rem 2.5rem;
  position:relative;
}
.pd-section-tag{
  font-size:.78rem;
  font-weight:600;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--accent);
  margin-bottom:.6rem;
}
.pd-section-title{
  font-family:"Instrument Serif", ui-serif, Georgia, serif;
  font-size:clamp(2rem, 4vw, 2.8rem);
  font-weight:400;
  color:#111827;
  letter-spacing:-.015em;
  line-height:1.2;
  margin-bottom:.8rem;
}
.pd-section-subtitle{
  font-size:.9rem;
  color:var(--accent-light);
  font-weight:500;
  margin-bottom:1.2rem;
  letter-spacing:.02em;
}
.pd-section-body{
  font-size:1rem;
  color:var(--muted);
  line-height:1.8;
  max-width:650px;
  font-weight:300;
  margin-bottom:3rem;
}

.pd-features-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:1px;
  background:var(--border);
  border:1px solid var(--border);
  border-radius:16px;
  overflow:hidden;
}
.pd-feature-card{
  background:#ffffff;
  padding:2rem;
  transition:background .2s;
}

.pd-feature-icon{
  width:42px;height:42px;
  background:var(--accent-glow);
  border:1px solid rgba(79, 70, 229, .18);
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:1.1rem;
  font-size:1.05rem;
}
.pd-feature-card h4{
  font-size:1rem;
  font-weight:600;
  color:#111827;
  margin-bottom:.5rem;
}
.pd-feature-card p{
  font-size:.88rem;
  color:var(--muted);
  line-height:1.7;
  font-weight:300;
}

.pd-btn-group{
  display:flex;
  align-items:center;
  gap:1rem;
  flex-wrap:wrap;
  margin-top:2.5rem;
}

.pd-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  padding:.75rem 1.6rem;
  border-radius:10px;
  font-size:.9rem;
  font-weight:500;
  transition:all .2s;
  border:none;
  cursor:pointer;
}
.pd-btn-primary{
  background:var(--accent);
  color:#fff;
}
.pd-btn-primary:hover{
  background:var(--accent-light);
  transform:translateY(-2px);
  box-shadow:0 10px 26px rgba(79, 70, 229, .22);
}
.pd-btn-outline{
  background:transparent;
  color:var(--text);
  border:1px solid var(--border2);
}
.pd-btn-outline:hover{
  border-color: rgba(15, 23, 42, .22);
  background: var(--surface2);
  transform:translateY(-2px);
}

.pd-band{ border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.pd-band-surface{ background: var(--surface2); }
.pd-band-radial{ position:relative; }
.pd-band-radial::before{
  content:"";
  position:absolute;
  top:0;
  left:50%;
  transform:translateX(-50%);
  width:600px;
  height:600px;
  background:radial-gradient(circle, rgba(79, 70, 229, .08) 0%, transparent 70%);
  pointer-events:none;
}

.pd-result{
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
}
.pd-result .pd-section-body{ text-align:center; }

.pd-reveal{
  opacity:0;
  transform:translateY(28px);
  transition:opacity .65s ease, transform .65s ease;
}
.pd-reveal.pd-visible{
  opacity:1;
  transform:translateY(0);
}

@keyframes pd-fadeUp{
  from{ opacity:0; transform:translateY(24px); }
  to{ opacity:1; transform:translateY(0); }
}

@media (max-width: 768px){
  .pd-hero{ padding:110px 1.2rem 60px; }
  .pd-hero-image, .pd-divider-image{ padding:0 1.2rem; }
  .pd-hero-image img, .pd-divider-image img{ height:240px; }
  .pd-section{ padding:4rem 1.2rem; }
  .pd-features-grid{ grid-template-columns:1fr; }
}