/* SCROLL ANIMATIONS */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-left.visible { opacity: 1; transform: translateX(0); }

/* HERO */
.hero {
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 40px 40px;
  max-width: 820px;
  margin: 0 auto;
}
.hero-top {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}
.hero-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--rule);
  flex-shrink: 0;
}
.hero-name-block {
  display: flex;
  flex-direction: column;
}
.hero-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}
.hero-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.hero-subtitle a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-light);
}
.hero-subtitle a:hover { border-color: var(--accent); }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 28px;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-intro {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 600px;
}

.proof-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
}
.proof-strip span { white-space: nowrap; }
.proof-sep { margin: 0 10px; color: var(--rule); }

/* SECTIONS */
.section {
  padding: 80px 40px;
  max-width: 820px;
  margin: 0 auto;
}
.section-divider {
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 40px;
}
.section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 24px;
}
.section p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 20px;
  max-width: 640px;
}
.section p strong { color: var(--text); font-weight: 600; }

.quote-block {
  border-left: 3px solid var(--accent);
  padding: 24px 32px;
  margin: 32px 0;
  background: var(--bg-warm);
  border-radius: 0 8px 8px 0;
}
.quote-block p {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
  max-width: 100%;
}

/* TIMELINE */
.timeline-container {
  padding: 60px 40px 80px;
  max-width: 900px;
  margin: 0 auto;
}
.timeline {
  position: relative;
  padding-left: 48px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--rule) 100%);
}
.tl-item {
  position: relative;
  margin-bottom: 40px;
  padding-bottom: 8px;
}
.tl-item::before {
  content: '';
  position: absolute;
  left: -40px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  z-index: 1;
  transition: background 0.3s ease, transform 0.3s ease;
}
.tl-item:hover::before { background: var(--accent); transform: scale(1.3); }
.tl-item.milestone::before {
  width: 16px;
  height: 16px;
  left: -42px;
  top: 4px;
  background: var(--accent);
  border: 3px solid var(--accent-light);
}
.tl-year {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.tl-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}
.tl-company {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
}
.tl-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
}
.tl-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 3px;
  margin-top: 8px;
}
.tl-tag.ic { background: var(--accent-light); color: var(--accent); }
.tl-tag.lead { background: #F0E6D8; color: var(--accent-warm); }
.tl-tag.event { background: #E8E0F0; color: #6B4E8B; }

/* DEEP DIVE */
.deep-dive {
  background: var(--bg-warm);
  padding: 80px 40px;
}
.deep-dive-inner {
  max-width: 820px;
  margin: 0 auto;
}

/* ORG GROWTH */
.org-growth {
  margin: 32px 0;
  padding: 32px;
  background: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.org-bar-row {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  gap: 16px;
}
.org-bar-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-secondary);
  width: 80px;
  text-align: right;
  flex-shrink: 0;
}
.org-bar-track {
  flex: 1;
  height: 32px;
  background: var(--bg-warm);
  border-radius: 4px;
  overflow: hidden;
}
.org-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 0;
  display: flex;
  align-items: center;
  padding-left: 12px;
}
.org-bar-fill span {
  font-family: var(--mono);
  font-size: 11px;
  white-space: nowrap;
}
.org-bar-fill.fill-1 { background: var(--accent-light); }
.org-bar-fill.fill-1 span { color: var(--accent); }
.org-bar-fill.fill-2 { background: var(--accent); opacity: 0.7; }
.org-bar-fill.fill-2 span { color: white; }
.org-bar-fill.fill-3 { background: var(--accent); }
.org-bar-fill.fill-3 span { color: white; }
.org-role-marker {
  font-size: 12px;
  color: var(--accent-warm);
  font-weight: 600;
  white-space: nowrap;
}

/* METRICS */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin: 32px 0;
}
.metric-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.metric-number {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}
.metric-label {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* P&E FRAMEWORK */
.pe-framework {
  display: flex;
  gap: 0;
  margin: 32px 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.04);
}
.pe-step {
  flex: 1;
  padding: 32px 24px;
  background: var(--card-bg);
  cursor: pointer;
  transition: all 0.4s ease;
  border-right: 1px solid var(--rule);
}
.pe-step:last-child { border-right: none; }
.pe-step:hover, .pe-step.active { background: var(--accent); }
.pe-step:hover *, .pe-step.active * { color: white !important; }
.pe-step-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 8px;
}
.pe-step-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.pe-step-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, margin-top 0.3s ease;
  margin-top: 0;
}
.pe-step:hover .pe-step-desc,
.pe-step.active .pe-step-desc {
  max-height: 200px;
  margin-top: 8px;
}

/* ES COMPARE */
.es-compare {
  display: grid;
  grid-template-columns: 1fr 48px 1fr;
  align-items: center;
  gap: 0;
  margin: 32px 0;
}
.es-box {
  padding: 32px;
  border-radius: 8px;
  text-align: center;
}
.es-before { background: #FDF2F0; border: 1px solid #E8C8C4; }
.es-after { background: #EFF8F0; border: 1px solid #B8DFC0; }
.es-arrow { text-align: center; font-size: 24px; color: var(--accent); }
.es-box h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.es-before h4 { color: #A05040; }
.es-after h4 { color: #3A7A4A; }
.es-stat {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
}
.es-before .es-stat { color: #A05040; }
.es-after .es-stat { color: #3A7A4A; }
.es-stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* CTA SECTION */
.cta-section {
  padding: 80px 40px;
  max-width: 820px;
  margin: 0 auto;
}
.cta-card {
  background: var(--accent);
  border-radius: 12px;
  padding: 48px;
  text-align: center;
}
.cta-card h2 {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 30px);
  color: white;
  margin-bottom: 16px;
}
.cta-card p {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
}
.cta-btn:hover { transform: translateY(-1px); }
.cta-btn-primary {
  background: white;
  color: var(--accent);
}
.cta-btn-secondary {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
}
.cta-btn-secondary:hover { background: rgba(255,255,255,0.25); }

/* FOOTER */
.primer-footer {
  padding: 40px 40px;
  text-align: center;
  border-top: 1px solid var(--rule);
  max-width: 820px;
  margin: 0 auto;
}
.primer-footer p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
}
.primer-footer a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-light);
  transition: border-color 0.2s;
}
.primer-footer a:hover { border-color: var(--accent); }

/* RESPONSIVE */
@media (max-width: 700px) {
  .top-nav { padding: 0 16px; }
  .top-nav-links a:not(.top-nav-contact) { display: none; }
  .hero, .section, .timeline-container, .deep-dive-inner, .primer-footer, .cta-section {
    padding-left: 24px;
    padding-right: 24px;
  }
  .hero-top { gap: 14px; }
  .hero-avatar { width: 56px; height: 56px; }
  .hero-name { font-size: 18px; }
  .pe-framework { flex-direction: column; }
  .pe-step { border-right: none; border-bottom: 1px solid var(--rule); }
  .pe-step:last-child { border-bottom: none; }
  .pe-step .pe-step-desc { max-height: 200px; margin-top: 8px; }
  .es-compare { grid-template-columns: 1fr; gap: 16px; }
  .es-arrow { transform: rotate(90deg); }
  .metrics-row { grid-template-columns: 1fr 1fr; }
  .org-bar-row { flex-wrap: wrap; }
  .org-role-marker { width: 100%; text-align: left; padding-left: 96px; margin-top: -8px; font-size: 11px; }
  .cta-card { padding: 36px 24px; }
}
