/* ============================================================
   FAMILY TREE - LIGHT REDESIGN
   ============================================================ */
.ft-section {
  position: relative;
  padding: 140px 0 160px;
  overflow: hidden;
  background: #f5f2ec; /* warm off-white */
}

.ft-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(184, 146, 58, 0.06) 0%, transparent 65%);
  pointer-events: none;
}

.watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(8rem, 20vw, 24rem);
  font-weight: 300;
  color: rgba(184, 146, 58, 0.06);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  line-height: 1;
}

.ft-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  color: #1a1612;
  text-align: center;
  margin-bottom: 16px;
}

.ft-subtitle {
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(184, 146, 58, 0.8);
  margin-bottom: 80px;
}

/* ============================================================
   ANIMATED DNA / LINEAGE HELIX SVG  — dark colors for light bg
   ============================================================ */
.helix-wrap {
  display: flex;
  justify-content: center;
  padding: 0 0 20px;
}

.helix-wrap svg .strand {
  animation: helixRotate 6s linear infinite;
  transform-origin: center;
}

@keyframes helixRotate {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -200; }
}

/* ---- ft-lines connecting lines on light bg ---- */
.ft-canvas {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 0;
}

.ft-lines {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
}

.ft-strand {
  fill: none;
  stroke: rgba(184, 146, 58, 0.4);
  stroke-width: 1.5;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawLine 3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.5s;
}

.ft-strand-sub {
  fill: none;
  stroke: rgba(184, 146, 58, 0.22);
  stroke-width: 1;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: drawLine 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.2s;
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

.ft-gen {
  display: flex;
  justify-content: center;
  gap: 24px;
  position: relative;
  z-index: 2;
  margin-bottom: 60px;
}

.gen-1 { gap: 18px; }
.gen-2 { gap: 100px; }
.gen-3 { margin-top: 40px; margin-bottom: 0; }
.ft-gap { width: 40px; }

/* ---- Cards — white on light section ---- */
.ft-card.glass {
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(184, 146, 58, 0.18);
  border-radius: 6px;
  padding: 32px 24px;
  text-align: center;
  width: 230px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.ft-card.glass:hover {
  transform: translateY(-8px) scale(1.02);
  background: #fff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.14), 0 0 0 1.5px rgba(184, 146, 58, 0.35);
  border-color: rgba(184, 146, 58, 0.4);
}

.ft-card.premium {
  width: 260px;
  background: #fff;
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.1);
  border-color: rgba(184, 146, 58, 0.28);
}

.ft-card.ultimate {
  width: 340px;
  padding: 40px 32px;
  background: linear-gradient(135deg, rgba(184, 146, 58, 0.06), #ffffff);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255,255,255,0.9);
  border-color: rgba(184, 146, 58, 0.45);
  border-width: 1.5px;
}

/* ---- Larger images ---- */
.ft-card img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 18px;
  border: 2px solid rgba(184, 146, 58, 0.35);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transition: transform 0.4s;
}

.ft-card.premium img { width: 150px; height: 150px; }
.ft-card.ultimate img { width: 180px; height: 180px; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(184, 146, 58, 0.12); }

.ft-card:hover img {
  transform: scale(1.08) rotate(2deg);
}

/* ---- Text colors for light bg ---- */
.ft-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #1a1612;
  line-height: 1.2;
}

.ft-card.ultimate .ft-name {
  font-size: 1.65rem;
  color: #b8923a;
}

.ft-role {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(184, 146, 58, 0.85);
  margin-top: 8px;
}

.ft-detail {
  font-size: 0.8rem;
  color: rgba(26, 22, 18, 0.55);
  margin-top: 8px;
  line-height: 1.7;
}

/* ============================================================
   HERITAGE MASONRY — LIGHT REDESIGN, EQUAL HEIGHT CARDS
   ============================================================ */
.ft-section.heritage-section {
  background: #eeeae1;
  padding-top: 0;
  padding-bottom: 120px;
}

.heritage-masonry {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 80px 0 0;
  position: relative;
  background: transparent;
  border: none;
}

/* Force equal height cards */
.heritage-masonry .hb-glass {
  height: 100%;
}

.mt-offset {
  margin-top: 0; /* reset — all equal in new grid */
}

.hb-glass {
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(184, 146, 58, 0.18);
  border-radius: 6px;
  padding: 56px 52px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.4s, transform 0.4s;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

.hb-glass::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.hb-glass:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}

.hb-glass:hover::before {
  opacity: 1;
}

/* Roman numeral icon — subtle on light bg */
.hb-icon {
  font-family: var(--font-display);
  font-size: 5rem;
  color: rgba(184, 146, 58, 0.1);
  line-height: 1;
  position: absolute;
  top: 24px; right: 28px;
  pointer-events: none;
  transition: color 0.4s;
}

.hb-glass:hover .hb-icon {
  color: rgba(184, 146, 58, 0.2);
}

.hb-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  color: #1a1612;
  margin-bottom: 20px;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

.hb-glass p {
  font-size: 0.97rem;
  color: rgba(26, 22, 18, 0.65);
  line-height: 1.95;
  position: relative;
  z-index: 1;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .ft-gen {
    flex-wrap: wrap;
    gap: 20px;
  }
  .ft-gap { display: none; }
  .ft-card.glass { width: 45%; }
  .ft-lines { display: none; }
  
  .heritage-masonry {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .ft-card.glass { width: 100%; max-width: 300px; margin-top: 0 !important; }
  .hb-glass { padding: 44px 28px; }
}
