/* ==========================================================================
   SUNKEN KINGDOM STORY SECTION — Underwater Landscaping Homepage
   Theme: Atlantis · The Sunken Temple · The Lost Kingdom
   Design Ethos: Cinematic Worldview · Underwater Museum Archive · Deep Oceanic Abyss
   Scoped Namespace: .sunken-kingdom-...
   ========================================================================== */

.sunken-kingdom-story {
  position: relative;
  background: #060d17;
  color: #e5eef8;
  padding: 100px 0 36px;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Subtle Underwater Ambient Glow Background */
.sunken-kingdom-story::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 600px;
  background: radial-gradient(circle, rgba(72, 202, 228, 0.06) 0%, rgba(6, 13, 23, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.sunken-kingdom-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-width, 1400px);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Section Header & Prologue --- */
.sunken-kingdom-header {
  text-align: center;
  max-width: 920px;
  margin: 0 auto 56px;
}

.sunken-kingdom-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #48cae4;
  background: rgba(72, 202, 228, 0.08);
  border: 1px solid rgba(72, 202, 228, 0.22);
  padding: 7px 20px;
  border-radius: 9999px;
  margin-bottom: 28px;
}

.sunken-kingdom-title-main {
  font-size: clamp(2.4rem, 4.2vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 24px;
}

.sunken-kingdom-prologue-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.sunken-kingdom-text-lead {
  font-size: 1.22rem;
  line-height: 1.7;
  color: #d8e5f2;
  font-weight: 400;
}

.sunken-kingdom-text-sub {
  font-size: 1rem;
  line-height: 1.8;
  color: #8da4be;
  font-weight: 300;
}

/* --- Chapter 1: The Cinematic First Visual --- */
.sunken-kingdom-visual-stage {
  margin: 0 auto 100px;
  width: 100%;
}

.sunken-kingdom-hero-frame {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.7), 0 0 1px 1px rgba(255, 255, 255, 0.1);
  background-color: #030810;
}

.sunken-kingdom-hero-img {
  width: 100%;
  height: auto;
  min-height: 520px;
  max-height: 720px;
  object-fit: cover;
  display: block;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sunken-kingdom-hero-frame:hover .sunken-kingdom-hero-img {
  transform: scale(1.02);
}

.sunken-kingdom-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 13, 23, 0.1) 0%,
    rgba(6, 13, 23, 0.0) 40%,
    rgba(6, 13, 23, 0.4) 80%,
    rgba(6, 13, 23, 0.85) 100%
  );
  pointer-events: none;
}

.sunken-kingdom-hero-caption {
  position: absolute;
  bottom: 28px;
  left: 36px;
  right: 36px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 2;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* --- Chapters 2, 3, 4: Narrative Trilogy Sequence --- */
.sunken-kingdom-acts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  width: 100%;
  margin-bottom: 90px;
}

.sunken-kingdom-act-card {
  background: rgba(16, 23, 36, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 38px 32px 36px;
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  backdrop-filter: blur(12px);
}

.sunken-kingdom-act-card:hover {
  background: rgba(16, 23, 36, 0.7);
  border-color: rgba(72, 202, 228, 0.35);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(72, 202, 228, 0.08);
}

.sunken-kingdom-act-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.sunken-kingdom-act-num {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 2.6rem;
  font-weight: 800;
  color: #48cae4;
  line-height: 1;
  letter-spacing: -0.04em;
  text-shadow: 0 0 20px rgba(72, 202, 228, 0.3);
}

.sunken-kingdom-act-phase {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7fe3f8;
  background: rgba(72, 202, 228, 0.1);
  border: 1px solid rgba(72, 202, 228, 0.25);
  padding: 6px 14px;
  border-radius: 9999px;
  white-space: nowrap;
}

.sunken-kingdom-act-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, rgba(72, 202, 228, 0.35) 0%, rgba(255, 255, 255, 0.08) 60%, transparent 100%);
  margin: 20px 0 22px;
}

.sunken-kingdom-act-title {
  font-size: 1.38rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: #ffffff;
  margin-bottom: 18px;
}

.sunken-kingdom-act-desc {
  font-size: 0.94rem;
  line-height: 1.8;
  color: #9cb2c7;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sunken-kingdom-act-desc p {
  margin: 0;
}

