/* ─── Ether (premium channel) — redesigned as a spread of tarot cards ─── */

/* Section shell keeps the existing dark stage, adds a soft veil for depth */
#ether {
  position: relative;
  padding: 120px 0;
  background: var(--bg-deep);
  overflow: hidden;
}
.ether-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 720px;
  height: 720px;
  background: radial-gradient(
    circle,
    rgba(201, 168, 76, 0.1) 0%,
    rgba(61, 42, 92, 0.06) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}
/* A faint gilt-mist column behind the featured card */
.ether-veil {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 480px;
  background: radial-gradient(
    ellipse 60% 50% at 50% 50%,
    rgba(201, 168, 76, 0.1),
    transparent 70%
  );
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}
#ether .container {
  position: relative;
  z-index: 1;
}

/* ─── The spread ─── */
.ether-spread {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  max-width: 1040px;
  margin: 0 auto 56px;
  align-items: stretch; /* equal-height columns; tallest card sets the row */
  padding: 20px 0 40px;
}

/* ─── The tarot card ─── */
.tarot {
  position: relative;
  padding-top: 14px; /* room for the crown badge on featured */
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex; /* let the frame stretch to the article's full height */
}
.tarot__frame {
  position: relative;
  min-height: 380px;
  flex: 1;
  padding: 30px 22px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background:
    radial-gradient(
      ellipse 90% 60% at 50% 40%,
      rgba(201, 168, 76, 0.05),
      transparent 70%
    ),
    linear-gradient(
      160deg,
      rgba(18, 18, 28, 0.92) 0%,
      rgba(10, 10, 15, 0.98) 100%
    );
  /* Double golden border: outer via border, inner via inset shadow with a hair-gap */
  border: 1px solid rgba(201, 168, 76, 0.35);
  box-shadow:
    inset 0 0 0 4px rgba(10, 10, 15, 0.6),
    inset 0 0 0 5px rgba(201, 168, 76, 0.22),
    0 8px 30px rgba(0, 0, 0, 0.5);
  transition:
    box-shadow 0.5s ease,
    border-color 0.5s ease,
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
/* Subtle guilloché-like texture behind the whole card face */
.tarot__frame::before {
  content: "";
  position: absolute;
  inset: 12px;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(201, 168, 76, 0.035) 0 1px,
      transparent 1px 12px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(201, 168, 76, 0.03) 0 1px,
      transparent 1px 12px
    );
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}
/* Everything above the texture */
.tarot__frame > * {
  position: relative;
  z-index: 1;
}

/* Ornamental gilt corners */
.tarot__corner {
  position: absolute;
  width: 26px;
  height: 26px;
  color: var(--gold);
  opacity: 0.75;
  transition:
    opacity 0.5s ease,
    color 0.5s ease;
  z-index: 2;
}
.tarot__corner--tl {
  top: 10px;
  left: 10px;
}
.tarot__corner--tr {
  top: 10px;
  right: 10px;
  transform: scaleX(-1);
}
.tarot__corner--bl {
  bottom: 10px;
  left: 10px;
  transform: scaleY(-1);
}
.tarot__corner--br {
  bottom: 10px;
  right: 10px;
  transform: scale(-1, -1);
}

/* Roman numerals — top and mirrored at bottom, like a real card */
.tarot__numeral {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 3px;
  color: var(--gold);
  line-height: 1;
  opacity: 0.85;
  text-transform: uppercase;
}
.tarot__numeral--top {
  margin: 0 0 20px;
}
.tarot__numeral--bottom {
  margin-top: auto; /* pin numeral to the base of the frame */
  transform: rotate(180deg);
}

/* Central glyph */
.tarot__glyph {
  width: 88px;
  height: 88px;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px auto 18px;
  transition:
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.5s ease;
}
.tarot__glyph svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Title */
.tarot__title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 14px;
  /* fine gold underline like arcanum names */
  padding-bottom: 12px;
  position: relative;
}
.tarot__title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.7;
}

/* Description */
.tarot__desc {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.7;
  text-align: center;
  max-width: 100%;
  hyphens: auto;
  margin-bottom: 22px; /* clearance above the bottom numeral */
}

/* Featured card */
.tarot--featured {
  transform: translateY(-14px);
}
.tarot--featured .tarot__frame {
  border-color: rgba(201, 168, 76, 0.5);
  background:
    radial-gradient(
      ellipse 90% 60% at 50% 30%,
      rgba(201, 168, 76, 0.1),
      transparent 70%
    ),
    linear-gradient(
      160deg,
      rgba(28, 22, 14, 0.92) 0%,
      rgba(10, 10, 15, 0.98) 100%
    );
  box-shadow:
    inset 0 0 0 4px rgba(10, 10, 15, 0.6),
    inset 0 0 0 5px rgba(201, 168, 76, 0.35),
    0 14px 44px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(201, 168, 76, 0.12);
  animation: tarot-breathe 5.5s ease-in-out infinite;
}
.tarot--featured .tarot__corner {
  opacity: 1;
}
.tarot--featured .tarot__glyph {
  color: var(--gold-light);
}
.tarot--featured .tarot__numeral {
  color: var(--gold-light);
}

