/* ============================================================
   PILLARS — MARQUEE SEPARATOR + EDITORIAL PANELS
   ============================================================ */

/* --- Marquee separator band --- */
.pillars-marquee-band {
  background: #EDE5DC;
  overflow: hidden;
  padding: 0;
  border-top: 1px solid rgba(39, 39, 39, 0.1);
  border-bottom: 1px solid rgba(39, 39, 39, 0.1);
  position: relative;
  opacity: 0;
  transition: opacity 0.7s ease 0.1s;
}
.pillars-marquee-band.pillars-marquee-visible { opacity: 1; }
.pillars-marquee-band::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 300px 300px;
}

.pillars-marquee-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: pillars-scroll 48s linear infinite;
  will-change: transform;
}

@keyframes pillars-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.pillars-marquee-item {
  display: inline-flex;
  align-items: center;
  padding: 18px 52px;
  gap: 52px;
  flex-shrink: 0;
}
.pillars-marquee-phrase {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(22px, 3vw, 36px);
  color: #272727;
  letter-spacing: -0.01em;
  line-height: 1;
}
.pillars-marquee-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #C4886A;
  opacity: 0.7;
  flex-shrink: 0;
}

/* --- Pillars section container --- */
.pillars-section {
  background: #EDE5DC;
  padding: 0;
  position: relative;
  overflow: hidden;
}
.pillars-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 300px 300px;
}

/* --- Timeline vertical line --- */
.pillars-timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(196, 136, 106, 0.22) 6%,
    rgba(196, 136, 106, 0.32) 50%,
    rgba(196, 136, 106, 0.22) 94%,
    transparent 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* --- Timeline node --- */
.pillar-node {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  pointer-events: none;
}
.pillar-node::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #C4886A;
  border: 2.5px solid #EDE5DC;
  box-shadow: 0 0 0 5px rgba(196, 136, 106, 0.14);
  display: block;
}
.pillar-node-label {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #C4886A;
  background: #EDE5DC;
  padding: 2px 7px;
  line-height: 1;
  white-space: nowrap;
}

/* --- Each pillar row --- */
.pillar-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: clamp(340px, 40vw, 540px);
  align-items: stretch;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.pillar-row.pillar-visible {
  opacity: 1;
  transform: translateY(0);
}
.pillar-row:nth-child(2) { transition-delay: 0.12s; }
.pillar-row:nth-child(3) { transition-delay: 0.22s; }

/* Horizontal separator between rows */
.pillar-row + .pillar-row::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(39,39,39,0.10) 20%, rgba(39,39,39,0.10) 80%, transparent 100%);
  z-index: 3;
}

/* Flip even rows */
.pillar-row--flip { direction: rtl; }
.pillar-row--flip .pillar-content,
.pillar-row--flip .pillar-photo { direction: ltr; }

/* --- Photo column --- */
.pillar-photo {
  position: relative;
  overflow: hidden;
  min-height: clamp(300px, 38vw, 520px);
}
.pillar-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.pillar-row:hover .pillar-photo img { transform: scale(1.04); }

/* --- Content column --- */
.pillar-content {
  padding: clamp(48px, 6vw, 88px) clamp(44px, 6.5vw, 110px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 2;
  justify-content: center;
}
.pillar-content::before,
.pillar-row--flip .pillar-content::before { display: none; }

.pillar-eyebrow {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #C4886A;
  display: flex;
  align-items: center;
  gap: 12px;
}
.pillar-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: #C4886A;
  opacity: 0.6;
  flex-shrink: 0;
}

.pillar-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1.0;
  letter-spacing: -0.01em;
  color: #272727;
  margin: 0;
}

.pillar-body {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 300;
  line-height: 1.72;
  color: rgba(39, 39, 39, 0.65);
  max-width: 48ch;
}

.pillar-detail {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(139, 90, 60, 0.65);
  margin-top: 4px;
}

/* ============================================================
   PILLARS RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .pillar-row {
    grid-template-columns: 1fr;
    min-height: unset;
  }
  .pillar-row--flip { direction: ltr; }
  .pillar-photo {
    min-height: 260px;
    order: -1;
  }
  .pillar-content {
    padding: clamp(32px, 7vw, 52px) clamp(20px, 6vw, 40px);
  }
  .pillars-timeline-line { display: none; }
  .pillar-node { display: none; }
  .pillar-row + .pillar-row::before { left: 0; right: 0; }
}

@media (max-width: 480px) {
  .pillars-marquee-phrase { font-size: 20px; }
  .pillars-marquee-item { padding: 16px 36px; gap: 36px; }
  .pillar-title { font-size: clamp(32px, 10vw, 52px); }
}