.sunken-kingdom-act-desc em {
  font-style: italic;
  color: #dbe7f3;
  font-weight: 400;
}

.sunken-kingdom-act-desc strong {
  color: #ffffff;
  font-weight: 600;
}

/* --- Chapter 5: Sunken Temple Collection (Archaeological Archive Discovery) --- */
.sunken-kingdom-collection-wrap {
  width: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 64px 44px;
  margin-bottom: 0;
}

.sunken-kingdom-collection-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 52px;
}

.sunken-kingdom-collection-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #48cae4;
  margin-bottom: 12px;
  display: block;
}

.sunken-kingdom-collection-title {
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 14px;
}

.sunken-kingdom-collection-desc {
  font-size: 1rem;
  color: #9cb1c7;
  line-height: 1.7;
}

/* Archaeological Discovery Grid: 4 Pieces */
.sunken-kingdom-artifacts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  width: 100%;
}

.sunken-kingdom-artifact-card {
  background: #030810;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.sunken-kingdom-artifact-card:hover {
  border-color: rgba(72, 202, 228, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 20px rgba(72, 202, 228, 0.1);
}

.sunken-kingdom-artifact-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #07101b;
}

.sunken-kingdom-artifact-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.sunken-kingdom-artifact-card:hover .sunken-kingdom-artifact-thumb img {
  transform: scale(1.05);
}

.sunken-kingdom-artifact-info {
  padding: 22px 20px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.sunken-kingdom-artifact-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  line-height: 1.35;
}

.sunken-kingdom-artifact-detail {
  font-size: 0.84rem;
  color: #8fa6be;
  line-height: 1.55;
}

/* --- Epilogue & Restrained CTA Action --- */
.sunken-kingdom-epilogue {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sunken-kingdom-epilogue-lead {
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.3;
  color: #ffffff;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.sunken-kingdom-epilogue-sub {
  font-size: 0.94rem;
  color: #7b94ad;
  margin-bottom: 36px;
  letter-spacing: 0.05em;
}

.sunken-kingdom-btn-explore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  border-radius: 9999px;
  background: rgba(72, 202, 228, 0.12);
  border: 1px solid rgba(72, 202, 228, 0.35);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.sunken-kingdom-btn-explore:hover {
  background: #48cae4;
  color: #030810;
  border-color: #48cae4;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(72, 202, 228, 0.35);
}

.sunken-kingdom-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.sunken-kingdom-btn-explore:hover .sunken-kingdom-btn-icon {
  transform: translateX(4px);
}

/* --- Responsive Layout Rules --- */
@media (max-width: 1024px) {
  .sunken-kingdom-story {
    padding: 80px 0 30px;
  }
  .sunken-kingdom-acts-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .sunken-kingdom-artifacts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .sunken-kingdom-collection-wrap {
    padding: 48px 32px;
  }
}

@media (max-width: 768px) {
  .sunken-kingdom-story {
    padding: 60px 0 24px;
  }
  .sunken-kingdom-container {
    padding: 0 20px;
  }
  .sunken-kingdom-hero-img {
    min-height: 360px;
  }
  .sunken-kingdom-hero-caption {
    left: 20px;
    right: 20px;
    bottom: 20px;
    font-size: 0.7rem;
  }
  .sunken-kingdom-artifacts-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .sunken-kingdom-collection-wrap {
    padding: 36px 20px;
  }
  .sunken-kingdom-act-card {
    padding: 32px 24px;
  }
  .sunken-kingdom-btn-explore {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
  }
}

@media (max-width: 480px) {
  .sunken-kingdom-story {
    padding: 48px 0 20px;
  }
  .sunken-kingdom-container {
    padding: 0 16px !important;
  }
  .sunken-kingdom-hero-img {
    min-height: 260px;
  }
  .sunken-kingdom-act-card {
    padding: 24px 16px;
  }
  .sunken-kingdom-collection-wrap {
    padding: 28px 16px;
  }
  .sunken-kingdom-title-main {
    font-size: 1.85rem;
  }
  .sunken-kingdom-text-lead {
    font-size: 1.05rem;
  }
  .sunken-kingdom-text-sub {
    font-size: 0.9rem;
  }
  .sunken-kingdom-btn-explore {
    font-size: 0.8rem;
    padding: 14px 18px;
    letter-spacing: 0.1em;
  }
}
