/* landing page styles */

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

:root {
  --cream:       #fbf7ef;
  --green:       #2f451f;
  --green-mid:   #3d5a28;
  --gold:        #c89f5d;
  --dark:        #0b1508;
  --dark-mid:    #1a2d10;
  --muted:       #6f755f;
  --border:      #dfd2b8;
}

html, body {
  width: 100%; height: 100%; overflow: hidden;
  font-family: 'Nunito', system-ui, sans-serif;
  background: var(--dark);
}

/* skip button */
#skipBtn {
  position: fixed; top: 22px; right: 28px; z-index: 999;
  padding: 9px 20px;
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.55);
  font-size: .82rem; font-weight: 600;
  cursor: pointer; backdrop-filter: blur(8px);
  transition: background .2s, color .2s, border-color .2s;
  opacity: 0;
  letter-spacing: .02em;
}
#skipBtn:hover {
  background: rgba(255,255,255,.14);
  color: #fff;
  border-color: rgba(255,255,255,.4);
}

/* stage */
#stage {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
}

.phase {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
}

/* phase 1 - dark logo */
#phLogo {
  background:
    radial-gradient(ellipse at 50% 40%, rgba(47,69,31,.4) 0%, transparent 65%),
    var(--dark);
}

#logoMark {
  width: clamp(110px, 22vmin, 170px);
  height: clamp(110px, 22vmin, 170px);
}

.lm-draw {
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
}
.lm-fill { opacity: 0; }

#logoWordmark {
  margin-top: 22px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1;
  opacity: 0;
}
.lw-story { color: rgba(255,253,248,.92); }
.lw-ducks { color: var(--gold); }

#logoTagline {
  margin-top: 14px;
  font-size: clamp(.82rem, 1.8vw, 1rem);
  color: rgba(255,255,255,.38);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0;
}

/* phase 2 - cream world */
#phWorld {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(200,159,93,.1) 0%, transparent 60%),
    var(--cream);
}

/* sparkles */
#sparkleField {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.sparkle {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  animation: twinkle var(--d, 3s) ease-in-out infinite var(--dl, 0s);
}
@keyframes twinkle {
  0%,100% { opacity: 0; transform: scale(.5); }
  50%      { opacity: .5; transform: scale(1.5); }
}

/* duck */
#duckCenter {
  position: relative; z-index: 3;
  opacity: 0; transform: translateY(-40px) scale(.7);
}
#duckGlow {
  position: absolute; inset: -50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,159,93,.18) 0%, transparent 70%);
  animation: glow-pulse 3.5s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%,100% { transform: scale(1); opacity: .6; }
  50%      { transform: scale(1.18); opacity: 1; }
}
#duckSvg {
  width: clamp(110px, 20vmin, 165px);
  height: clamp(110px, 20vmin, 165px);
  filter: drop-shadow(0 20px 44px rgba(47,69,31,.28));
  animation: duck-bob 3.5s ease-in-out infinite;
}
@keyframes duck-bob {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* orbit ring */
#orbitRing {
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  z-index: 2;
}

/* book spines */
.orb-book {
  position: absolute;
  width: clamp(34px, 5.5vmin, 52px);
  height: clamp(108px, 19vmin, 158px);
  border-radius: 3px 7px 7px 3px;
  background: hsl(var(--hue), 38%, 22%);
  border-left: 5px solid rgba(200,159,93,.4);
  box-shadow:
    6px 5px 22px rgba(0,0,0,.35),
    inset -3px 0 10px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  opacity: 0; transform: scale(0);
}

/* shimmer on spine */
.orb-book::after {
  content: '';
  position: absolute; left: 5px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom,
    transparent 10%,
    rgba(200,159,93,.5) 40%,
    rgba(200,159,93,.5) 60%,
    transparent 90%);
}

