/* ===== Custom Properties ===== */
:root {
  --pink: #FF6B9D;
  --teal: #2EC4B6;
  --yellow: #FFD166;
  --cream: #FFF5E4;
  --ink: #2D2D2A;
  --purple: #7B2D8E;
  --mint: #B8F2E6;
}

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.65;
  font-size: clamp(1rem, 1.1vw, 1.15rem);
}

/* ===== Diagonal Sections ===== */
.diagonal-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}
.section-skew {
  transform: skewY(-3deg);
  padding: 6rem 2rem;
}
.section-content {
  transform: skewY(3deg);
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

/* Section 1: Summons */
.section-summons {
  background: var(--pink);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4vw), 0 100%);
  z-index: 5;
  display: flex;
  align-items: center;
}
.title-skewed {
  font-family: 'Caveat', cursive;
  font-size: clamp(2.2rem, 5.5vw, 4.8rem);
  line-height: 1.15;
  color: var(--cream);
  transform: rotate(-3deg);
  margin-bottom: 1rem;
}
.title-skewed span {
  display: inline-block;
  transform: rotate(calc(-1deg + var(--line-index, 0) * 0.7deg));
}
.subtitle-skewed {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
  opacity: 0.7;
}
.starburst {
  position: absolute;
  top: 10%;
  right: 5%;
  opacity: 0.8;
}

/* Section 2: Testimony */
.section-testimony {
  background: var(--teal);
  clip-path: polygon(0 4vw, 100% 0, 100% calc(100% - 4vw), 0 100%);
  margin-top: -4vw;
  z-index: 4;
}
.testimony-content { position: relative; }
.testimony-quotes {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.testimony-quote {
  font-family: 'Caveat', cursive;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  line-height: 1.2;
  color: var(--cream);
  background: rgba(255, 209, 102, 0.2);
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--yellow);
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.testimony-quote.visible {
  opacity: 1;
  transform: translateX(0);
}
.emphatic-word {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-style: italic;
  font-size: clamp(4rem, 12vw, 10rem);
  color: rgba(255, 107, 157, 0.15);
  position: absolute;
  right: -5%;
  bottom: -10%;
  pointer-events: none;
  z-index: -1;
}

/* Section 3: Evidence */
.section-evidence {
  background: var(--cream);
  clip-path: polygon(0 0, 100% 4vw, 100% 100%, 0 calc(100% - 4vw));
  margin-top: -4vw;
  z-index: 3;
}
.section-heading {
  font-family: 'Caveat', cursive;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.15;
  margin-bottom: 2rem;
}
.section-heading span {
  display: inline-block;
  transform: rotate(calc(-1deg + var(--line-index, 0) * 0.7deg));
}
.evidence-columns {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.evidence-card {
  background: var(--cream);
  border: 2px solid var(--ink);
  padding: 1.5rem;
  clip-path: polygon(0 0, 100% 2%, 98% 100%, 2% 98%);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.evidence-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.evidence-card h3 {
  font-family: 'Caveat', cursive;
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: var(--purple);
}
.evidence-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}
.bare-tree {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  height: 300px;
  opacity: 0.15;
}

/* Section 4: Verdict */
.section-verdict {
  background: var(--purple);
  clip-path: polygon(0 4vw, 100% 0, 100% calc(100% - 4vw), 0 100%);
  margin-top: -4vw;
  z-index: 2;
}
.verdict-content {
  color: var(--cream);
  transition: max-width 0.1s ease;
}
.verdict-content p {
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.verdict-content p.visible {
  opacity: 1;
  transform: translateY(0);
}
.verdict-emphatic {
  color: rgba(184, 242, 230, 0.1);
}

/* Section 5: Aftermath */
.section-aftermath {
  background: var(--mint);
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
  z-index: 1;
  position: relative;
}
.aftermath-content {
  max-width: 600px;
  text-align: left;
}
.aftermath-heading {
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.aftermath-content p {
  margin-bottom: 1rem;
  color: var(--ink);
}
.aftermath-coda {
  font-family: 'Caveat', cursive;
  font-size: 1.4rem;
  color: var(--purple);
  margin-top: 2rem;
}

/* ===== Rope Divider ===== */
.rope-divider {
  position: relative;
  z-index: 10;
  height: 20px;
  margin: -10px 0;
}
.rope-divider svg { width: 100%; height: 20px; display: block; }

/* ===== Path Draw ===== */
.path-draw {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 2s ease;
}
.path-draw.drawn { stroke-dashoffset: 0; }

/* ===== Manicule Navigation ===== */
.manicule-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 500;
  width: 48px;
  height: 48px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
  transition: background 0.3s;
}
.manicule-btn:hover { background: var(--pink); }

.slide-nav {
  position: fixed;
  top: 0;
  right: -250px;
  width: 250px;
  height: 100vh;
  background: var(--cream);
  border-left: 3px solid var(--ink);
  z-index: 499;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem;
  transition: right 0.4s ease;
}
.slide-nav.open { right: 0; }
.slide-nav a {
  font-family: 'Caveat', cursive;
  font-size: 1.4rem;
  color: var(--ink);
  text-decoration: none;
  padding: 0.3rem 0;
  border-bottom: 2px dashed var(--teal);
  transition: color 0.2s;
}
.slide-nav a:hover { color: var(--purple); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .evidence-columns { grid-template-columns: 1fr; }
  .section-skew { padding: 4rem 1.5rem; }
  .starburst { display: none; }
  .bare-tree { display: none; }
  .emphatic-word { font-size: clamp(3rem, 15vw, 6rem); }
}
@media (max-width: 480px) {
  .section-skew { padding: 3rem 1rem; }
  .manicule-btn { width: 40px; height: 40px; top: 12px; right: 12px; }
  .slide-nav { width: 200px; right: -200px; }
}
