/* relative.quest - Victorian Grandeur Design */
/* Colors: #1a1a2e (deep base), #4a90d9 (primary blue), #f5f0e8 (warm off-white), #e8b84b (accent gold), #6c757d (muted gray) */
/* Font: Libre Baskerville (substitute for Baskerville), Inter */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Libre Baskerville', 'Georgia', serif;
  color: #1a1a2e;
  background-color: #f5f0e8;
  overflow-x: hidden;
  line-height: 1.8;
}

/* ========== SECTIONS ========== */
.section {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 40px;
  position: relative;
  z-index: 2;
}

/* ========== HERO SECTION ========== */
.section--hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1a1a2e;
  position: relative;
}

.ornament-frame {
  position: absolute;
  inset: 20px;
  pointer-events: none;
  z-index: 3;
}

.ornament-corner {
  position: absolute;
  width: 100px;
  height: 100px;
  opacity: 0.7;
}

.ornament-corner--tl { top: 0; left: 0; }
.ornament-corner--tr { top: 0; right: 0; }
.ornament-corner--bl { bottom: 0; left: 0; }
.ornament-corner--br { bottom: 0; right: 0; }

.hero-content {
  text-align: center;
  position: relative;
  z-index: 5;
  padding: 40px;
}

.ornamental-rule {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.ornamental-rule::before {
  content: '';
  display: block;
  width: 300px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e8b84b 30%, #e8b84b 70%, transparent);
  position: relative;
  top: 0;
}

.hero-title {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  color: #f5f0e8;
  letter-spacing: 0.04em;
  margin: 20px 0;
  opacity: 0;
  transform: scale(0.9);
  animation: heroReveal 1.5s ease-out 0.3s forwards;
}

.title-dot {
  color: #e8b84b;
}

.hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  font-weight: 300;
  color: #6c757d;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 10px;
  opacity: 0;
  animation: fadeIn 1.2s ease-out 0.8s forwards;
}

@keyframes heroReveal {
  to { opacity: 1; transform: scale(1); }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.scroll-indicator {
  position: absolute;
  bottom: -120px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeIn 1s ease-out 1.5s forwards, floatBounce 2s ease-in-out 2s infinite;
  cursor: pointer;
}

.scroll-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  color: #e8b84b;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.scroll-arrow {
  color: #e8b84b;
  font-size: 1.5rem;
}

@keyframes floatBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* City Silhouette */
.city-silhouette {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 1;
}

.city-silhouette svg {
  width: 100%;
  height: 300px;
  display: block;
}

.city-silhouette--mid {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 0;
}

.city-silhouette--mid svg {
  width: 100%;
  height: 250px;
  display: block;
}

/* ========== NATURE SECTION ========== */
.section--nature {
  background-color: #f5f0e8;
  border-top: 1px solid rgba(232, 184, 75, 0.2);
}

.section-ornament {
  text-align: center;
  margin-bottom: 30px;
}

.fleuron-char {
  color: #e8b84b;
  font-size: 2rem;
  display: inline-block;
  animation: spinSlow 8s linear infinite;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.section-title {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: #1a1a2e;
  text-align: center;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.section-title--light {
  color: #f5f0e8;
}

.section-rule {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e8b84b, transparent);
  margin: 0 auto 50px;
}

.content-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.lead-text {
  font-size: 1.15rem;
  line-height: 2;
  color: #1a1a2e;
}

.content-col p {
  font-size: 1rem;
  line-height: 1.9;
  color: #6c757d;
}

/* ========== OBSERVER SECTION ========== */
.section--observer {
  background-color: #1a1a2e;
  position: relative;
}

.section--observer .section-title {
  color: #f5f0e8;
}

.section--observer .section-ornament .fleuron-char {
  color: #e8b84b;
}

.revelation-card {
  position: relative;
  max-width: 700px;
  margin: 0 auto 60px;
  border: 2px solid rgba(232, 184, 75, 0.4);
  border-radius: 2px;
  padding: 4px;
}

.revelation-card::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(232, 184, 75, 0.2);
  border-radius: 1px;
  pointer-events: none;
}

.card-content {
  padding: 50px 40px;
}

.revelation-quote p {
  font-family: 'Libre Baskerville', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: #f5f0e8;
  text-align: center;
  line-height: 1.9;
}

/* Corner dots for card */
.revelation-card::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: 8px;
  height: 8px;
  background: #e8b84b;
  border-radius: 50%;
}

.observer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.observer-item {
  text-align: center;
  padding: 30px 20px;
}

.observer-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  position: relative;
}

/* Target icon */
.observer-icon--target::before,
.observer-icon--target::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid #e8b84b;
}

