/* =============================================================
   SUBPAGE STYLES — Long-form editorial with scroll-reveal
   ============================================================= */

/* ===== NAV LIGHT (cream nav links over dark hero) ===== */
.nav-light .nav-logo { color: var(--ivory); }
.nav-light .nav-links a { color: var(--cream); }
.nav-light .nav-links a:hover { color: var(--ivory); }
.nav-light .nav-links .nav-cta { border-color: var(--cream); color: var(--cream); }
.nav-light .nav-links .nav-cta:hover { background: var(--ivory); color: var(--burgundy); }
.nav-light .nav-hamburger span { background: var(--ivory); }
.nav-light .nav-wrapper.scrolled .nav-logo { color: var(--espresso); }
.nav-light .nav-wrapper.scrolled .nav-links a { color: var(--espresso); }
.nav-light .nav-wrapper.scrolled .nav-links a:hover { color: var(--oxblood); }
.nav-light .nav-wrapper.scrolled .nav-links .nav-cta { border-color: var(--oxblood); color: var(--oxblood); }
.nav-light .nav-wrapper.scrolled .nav-links .nav-cta:hover { background: var(--oxblood); color: var(--ivory); }
.nav-light .nav-wrapper.scrolled .nav-hamburger span { background: var(--espresso); }

/* ===== SUBPAGE HERO ===== */
.sub-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--espresso);
}
.sub-hero-img {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.sub-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .45;
}
.sub-hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding: calc(var(--nav-h) + 80px) 32px 80px;
}
.sub-hero-content .section-label {
  color: var(--cream);
}
.sub-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ivory);
  margin-bottom: 24px;
}
.sub-hero-content h1 em {
  color: var(--cream);
  font-style: italic;
}
.sub-hero-content p {
  color: rgba(250, 247, 242, 0.78);
  font-size: 1.125rem;
  line-height: 1.75;
  max-width: 600px;
}

/* ===== EDITORIAL BODY ===== */
.ed-section {
  padding: 120px 0;
  background: var(--ivory);
  overflow: hidden;
}
.ed-section--cream { background: var(--cream); }
.ed-section--dark {
  background: var(--burgundy);
  color: var(--cream);
}

.ed-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 32px;
}
.ed-container--wide {
  max-width: 1080px;
}

/* Section eyebrow */
.ed-eyebrow {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin-bottom: 32px;
  position: relative;
  padding-left: 56px;
}
.ed-eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 40px;
  height: 1px;
  background: var(--oxblood);
}
.ed-section--dark .ed-eyebrow { color: var(--cream); }
.ed-section--dark .ed-eyebrow::before { background: var(--cream); }

/* Headings */
.ed-h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--espresso);
  margin-bottom: 40px;
}
.ed-h2 em {
  font-style: italic;
  color: var(--oxblood);
}
.ed-section--dark .ed-h2 { color: var(--ivory); }
.ed-section--dark .ed-h2 em { color: var(--cream); }

.ed-h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--espresso);
  margin: 2.5em 0 0.75em;
}
.ed-h3:first-child { margin-top: 0; }
.ed-section--dark .ed-h3 { color: var(--ivory); }

/* Body text — poetic/manifesto style */
.ed-text {
  font-size: 1.125rem;
  line-height: 1.85;
  color: var(--espresso);
  margin-bottom: 1.75em;
}
.ed-text:last-child { margin-bottom: 0; }
.ed-section--dark .ed-text { color: rgba(250, 247, 242, 0.85); }

.ed-text strong {
  font-weight: 600;
  color: var(--espresso);
}
.ed-section--dark .ed-text strong { color: var(--ivory); }

.ed-text em {
  font-style: italic;
  color: var(--oxblood);
}
.ed-section--dark .ed-text em { color: var(--cream); }

/* Poetic line breaks — short single lines */
.ed-lines {
  font-size: 1.125rem;
  line-height: 2;
  color: var(--espresso);
  margin-bottom: 2em;
}
.ed-lines:last-child { margin-bottom: 0; }
.ed-section--dark .ed-lines { color: rgba(250, 247, 242, 0.85); }

/* Pull quote */
.ed-quote {
  margin: 3em 0;
  padding: 40px 0 40px 36px;
  border-left: 3px solid var(--oxblood);
}
.ed-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.625rem;
  line-height: 1.45;
  color: var(--espresso);
  margin: 0 0 12px;
}
.ed-quote cite {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.8125rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--stone);
}
.ed-section--dark .ed-quote { border-color: var(--cream); }
.ed-section--dark .ed-quote p { color: var(--ivory); }
.ed-section--dark .ed-quote cite { color: rgba(250, 247, 242, 0.6); }

/* Divider */
.ed-divider {
  width: 48px;
  height: 1px;
  background: var(--bone);
  margin: 64px 0;
}
.ed-section--dark .ed-divider { background: rgba(250, 247, 242, 0.2); }

/* Full-bleed image break */
.ed-image-break {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
}
.ed-image-break img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* CTA section */
.ed-cta {
  text-align: center;
  padding: 120px 0;
  background: var(--burgundy);
}
.ed-cta .ed-container { max-width: 640px; }
.ed-cta .ed-eyebrow { padding-left: 0; color: var(--cream); }
.ed-cta .ed-eyebrow::before { display: none; }
.ed-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--ivory);
  margin-bottom: 20px;
}
.ed-cta p {
  color: rgba(250, 247, 242, 0.78);
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: 40px;
}
.ed-cta .btn-primary {
  background: var(--ivory);
  color: var(--burgundy);
  border-color: var(--ivory);
}
.ed-cta .btn-primary:hover {
  background: transparent;
  color: var(--ivory);
  border-color: var(--ivory);
}

/* ===== SCROLL-REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.9s cubic-bezier(0.23, 1, 0.32, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Staggered children */
.reveal-group > .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-group > .reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal-group > .reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal-group > .reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal-group > .reveal:nth-child(5) { transition-delay: 0.32s; }

/* Offerings grid */
.ed-offerings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--bone);
  border: 1px solid var(--bone);
  margin: 56px 0;
}
.ed-offering-card {
  background: var(--ivory);
  padding: 48px 40px;
}
.ed-section--cream .ed-offering-card { background: var(--ivory); }
.ed-offering-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--espresso);
  margin-bottom: 16px;
}
.ed-offering-card p {
  font-size: 0.9375rem;
  color: var(--stone);
  line-height: 1.7;
  margin-bottom: 0;
}

/* Client type cards */
.ed-client-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 80px;
  margin: 64px 0;
}

.ed-client-type {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.ed-client-type h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--espresso);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--bone);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .ed-offerings-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .sub-hero { min-height: 50vh; }
  .sub-hero-content { padding: calc(var(--nav-h) + 48px) 24px 56px; }
  .sub-hero-content h1 { font-size: clamp(2rem, 8vw, 3rem); }

  .ed-section { padding: 80px 0; }
  .ed-container { padding: 0 24px; }

  .ed-eyebrow { padding-left: 0; }
  .ed-eyebrow::before { display: none; }

  .ed-h2 { margin-bottom: 28px; }
  .ed-text, .ed-lines { font-size: 1rem; }

  .ed-quote { padding-left: 24px; margin: 2em 0; }
  .ed-quote p { font-size: 1.375rem; }

  .ed-divider { margin: 48px 0; }

  .ed-image-break { max-height: 320px; }

  .ed-cta { padding: 80px 0; }
  .ed-cta .ed-container { padding: 0 24px; }

  .ed-offerings-grid { grid-template-columns: 1fr; }
  .ed-offering-card { padding: 36px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
