/* ============================================
   11und10 – Visual & Experiential System
   ============================================ */

:root {
  /* Light mode */
  --bg: #f7f5f0;
  --bg-elevated: #ffffff;
  --text: #1a1a1a;
  --text-muted: #5c5c5c;
  --accent: #2c3e50;
  --accent-soft: rgba(44, 62, 80, 0.08);
  --border: rgba(26, 26, 26, 0.1);
  --orb-10: rgba(44, 62, 80, 0.12);
  --orb-11: rgba(120, 90, 60, 0.1);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
  --gradient-hero: linear-gradient(160deg, #f7f5f0 0%, #ebe6dc 100%);
}

[data-theme="dark"] {
  --bg: #0f0f0f;
  --bg-elevated: #1a1a1a;
  --text: #f0ebe3;
  --text-muted: #a0a0a0;
  --accent: #d4c4a8;
  --accent-soft: rgba(212, 196, 168, 0.1);
  --border: rgba(240, 235, 227, 0.1);
  --orb-10: rgba(212, 196, 168, 0.08);
  --orb-11: rgba(140, 160, 180, 0.1);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  --gradient-hero: linear-gradient(160deg, #0f0f0f 0%, #1a1814 100%);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Outfit", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.5s ease, color 0.5s ease;
}

/* Typography */
h1, h2, .title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
}

/* Theme Toggle */
.theme-toggle {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.theme-toggle:hover {
  transform: scale(1.05);
}

.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* Progress bar */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  z-index: 200;
  transition: width 0.1s linear;
}

/* Sections */
.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem;
  position: relative;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.container.narrow {
  max-width: 640px;
}

/* ========== HERO ========== */
.section-hero {
  background: var(--gradient-hero);
  text-align: center;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.title {
  font-size: clamp(3.5rem, 12vw, 7.5rem);
  line-height: 1;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.15em;
}

.title .num {
  font-weight: 300;
}

.title .und {
  font-size: 0.35em;
  font-style: italic;
  font-weight: 300;
  opacity: 0.6;
  margin: 0 0.1em;
  align-self: center;
}

.lead {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--text-muted);
  font-weight: 300;
  max-width: 28ch;
  margin: 0 auto 3rem;
}

.scroll-hint {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.scroll-hint:hover {
  color: var(--text);
  transform: translateY(4px);
}

.scroll-hint svg {
  animation: gentle-bounce 2.2s ease-in-out infinite;
}

@keyframes gentle-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Orbs */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.orb-10 {
  width: 50vw;
  height: 50vw;
  max-width: 500px;
  max-height: 500px;
  background: var(--orb-10);
  top: 10%;
  left: -10%;
  animation: float-slow 18s ease-in-out infinite;
}

.orb-11 {
  width: 40vw;
  height: 40vw;
  max-width: 400px;
  max-height: 400px;
  background: var(--orb-11);
  bottom: 5%;
  right: -5%;
  animation: float-slow 22s ease-in-out infinite reverse;
}

@keyframes float-slow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -20px); }
}

/* ========== NUMBERS ========== */
.section-numbers {
  background: var(--bg);
}

.numbers-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 4rem;
}

@media (max-width: 800px) {
  .numbers-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .divider {
    flex-direction: row !important;
    padding: 0.5rem 0;
  }
}

.number-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.number-card:hover {
  transform: translateY(-4px);
}

.number-display {
  font-family: "Cormorant Garamond", serif;
  font-size: 4.5rem;
  font-weight: 300;
  line-height: 1;
  margin-bottom: 0.75rem;
  color: var(--accent);
}

.number-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.principle {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.desc {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.7;
}

.divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
}

.divider-line {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.divider-word {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.1rem;
  opacity: 0.7;
}

.bridge-text {
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ========== IMPULSE ========== */
.section-impulse {
  background: var(--bg-elevated);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-align: center;
  margin-bottom: 3.5rem;
  font-weight: 400;
}

.impulse-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.impulse-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.4s ease;
}

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

.impulse-item:hover {
  padding-left: 0.5rem;
}

.impulse-num {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.25rem;
  color: var(--accent);
  opacity: 0.6;
  min-width: 2rem;
}

.impulse-item p {
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.6;
}

/* ========== EXPERIENCE ========== */
.section-experience {
  background: var(--bg);
}

.section-lead {
  text-align: center;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 3.5rem;
  max-width: 40ch;
  margin-left: auto;
  margin-right: auto;
}

.balance-stage {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.balance-track {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.pole {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
}

.pole-num {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 300;
  color: var(--accent);
}

.pole-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.balance-slider-wrap {
  flex: 1;
  position: relative;
  height: 48px;
  display: flex;
  align-items: center;
}

.balance-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.balance-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  cursor: grab;
  transition: transform 0.2s ease;
}

.balance-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.balance-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  cursor: grab;
}

.balance-feedback {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-muted);
  min-height: 2.5em;
  transition: opacity 0.3s ease;
}

/* ========== CLOSING ========== */
.section-closing {
  background: var(--bg-elevated);
  text-align: center;
}

.closing-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.closing-title {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  line-height: 1.3;
  margin-bottom: 1.75rem;
  font-weight: 400;
}

.closing-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 3rem;
}

.closing-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--accent);
  opacity: 0.7;
}

.closing-und {
  font-size: 0.5em;
  font-style: italic;
  opacity: 0.6;
}

/* Footer */
.footer {
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  border-top: 1px solid var(--border);
}

/* ========== Animations / Reveal ========== */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeInUp 0.9s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.7s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in, [data-reveal] {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
  .scroll-hint svg { animation: none; }
  .orb { animation: none; }
}
