/* === POEM SECTIONS === */
.poem-section {
  padding: 80px 24px;
}

.poem-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* === EPIGRAPH === */
.epigraph {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
}

.epigraph-text {
  max-width: 560px;
  text-align: center;
}

.epigraph-latin {
  font-style: italic;
  font-size: 17px;
  line-height: 1.9;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.epigraph-translation {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 32px;
  padding: 16px 24px;
  background: var(--gold-subtle);
  border-radius: 8px;
}

.epigraph-dedication {
  font-size: 15px;
  color: var(--text-dim);
  margin-top: 32px;
  text-align: right;
}

/* === POEM LINES === */
.poem-line {
  font-size: 19px;
  line-height: 1.9;
  color: var(--text-primary);
  margin-bottom: 2px;
  padding: 2px 0;
}

.poem-line.indent {
  padding-left: 40px;
}

.poem-line.gap {
  margin-top: 24px;
}

/* === FRAGMENTS === */
.poem-fragment {
  padding: 100px 24px;
  position: relative;
}

.fragment-title {
  font-family: var(--font-ui);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--text-dim);
  margin-bottom: 40px;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.fragment-split {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* === THRESHOLDS === */
.threshold {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.threshold::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

/* === FRAGMENT BACKGROUNDS === */
.poem-fragment[data-fragment="1"] { background: var(--bg-primary); }
.poem-fragment[data-fragment="2"] { background: #0c0a08; }
.poem-fragment[data-fragment="3"] { background: #0a0b0e; }
.poem-fragment[data-fragment="4"] { background: #0d0b0c; }
.poem-fragment[data-fragment="5"] { background: #08080a; }

/* === REVEAL BUTTON === */
.reveal-btn {
  display: block;
  margin: 40px auto 0;
  padding: 14px 32px;
  background: transparent;
  border: 1px solid var(--gold-dim);
  border-radius: 4px;
  color: var(--gold);
  font-family: var(--font-poem);
  font-size: 15px;
  cursor: pointer;
  transition: all 0.4s ease;
  max-width: var(--max-width);
}

.reveal-btn:hover {
  background: var(--gold-subtle);
  border-color: var(--gold);
}

.reveal-btn.revealed {
  border-color: rgba(201, 169, 110, 0.15);
  color: var(--text-dim);
  cursor: default;
  font-size: 13px;
  font-family: var(--font-ui);
  letter-spacing: 1px;
}

.reveal-btn.revealed:hover {
  background: transparent;
  border-color: rgba(201, 169, 110, 0.15);
}

/* === FRAGMENT SUMMARY === */
.fragment-summary {
  max-width: var(--max-width);
  margin: 40px auto 0;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.fragment-summary-inner {
  padding: 32px;
  background: linear-gradient(135deg, rgba(201, 169, 110, 0.04), rgba(201, 169, 110, 0.01));
  border-left: 2px solid rgba(201, 169, 110, 0.2);
  border-radius: 0 8px 8px 0;
}

.fragment-summary p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-secondary);
}

/* Blurred state */
.fragment-summary:not(.unlocked) .fragment-summary-inner {
  filter: blur(6px);
  user-select: none;
  pointer-events: none;
}

.summary-unlock-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  padding: 14px 32px;
  background: rgba(10, 10, 12, 0.7);
  border: 1px solid var(--gold-dim);
  border-radius: 4px;
  color: var(--gold);
  font-family: var(--font-poem);
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s;
  backdrop-filter: blur(4px);
}

.summary-unlock-btn:hover {
  background: rgba(10, 10, 12, 0.9);
  border-color: var(--gold);
}

.fragment-summary.unlocked .summary-unlock-btn {
  display: none;
}

.fragment-summary.unlocked .fragment-summary-inner {
  filter: none;
  user-select: auto;
  pointer-events: auto;
}

/* === TECHNIQUES BLOCK === */
.fragment-techniques {
  max-width: var(--max-width);
  margin: 40px auto 0;
}

.techniques-btn {
  display: block;
  margin: 0 auto;
  padding: 12px 28px;
  background: transparent;
  border: 1px solid rgba(123, 201, 154, 0.3);
  border-radius: 4px;
  color: var(--type-technique);
  font-family: var(--font-poem);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.4s ease;
}

.techniques-btn:hover {
  background: rgba(123, 201, 154, 0.05);
  border-color: var(--type-technique);
}

.techniques-btn.revealed {
  display: none;
}

.techniques-grid {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.techniques-grid.visible {
  display: grid;
}

.technique-item {
  padding: 20px 24px;
  background: rgba(123, 201, 154, 0.04);
  border: 1px solid rgba(123, 201, 154, 0.12);
  border-radius: 8px;
}

.technique-item h4 {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: normal;
  color: var(--type-technique);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.technique-item p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .techniques-grid {
    grid-template-columns: 1fr;
  }
}

/* === FOOTER === */
.site-footer {
  max-width: var(--max-width);
  margin: 80px auto 60px;
  padding: 48px 24px;
  text-align: center;
  border-top: 1px solid rgba(201, 169, 110, 0.1);
}

.footer-next {
  font-size: 20px;
  color: var(--gold);
  font-style: italic;
  margin-bottom: 32px;
}

.footer-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.footer-author a {
  color: var(--text-secondary);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-author a:hover {
  color: var(--gold);
}

.footer-channel a {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

/* === HIDDEN TRIGGERS (before reveal) === */
.poem-fragment:not(.triggers-revealed) [data-card],
.epigraph:not(.triggers-revealed) [data-card] {
  color: inherit;
  border-bottom: none;
  cursor: text;
  pointer-events: none;
}