/* spine label */
.orb-book span {
  position: relative; z-index: 1;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(.5rem, 1vmin, .78rem);
  font-weight: 700;
  color: rgba(255,253,248,.72);
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
}

/* feature cards */
.feat-card {
  position: absolute;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px;
  background: rgba(255,253,248,.96);
  border: 1px solid var(--border);
  border-radius: 60px;
  box-shadow:
    0 8px 28px rgba(47,69,31,.13),
    0 2px 6px rgba(47,69,31,.07);
  white-space: nowrap;
  opacity: 0;
  backdrop-filter: blur(12px);
  z-index: 5;
}

.feat-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}

.feat-body {
  display: flex; flex-direction: column; gap: 1px;
}
.feat-label {
  font-family: 'Nunito', sans-serif;
  font-size: .92rem; font-weight: 800;
  color: var(--green);
  line-height: 1.2;
}
.feat-desc {
  font-size: .76rem; color: var(--muted);
  font-weight: 500;
}

/* card positions */
.feat-tl {
  top: clamp(12%, 16%, 22%);
  left: clamp(3%, 6%, 10%);
  transform: translateX(-60px);
}
.feat-tr {
  top: clamp(12%, 16%, 22%);
  right: clamp(3%, 6%, 10%);
  transform: translateX(60px);
}
.feat-bl {
  bottom: clamp(22%, 28%, 34%);
  left: clamp(3%, 6%, 10%);
  transform: translateX(-60px);
}
.feat-br {
  bottom: clamp(22%, 28%, 34%);
  right: clamp(3%, 6%, 10%);
  transform: translateX(60px);
}

/* world text */
#worldText {
  position: absolute;
  bottom: clamp(110px, 20vh, 190px);
  text-align: center;
  z-index: 4;
}
#mainTitle {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 900;
  line-height: .92;
  letter-spacing: -3px;
  opacity: 0; transform: translateY(30px);
}
.mt-s { color: var(--green); }
.mt-d { color: var(--gold); }

#mainTagline {
  margin-top: 14px;
  font-size: clamp(.9rem, 2vw, 1.12rem);
  color: var(--muted);
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  opacity: 0; transform: translateY(20px);
}

/* CTA button */
#ctaWrap {
  position: absolute;
  bottom: clamp(36px, 8vh, 68px);
  z-index: 10;
  display: flex; align-items: center; justify-content: center;
  position: absolute;
}
#ctaBtn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 17px 38px;
  border: none; border-radius: 999px; cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: 1.05rem; font-weight: 700;
  background: linear-gradient(135deg, var(--green-mid), var(--dark-mid));
  color: #fff;
  box-shadow: 0 10px 32px rgba(47,69,31,.42);
  opacity: 0; transform: translateY(22px) scale(.95);
  transition: transform .22s, box-shadow .22s;
  position: relative; z-index: 2;
  letter-spacing: .01em;
}
#ctaBtn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 18px 42px rgba(47,69,31,.52);
}
#ctaPulse {
  position: absolute;
  width: 100%; height: 100%;
  border-radius: 999px;
  border: 2px solid var(--green);
  opacity: 0; transform: scale(1);
  pointer-events: none;
}

/* transition overlay */
#transOverlay {
  position: fixed; inset: 0; z-index: 100;
  background: var(--cream);
  opacity: 0; pointer-events: none;
}

/* responsive */
@media (max-width: 700px) {
  .feat-card { padding: 10px 14px 10px 10px; gap: 10px; }
  .feat-icon  { width: 34px; height: 34px; }
  .feat-label { font-size: .84rem; }
  .feat-desc  { display: none; }
  .feat-tl, .feat-bl { left: 2%; }
  .feat-tr, .feat-br { right: 2%; }
  #mainTitle  { letter-spacing: -1.5px; }
}
@media (max-width: 480px) {
  .feat-tl, .feat-tr, .feat-bl, .feat-br { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  #duckSvg, #duckGlow, .sparkle { animation: none !important; }
}
