/* --- reset + base --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  background: #0a0a0a;
  color: #f5f1e8;
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.4;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  --pulse: 0;
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 40%, rgba(245,241,232, calc(var(--pulse) * 0.06)) 0%, transparent 60%);
  transition: background 0.12s ease-out;
  z-index: 1;
}

::selection { background: #f5f1e8; color: #0a0a0a; }

/* --- curtain intro — waits for click before lifting --- */
.curtain {
  position: fixed;
  inset: 0;
  background: #0a0a0a;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 1.8s cubic-bezier(.77,0,.175,1),
              visibility 0s linear 1.8s;
}
.curtain-tap {
  position: absolute;
  bottom: 4rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #5a574f;
  opacity: 0;
  animation: tapFade 1.6s ease 3.6s forwards, tapPulse 2.8s ease-in-out 5.2s infinite;
}
@keyframes tapFade {
  to { opacity: 0.6; }
}
@keyframes tapPulse {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 0.85; }
}
.curtain.gone { opacity: 0; visibility: hidden; }

.curtain-word {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(3rem, 9vw, 7rem);
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(12px);
  animation: curtainRise 2.2s cubic-bezier(.22,.61,.36,1) 0.4s forwards;
}

@keyframes curtainRise {
  0%   { opacity: 0; transform: translateY(18px) scale(0.98); letter-spacing: 0.15em; }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) scale(1); letter-spacing: 0.02em; }
}

/* --- shared panel --- */
.panel, .hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
  position: relative;
}

/* --- hero --- */
.hero {
  background: #0a0a0a;
}

.hero-inner {
  max-width: 900px;
  text-align: left;
}

.line {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(1.6rem, 3.6vw, 3rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1.4s cubic-bezier(.22,.61,.36,1),
              transform 1.4s cubic-bezier(.22,.61,.36,1);
  margin-bottom: 0.2em;
}

.line.visible { opacity: 1; transform: translateY(0); }

.line-5 {
  margin-top: 1.6em;
  font-size: clamp(2.2rem, 5.2vw, 4.2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #f5f1e8;
}

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #5a574f;
  animation: hint 2.8s ease-in-out infinite;
}

@keyframes hint {
  0%, 100% { opacity: 0.25; transform: translate(-50%, 0); }
  50%      { opacity: 1;    transform: translate(-50%, 6px); }
}

/* --- dark panels --- */
.panel-dark { background: #0a0a0a; }

.panel-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(1.8rem, 4.2vw, 3.4rem);
  line-height: 1.2;
  text-align: center;
  max-width: 1100px;
}
.panel-title span {
  display: block;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1.4s ease, transform 1.4s ease;
}
.panel-title span:nth-child(2) { transition-delay: 0.4s; }
.panel-title span:nth-child(3) { transition-delay: 0.8s; }

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

.panel-sub {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  color: #c8c0a8;
  margin-top: 2.5rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1.6s ease 1.2s, transform 1.6s ease 1.2s;
  text-align: center;
}
[data-reveal].visible .panel-sub { opacity: 1; transform: translateY(0); }

/* --- spotlight (the "We plant" drop) --- */
.panel-spotlight {
  background:
    radial-gradient(ellipse at center, #1a1713 0%, #0a0a0a 70%);
}

.panel-mega {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(4rem, 14vw, 11rem);
  letter-spacing: -0.03em;
  line-height: 1;
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 2s cubic-bezier(.22,.61,.36,1),
              transform 2s cubic-bezier(.22,.61,.36,1),
              letter-spacing 2.4s ease;
}
[data-reveal].visible .panel-mega {
  opacity: 1;
  transform: scale(1);
}

/* --- steps --- */
.panel-steps {
  background: #0a0a0a;
  padding: 8rem 2rem;
}
.steps-heading {
  max-width: 900px;
  width: 100%;
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}
.steps-heading.visible { opacity: 1; transform: translateY(0); }
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #5a574f;
}
.eyebrow.center { text-align: center; margin-bottom: 2.5rem; }
.steps {
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
}
.step {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}
.step.visible { opacity: 1; transform: translateY(0); }

.step-num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: #8a8270;
  min-width: 3rem;
  padding-top: 0.5rem;
  letter-spacing: 0.05em;
}
.step-body { flex: 1; }
.step-head {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  color: #f5f1e8;
  margin-bottom: 0.8rem;
  letter-spacing: -0.01em;
}
.step-text {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: #c8c0a8;
  max-width: 680px;
}