.observer-icon--target::before {
  inset: 0;
}

.observer-icon--target::after {
  inset: 15px;
}

.observer-icon--target {
  background: radial-gradient(circle, #e8b84b 4px, transparent 4px, transparent 18px, rgba(232,184,75,0.3) 18px, rgba(232,184,75,0.3) 19px, transparent 19px);
}

/* Orbit icon */
.observer-icon--orbit {
  border: 1px solid rgba(232, 184, 75, 0.5);
  border-radius: 50%;
  position: relative;
}

.observer-icon--orbit::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: #e8b84b;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.observer-icon--orbit::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(232, 184, 75, 0.3);
  border-radius: 50%;
  transform: rotate(60deg);
}

/* Curve icon */
.observer-icon--curve {
  background: none;
  position: relative;
}

.observer-icon--curve::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border: 1.5px solid #e8b84b;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.observer-icon--curve::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border-bottom: 1.5px solid #e8b84b;
  border-radius: 0 0 50% 50%;
}

.observer-item h3 {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.2rem;
  color: #e8b84b;
  margin-bottom: 12px;
  font-weight: 700;
}

.observer-item p {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: #6c757d;
  line-height: 1.7;
}

/* ========== DIMENSIONS SECTION ========== */
.section--dimensions {
  background-color: #f5f0e8;
}

.dimensions-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.dimension-panel {
  background: white;
  padding: 50px 35px;
  position: relative;
  border: 1px solid rgba(232, 184, 75, 0.2);
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.dimension-panel:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(26, 26, 46, 0.1);
}

.dimension-number {
  font-family: 'Libre Baskerville', serif;
  font-size: 3rem;
  color: rgba(232, 184, 75, 0.3);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1;
}

.dimension-panel h3 {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.4rem;
  color: #1a1a2e;
  margin-bottom: 15px;
  font-weight: 700;
}

.dimension-panel p {
  font-size: 0.95rem;
  color: #6c757d;
  line-height: 1.8;
}

.dimension-line {
  width: 40px;
  height: 2px;
  background: #e8b84b;
  margin-top: 30px;
}

/* ========== ILLUSTRATION SECTION ========== */
.section--illustration {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1a1a2e;
  position: relative;
}

.illustration-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.grand-illustration {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.illustration-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 80px 40px;
  background: rgba(26, 26, 46, 0.7);
  backdrop-filter: blur(2px);
  border: 1px solid rgba(232, 184, 75, 0.15);
}

.illustration-text {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.1rem;
  color: #f5f0e8;
  line-height: 2;
  margin-top: 20px;
  opacity: 0.9;
}

/* ========== PRINCIPLES SECTION ========== */
.section--principles {
  background-color: #f5f0e8;
}

.principles-list {
  max-width: 800px;
  margin: 0 auto;
}

.principle-item {
  display: flex;
  gap: 30px;
  padding: 35px 0;
  border-bottom: 1px solid rgba(232, 184, 75, 0.2);
  align-items: flex-start;
}

.principle-item:last-child {
  border-bottom: none;
}

.principle-num {
  font-family: 'Libre Baskerville', serif;
  font-size: 2rem;
  color: rgba(232, 184, 75, 0.5);
  font-weight: 700;
  min-width: 60px;
  line-height: 1;
  padding-top: 5px;
}

.principle-content h3 {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.2rem;
  color: #1a1a2e;
  margin-bottom: 10px;
  font-weight: 700;
}

.principle-content p {
  font-size: 0.95rem;
  color: #6c757d;
  line-height: 1.8;
}

/* ========== FOOTER ========== */
.section--footer {
  background-color: #1a1a2e;
  padding: 60px 40px;
  text-align: center;
}

.footer-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
}

.footer-rule-line {
  display: inline-block;
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e8b84b, transparent);
}

.footer-diamond {
  color: #e8b84b;
  font-size: 0.8rem;
}

.footer-content {
  position: relative;
}

.footer-domain {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.6rem;
  color: #f5f0e8;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.footer-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: #6c757d;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 30px;
}

.footer-ornament-small .fleuron-char {
  color: #e8b84b;
  font-size: 1rem;
  opacity: 0.5;
}

/* ========== ZOOM FOCUS ANIMATION ========== */
.zoom-focus {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.zoom-focus.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .content-columns {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .observer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .dimensions-showcase {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .section-inner {
    padding: 60px 24px;
  }

  .ornament-frame {
    inset: 10px;
  }

  .ornament-corner {
    width: 60px;
    height: 60px;
  }

  .principle-item {
    flex-direction: column;
    gap: 10px;
  }
}
