/* Homepage-specific styles (depends on styles.css) */

/* ── HERO ── */
.hero {
  padding: clamp(60px, 8vw, 120px) clamp(24px, 5vw, 80px);
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
/* canvas owns the dot grid — suppress the CSS fallback */
.hero::before { display: none; }

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; max-width: 820px; }

/* ── Eyebrow word-glow cycle ──
   .ew-sep spans sit at nth-child positions 2, 4, 6
   so service spans land at 1, 3, 5, 7. */
.hero-eyebrow .ew-sep { color: var(--ink-4); }
.hero-eyebrow .ew-item {
  animation: ew-glow 16s ease-in-out infinite;
}
.hero-eyebrow .ew-item:nth-child(1) { animation-delay:  0s; }
.hero-eyebrow .ew-item:nth-child(3) { animation-delay:  4s; }
.hero-eyebrow .ew-item:nth-child(5) { animation-delay:  8s; }
.hero-eyebrow .ew-item:nth-child(7) { animation-delay: 12s; }

@keyframes ew-glow {
  0%, 12%, 100% { color: var(--ink-3); text-shadow: none; }
  6% {
    color: var(--accent-mid);
    text-shadow: 0 0 10px rgba(29,158,117,0.55), 0 0 24px rgba(15,110,86,0.22);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow .ew-item { animation: none; }
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  margin-bottom: 28px;
  text-transform: uppercase;
}
.hero-headline {
  font-family: var(--serif);
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}
.hero-headline em { font-style: italic; color: var(--accent); }
.hero-sub {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--ink-2);
  font-weight: 300;
  max-width: 520px;
  margin-bottom: 48px;
  line-height: 1.7;
}
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

.btn-ghost {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-2);
  text-decoration: none;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.btn-ghost:hover { color: var(--accent); }
.btn-ghost::after { content: '→'; transition: transform 0.2s; }
.btn-ghost:hover::after { transform: translateX(3px); }

.hero-stat-row {
  display: flex;
  gap: 40px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
  flex-wrap: wrap;
}
.hero-stat-num {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--ink);
  font-weight: 400;
  line-height: 1;
}
.hero-stat-label {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 4px;
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* ── SERVICES GRID ── */
.services {
  padding: clamp(60px, 8vw, 100px) clamp(24px, 5vw, 80px);
  border-bottom: 1px solid var(--rule);
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 12px;
}
.section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
}
.section-link {
  font-size: 13px;
  color: var(--ink-3);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.section-link:hover { color: var(--accent); border-color: var(--accent); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--rule);
}
.service-card {
  padding: 36px 32px;
  border-right: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
  position: relative;
  overflow: hidden;
}
.service-card:last-child { border-right: none; }
.service-card:hover { background: var(--paper-2); }

.service-card.is-new { background: var(--accent-light); }
.service-card.is-new:hover { background: #d2ede5; }

.service-icon { width: 36px; height: 36px; margin-bottom: 24px; opacity: 0.7; }
.service-card.is-new .service-icon { opacity: 1; }

.service-num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-4);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  display: block;
}
.service-card.is-new .service-num { color: var(--accent); }

.service-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.2;
}
.service-desc {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.65;
  font-weight: 300;
}
.service-card.is-new .service-desc { color: var(--ink-2); }

.service-arrow {
  display: block;
  margin-top: 28px;
  font-size: 18px;
  color: var(--ink-4);
  transition: transform 0.2s, color 0.2s;
}
.service-card:hover .service-arrow { transform: translateX(4px); color: var(--accent); }
.service-card.is-new .service-arrow { color: var(--accent); }

.service-new-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  background: var(--accent);
  color: #fff;
  padding: 3px 7px;
  border-radius: 2px;
}

/* ── AUDIENCE ── */
.audience {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--rule);
}
.audience-panel { padding: clamp(48px, 6vw, 80px) clamp(24px, 5vw, 80px); }
.audience-panel:first-child { border-right: 1px solid var(--rule); }

.audience-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  border: 1px solid var(--rule);
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 24px;
}
.audience-title {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.25;
}
.audience-body {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.75;
  font-weight: 300;
  max-width: 380px;
}
.audience-list {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.audience-list li {
  font-size: 13px;
  color: var(--ink-2);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 300;
}
.audience-list li::before { content: '—'; color: var(--accent); flex-shrink: 0; margin-top: 1px; }

/* ── TESTIMONIALS ── */
.testimonials {
  padding: clamp(60px, 8vw, 100px) clamp(24px, 5vw, 80px);
  border-bottom: 1px solid var(--rule);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--rule);
  margin-top: 48px;
}
.testimonial-card {
  padding: 36px 32px;
  border-right: 1px solid var(--rule);
}
.testimonial-card:last-child { border-right: none; }
.testimonial-quote {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.65;
  margin-bottom: 28px;
  font-style: italic;
}
.testimonial-rule { width: 24px; height: 1px; background: var(--accent); margin-bottom: 16px; }
.testimonial-attr {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 400;
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

/* ── PARTNERS ── */
.partners {
  padding: clamp(40px, 5vw, 64px) clamp(24px, 5vw, 80px);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.partners-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-4);
  text-transform: uppercase;
  flex-shrink: 0;
}
.partners-list { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }
.partner-name {
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 300;
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.02em;
}
.partner-name:hover { color: var(--ink); }

/* ── JOIN BAND ── */
.join-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--rule);
}
.join-panel { padding: clamp(48px, 6vw, 72px) clamp(24px, 5vw, 80px); }
.join-panel:first-child {
  border-right: 1px solid var(--rule);
}
.join-panel-title {
  font-family: var(--serif);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 400;
  margin-bottom: 14px;
  line-height: 1.25;
}
.join-panel-body {
  font-size: 14px;
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 28px;
  max-width: 380px;
  color: var(--ink-2);
}

.btn-outline-light {
  display: inline-block;
  font-size: 13px;
  font-weight: 400;
  color: var(--paper);
  border: 1px solid rgba(245,244,239,0.3);
  padding: 10px 22px;
  border-radius: 2px;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline-light:hover { border-color: var(--paper); background: rgba(245,244,239,0.08); }

.btn-outline-dark {
  display: inline-block;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink);
  border: 1px solid var(--rule);
  padding: 10px 22px;
  border-radius: 2px;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline-dark:hover { border-color: var(--ink); color: var(--ink); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-card { border-right: none; border-bottom: 1px solid var(--rule); }
  .service-card:nth-child(odd) { border-right: 1px solid var(--rule); }
  .service-card:last-child { border-bottom: none; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonial-card { border-right: none; border-bottom: 1px solid var(--rule); }
  .testimonial-card:last-child { border-bottom: none; }
  .join-band { grid-template-columns: 1fr; }
  .join-panel:first-child { border-right: none; border-bottom: 1px solid var(--rule); }
}
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card { border-right: none !important; }
  .audience { grid-template-columns: 1fr; }
  .audience-panel:first-child { border-right: none; border-bottom: 1px solid var(--rule); }
  .hero-stat-row { gap: 28px; }
}
@media (max-width: 480px) {
  .services-grid { border: none; }
  .service-card { border: 1px solid var(--rule); border-radius: 2px; margin-bottom: 12px; }
}