/* --- close --- */
.panel-close {
  background: #0a0a0a;
  gap: 0.6rem;
}
.brand {
  font-style: normal;
  letter-spacing: 0.02em;
}
.panel-sub.light { color: #8a8270; margin-top: 1.5rem; }
.panel-sub.tiny {
  font-size: clamp(0.9rem, 1.3vw, 1.1rem);
  margin-top: 0.2rem;
  color: #5a574f;
}
.contact {
  display: inline-block;
  margin-top: 4rem;
  padding: 1rem 2.2rem;
  background: transparent;
  border: 1px solid #3a3830;
  color: #f5f1e8;
  text-decoration: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  transition: all 0.6s cubic-bezier(.22,.61,.36,1);
  opacity: 0;
  transform: translateY(10px);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
[data-reveal].visible .contact {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1.8s;
}
.contact:hover {
  background: #f5f1e8;
  color: #0a0a0a;
  border-color: #f5f1e8;
}
.contact-foot {
  margin-top: 1.4rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: lowercase;
  color: #5a574f;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}
[data-reveal].visible .contact-foot {
  transition-delay: 2.4s;
  opacity: 1;
  transform: translateY(0);
}

/* --- sound toggle --- */
.sound-toggle {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.7rem 1rem;
  background: transparent;
  border: 1px solid #3a3830;
  border-radius: 999px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 1.2s ease 4.4s, border-color 0.4s ease, background 0.4s ease;
  font-family: 'Inter', sans-serif;
}
.sound-toggle.ready { opacity: 1; }
.sound-toggle:hover { border-color: #f5f1e8; background: rgba(245,241,232,0.04); }

.sound-dot {
  width: 2px;
  height: 10px;
  background: #8a8270;
  border-radius: 1px;
  transition: background 0.3s ease;
}
.sound-toggle:hover .sound-dot { background: #f5f1e8; }

.sound-toggle.playing .sound-dot:nth-child(1) { animation: eq 0.9s ease-in-out infinite; }
.sound-toggle.playing .sound-dot:nth-child(2) { animation: eq 0.9s ease-in-out infinite 0.15s; }
.sound-toggle.playing .sound-dot:nth-child(3) { animation: eq 0.9s ease-in-out infinite 0.3s; }

@keyframes eq {
  0%, 100% { transform: scaleY(0.4); }
  50%      { transform: scaleY(1.3); }
}

.sound-label {
  margin-left: 0.4rem;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #8a8270;
  transition: color 0.3s ease;
}
.sound-toggle:hover .sound-label { color: #f5f1e8; }

/* --- passphrase modal --- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s cubic-bezier(.22,.61,.36,1), visibility 0s linear 0.6s;
}
.modal.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s cubic-bezier(.22,.61,.36,1), visibility 0s linear 0s;
}
.modal-card {
  position: relative;
  max-width: 480px;
  width: 100%;
  padding: 3.5rem 2.6rem 2.4rem;
  background: #0a0a0a;
  border: 1px solid #1d1a14;
  text-align: center;
  transform: translateY(16px);
  transition: transform 0.7s cubic-bezier(.22,.61,.36,1) 0.1s;
}
.modal.open .modal-card { transform: translateY(0); }
.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: #5a574f;
  font-family: 'Inter', sans-serif;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.4rem 0.6rem;
  transition: color 0.3s ease;
}
.modal-close:hover { color: #f5f1e8; }
.modal-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #8a8270;
  margin-bottom: 1rem;
}
.modal-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  color: #f5f1e8;
  margin-bottom: 2rem;
  line-height: 1.3;
}
.modal-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #3a3830;
  color: #f5f1e8;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: 1.1rem;
  padding: 0.6rem 0;
  margin-bottom: 2rem;
  outline: none;
  text-align: center;
  transition: border-color 0.3s ease;
}
.modal-input:focus { border-bottom-color: #f5f1e8; }
.modal-input::placeholder { color: #5a574f; }
.modal-submit {
  width: 100%;
  padding: 1rem 1.6rem;
  background: transparent;
  border: 1px solid #3a3830;
  color: #f5f1e8;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: lowercase;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(.22,.61,.36,1);
}
.modal-submit:hover {
  background: #f5f1e8;
  color: #0a0a0a;
  border-color: #f5f1e8;
}
.modal-foot {
  margin-top: 2rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: #5a574f;
}
.modal-success {
  padding: 1rem 0 2rem;
}
.modal-success-msg {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: #c8c0a8;
  line-height: 1.4;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- footer --- */
.foot {
  display: flex;
  justify-content: space-between;
  padding: 2rem 2.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #3a3830;
  background: #0a0a0a;
}