@keyframes tarot-breathe {
  0%,
  100% {
    box-shadow:
      inset 0 0 0 4px rgba(10, 10, 15, 0.6),
      inset 0 0 0 5px rgba(201, 168, 76, 0.35),
      0 14px 44px rgba(0, 0, 0, 0.55),
      0 0 40px rgba(201, 168, 76, 0.1);
  }
  50% {
    box-shadow:
      inset 0 0 0 4px rgba(10, 10, 15, 0.6),
      inset 0 0 0 5px rgba(201, 168, 76, 0.45),
      0 14px 44px rgba(0, 0, 0, 0.55),
      0 0 56px rgba(201, 168, 76, 0.18);
  }
}

/* Crown badge above the featured card */
.tarot__crown {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  background: linear-gradient(
    90deg,
    var(--gold-dark),
    var(--gold),
    var(--gold-dark)
  );
  color: var(--bg-deep);
  font-family: "Raleway", sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 6px 18px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(201, 168, 76, 0.25);
}
.tarot__crown::before,
.tarot__crown::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 6px;
  height: 1px;
  background: var(--gold);
  transform: translateY(-50%);
}
.tarot__crown::before {
  left: -10px;
}
.tarot__crown::after {
  right: -10px;
}

/* Hover state — the card lifts, its edges catch the light */
.tarot:hover {
  transform: translateY(-6px);
}
.tarot--featured:hover {
  transform: translateY(-20px);
}
.tarot:hover .tarot__frame {
  border-color: rgba(201, 168, 76, 0.55);
  box-shadow:
    inset 0 0 0 4px rgba(10, 10, 15, 0.6),
    inset 0 0 0 5px rgba(201, 168, 76, 0.4),
    0 18px 50px rgba(0, 0, 0, 0.55),
    0 0 44px rgba(201, 168, 76, 0.14);
}
.tarot:hover .tarot__corner {
  opacity: 1;
  color: var(--gold-light);
}
.tarot:hover .tarot__glyph {
  color: var(--gold-light);
  transform: translateY(-2px) scale(1.04);
}

/* Staggered reveal on scroll — reads as cards being dealt */
.ether-spread.reveal .tarot {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--i, 0) * 120ms);
}
.ether-spread.reveal.visible .tarot {
  opacity: 1;
  transform: translateY(0);
}
.ether-spread.reveal.visible .tarot--featured {
  transform: translateY(-14px);
}

/* ─── Existing bits kept: platforms + CTA ─── */
.ether-platforms {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.ether-platform {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 12px 28px;
  border: 1px solid var(--border);
  border-radius: 40px;
  background: rgba(18, 18, 28, 0.5);
}
.ether-platform strong {
  color: var(--gold-light);
  font-weight: 500;
}
.ether-platform-icon {
  font-size: 1.1rem;
}
.ether-cta {
  position: relative;
  background: linear-gradient(
    90deg,
    var(--gold-dark),
    var(--gold),
    var(--gold-dark)
  );
  color: var(--bg-deep) !important;
  font-weight: 600;
  letter-spacing: 1px;
  border: none;
  padding: 16px 52px;
  transition: all 0.4s;
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.25);
}
.ether-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.35);
}

/* ─── Responsive ─── */
@media (max-width: 960px) {
  .ether-spread {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 620px;
    gap: 28px 20px;
  }
  .tarot--featured {
    transform: translateY(0);
  }
  .ether-spread.reveal.visible .tarot--featured {
    transform: translateY(0);
  }
  .tarot--featured:hover {
    transform: translateY(-6px);
  }
}
@media (max-width: 560px) {
  #ether {
    padding: 96px 0;
  }
  .ether-spread {
    grid-template-columns: 1fr;
    max-width: 340px;
    gap: 32px;
  }
  .tarot__frame {
    min-height: 360px;
    padding: 28px 24px 26px;
  }
  .tarot__glyph {
    width: 78px;
    height: 78px;
  }
  .tarot__title {
    font-size: 1.05rem;
  }
  .tarot__desc {
    font-size: 0.82rem;
  }
  .ether-platforms {
    gap: 16px;
  }
}

/* ─── A11y: honor reduced-motion ─── */
@media (prefers-reduced-motion: reduce) {
  .tarot,
  .tarot__frame,
  .tarot__glyph,
  .ether-spread.reveal .tarot {
    transition: none;
  }
  .tarot--featured {
    animation: none;
  }
}
