/* ===========================
   STORY PAGE STYLES
   =========================== */

/* Hero */
.story-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--green-900);
  overflow: hidden;
  padding-top: 96px;
}

.story-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 15% 60%, rgba(29,107,68,0.4) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 85% 30%, rgba(200,169,110,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 80%, rgba(45,138,89,0.15) 0%, transparent 60%);
  background-color: var(--green-900);
}

.story-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
}

.story-hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  padding: 60px 0;
}

.story-hero-title {
  color: var(--white);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 28px;
  letter-spacing: -0.03em;
}

.story-hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.65);
  max-width: 600px;
  line-height: 1.75;
  margin-bottom: 48px;
}

.story-hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.story-hero-scroll span {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.scroll-arrow {
  font-size: 1.5rem;
  color: var(--green-400);
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* Chapters */
.story-chapter {
  padding: 72px 0;
  background: var(--cream);
}

.story-chapter:nth-child(even) {
  background: var(--white);
}

.story-chapter-dark {
  background: var(--green-900) !important;
}

.story-chapter-inner {
  max-width: 960px;
  margin: 0 auto;
}

.chapter-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 16px;
  display: block;
}

.chapter-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  color: var(--gray-900);
  margin-bottom: 32px;
  line-height: 1.25;
}

.chapter-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.chapter-body p {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--gray-600);
}

/* Pain Section */
.story-pain-section {
  background: var(--green-800);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}

.story-pain-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(45,138,89,0.2) 0%, transparent 70%);
}

.story-pain-section .container { position: relative; z-index: 1; }

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pain-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
}

.pain-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-3px);
}

.pain-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.pain-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.3;
}

.pain-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

/* Two column layout */
.story-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

/* Pull quote */
.story-pull-quote {
  background: var(--green-50);
  border-left: 4px solid var(--green-500);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 28px 28px 28px 32px;
  margin-bottom: 24px;
  position: relative;
}

.pull-quote-mark {
  font-size: 3rem;
  color: var(--green-400);
  line-height: 0.7;
  display: block;
  margin-bottom: 12px;
  font-family: Georgia, serif;
}

.story-pull-quote p {
  font-size: 1.0625rem;
  color: var(--green-800);
  font-style: italic;
  line-height: 1.7;
}

/* Insight cards */
.story-insight-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.insight-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: var(--transition);
}

.insight-card:hover { border-color: var(--green-300); box-shadow: var(--shadow-md); }

.insight-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--green-50);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.insight-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.insight-card p {
  font-size: 0.875rem;
  line-height: 1.65;
}

/* Founder contrast */
.founder-contrast {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 56px;
}

.founder-contrast-card {
  border-radius: var(--radius-xl);
  padding: 36px;
}

.founder-contrast-card.green {
  background: rgba(29,107,68,0.2);
  border: 1px solid rgba(45,138,89,0.3);
}

.founder-contrast-card.earth {
  background: rgba(140,105,65,0.2);
  border: 1px solid rgba(200,169,110,0.3);
}

.fc-role {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-300);
  margin-bottom: 12px;
}

.founder-contrast-card.earth .fc-role { color: var(--earth-300); }

.founder-contrast-card h3 {
  color: var(--white);
  font-size: 1.125rem;
  margin-bottom: 16px;
}

.founder-contrast-card p {
  color: rgba(255,255,255,0.65);
  font-size: 0.9375rem;
  line-height: 1.75;
  margin-bottom: 16px;
}

.founder-contrast-card p:last-child { margin-bottom: 0; }

.founder-contrast-plus {
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(255,255,255,0.2);
  text-align: center;
  flex-shrink: 0;
}

/* Equation */
.story-equation {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 32px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
}

.story-equation span {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  text-align: center;
}

.eq-plus, .eq-equals {
  font-size: 1.5rem;
  color: var(--green-400);
  font-weight: 700;
  flex-shrink: 0;
}

.eq-result {
  font-size: 1.125rem !important;
  font-weight: 800 !important;
  color: var(--white) !important;
  background: linear-gradient(135deg, var(--green-400), var(--earth-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Built section */
.built-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.built-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}

.built-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-600), var(--earth-300));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.built-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.built-card:hover::before { transform: scaleX(1); }

.built-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--green-100);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.04em;
}

.built-card h3 {
  font-size: 1.0625rem;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.built-card p {
  font-size: 0.9375rem;
  line-height: 1.75;
}

/* Closing */
.story-closing {
  background: var(--green-900);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}

.story-closing::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(29,107,68,0.35) 0%, transparent 70%);
}

.story-closing-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.closing-quote {
  margin-bottom: 56px;
}

.closing-quote-mark {
  font-size: 5rem;
  color: var(--green-400);
  line-height: 0.7;
  display: block;
  margin-bottom: 20px;
  font-family: Georgia, serif;
  opacity: 0.6;
}

.closing-quote p {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: rgba(255,255,255,0.85);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 24px;
}

.closing-attribution {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.35);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.closing-service-area {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: 32px;
}

.csa-label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 12px;
}

.csa-cities {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  line-height: 1.7;
  margin-bottom: 12px;
}

.csa-note {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
}

.csa-note a {
  color: var(--green-400);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Responsive */
@media (max-width: 1024px) {
  .founder-contrast {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }
  .founder-contrast-plus { text-align: center; font-size: 2rem; }
}

@media (max-width: 768px) {
  .story-chapter { padding: 48px 0; }
  .story-pain-section { padding: 48px 0; }
  .pain-grid { grid-template-columns: 1fr; }
  .story-two-col { grid-template-columns: 1fr; gap: 32px; }
  .built-grid { grid-template-columns: 1fr; }
  .story-hero-content { padding: 40px 0; }
  .story-equation { flex-direction: column; gap: 8px; }
  .eq-plus, .eq-equals { font-size: 1.25rem; }
  .story-closing { padding: 64px 0; }
}

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