/* Design token trace: Interaction* Interaction: Interaction:** IntersectionObserver skeleton/bubble choreography instead standard scroll triggers */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --canvas: #faf5ef;
  --ink: #3a3a4a;
  --slate: #4a4a5a;
  --muted: #8a8a9a;
  --ghost: #e8e4df;
  --mint: #b8e6d0;
  --lilac: #c9b8e6;
  --peach: #f0c9b8;
  --lemon: #f0e6b8;
  --accent: #9b8ec4;
}

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 16% 12%, rgba(184, 230, 208, 0.28), transparent 24rem),
    radial-gradient(circle at 86% 26%, rgba(201, 184, 230, 0.24), transparent 25rem),
    linear-gradient(135deg, #faf5ef 0%, #f7eee8 55%, #faf5ef 100%);
  color: var(--slate);
  font-family: "Nunito", Inter, sans-serif;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.72;
}

.stage {
  position: relative;
  min-height: 100vh;
  perspective: 1000px;
  transform-style: preserve-3d;
}

.background-layer,
.midground-layer {
  position: fixed;
  inset: 0;
  transform-style: preserve-3d;
}

.background-layer {
  z-index: 0;
  overflow: hidden;
  pointer-events: auto;
  transform: translateZ(-200px) scale(1.2);
}

.ambient-shapes {
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  filter: url(#wobble-stroke);
}

.ambient-shape {
  opacity: 0.13;
  stroke: rgba(58, 58, 74, 0.3);
  stroke-width: 1.2;
  transform-box: fill-box;
  transform-origin: center;
}

.drift-a { animation: ambient-drift 48s ease-in-out infinite; }
.drift-b { animation: ambient-drift 56s ease-in-out -7s infinite reverse; }
.drift-c { animation: ambient-drift 44s ease-in-out -16s infinite; }
.drift-d { animation: ambient-drift 52s ease-in-out -25s infinite reverse; }
.drift-e { animation: ambient-drift 60s ease-in-out -10s infinite; }

@keyframes ambient-drift {
  0%, 100% { transform: translate3d(0, 34px, 0) rotate(-3deg) scale(0.96); }
  50% { transform: translate3d(34px, -44px, 0) rotate(4deg) scale(1.05); }
}

.midground-layer {
  z-index: 3;
  pointer-events: none;
  transform: translateZ(-80px) scale(1.08);
}

.foreground-layer {
  position: relative;
  z-index: 5;
  transform: translateZ(0);
}

.nav-dot {
  position: fixed;
  top: 30px;
  left: 30px;
  z-index: 20;
  width: 46px;
  height: 46px;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
}

.nav-dot::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1.5px solid var(--ink);
  border-radius: 48% 52% 46% 54%;
  background: rgba(250, 245, 239, 0.7);
  box-shadow: 0 14px 28px rgba(58, 58, 74, 0.08);
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1), background 0.35s ease;
}

.nav-dot span,
.nav-dot span::before {
  position: absolute;
  left: 16px;
  top: 22px;
  width: 14px;
  height: 1.5px;
  border-radius: 999px;
  background: var(--ink);
  content: "";
  z-index: 2;
  transition: transform 0.35s ease;
}

.nav-dot span::before { left: 0; top: 0; transform: rotate(90deg); }
.nav-dot:hover::before { transform: scale(1.12) rotate(-8deg); background: rgba(184, 230, 208, 0.72); }
.nav-dot.is-open::before { background: rgba(201, 184, 230, 0.8); transform: rotate(45deg) scale(1.08); }
.nav-dot.is-open span { transform: rotate(45deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 18;
  pointer-events: none;
  opacity: 0;
  background: rgba(250, 245, 239, 0.92);
  backdrop-filter: blur(5px);
  transition: opacity 0.45s ease;
}

.nav-overlay.is-open { opacity: 1; pointer-events: auto; }

.nav-note {
  position: absolute;
  display: inline-block;
  padding: 0.32em 0.55em 0.42em;
  border: 1.5px solid var(--ink);
  border-radius: 42% 58% 51% 49% / 54% 44% 56% 46%;
  color: var(--ink);
  background: rgba(240, 230, 184, 0.68);
  font-family: "Fredericka the Great", Futura, cursive;
  font-size: clamp(2.2rem, 6vw, 5.7rem);
  letter-spacing: 0.02em;
  text-decoration: none;
  transform: translateY(18px) rotate(var(--r));
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(.34,1.56,.64,1), background 0.3s ease;
}

.nav-overlay.is-open .nav-note { opacity: 1; transform: translateY(0) rotate(var(--r)); }
.nav-note:hover { background: rgba(184, 230, 208, 0.88); }
.note-one { --r: -7deg; left: 15%; top: 22%; transition-delay: 0.04s; }
.note-two { --r: 5deg; right: 17%; top: 17%; transition-delay: 0.10s; background: rgba(201,184,230,0.62); }
.note-three { --r: -3deg; left: 31%; top: 43%; transition-delay: 0.16s; background: rgba(184,230,208,0.66); }
.note-four { --r: 8deg; right: 20%; bottom: 24%; transition-delay: 0.22s; background: rgba(240,201,184,0.67); }
.note-five { --r: -5deg; left: 13%; bottom: 16%; transition-delay: 0.28s; }

.doodle {
  position: fixed;
  overflow: visible;
  pointer-events: none;
  opacity: 0.92;
}

.doodle text,
.eyebrow,
.site-footer span {
  font-family: "Azeret Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  fill: var(--accent);
  color: var(--accent);
}

.draw-path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
}

.draw-path.is-drawn { animation: draw-line 1.05s ease-out forwards; }
.doodle-start { left: 7%; top: 13%; width: 170px; transform: rotate(-7deg); }
.doodle-scroll { right: 7%; top: 44%; width: 120px; transform: rotate(7deg); }
.doodle-asterisk { left: 73%; top: 73%; width: 86px; transform: rotate(-11deg); }

@keyframes draw-line { to { stroke-dashoffset: 0; } }

.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 7rem 6vw 6rem;
  text-align: center;
}

.logo-script {
  width: min(76vw, 650px);
  height: auto;
  overflow: visible;
}

.logo-script text {
  font-family: "Fredericka the Great", Futura, cursive;
  font-size: 132px;
  letter-spacing: 0.02em;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-dasharray: 780;
  stroke-dashoffset: 780;
}

.logo-quirk { animation: logo-write 2s ease-out 0.2s forwards, logo-fill 0.5s ease 1.82s forwards; }
.logo-bar { opacity: 0; fill: var(--ink); stroke: none; animation: fade-up 0.8s ease 2.2s forwards; }

@keyframes logo-write { to { stroke-dashoffset: 0; } }
@keyframes logo-fill { to { fill: var(--ink); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.hero-copy {
  width: min(34rem, 76vw);
  margin-top: 1.1rem;
  color: var(--slate);
  font-weight: 300;
  opacity: 0;
  transform: translateY(10px);
  animation: fade-up 0.8s ease 2.8s forwards;
}

.content-section {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  padding: 5rem 7vw;
  margin-top: -3rem;
  scroll-margin-top: 4rem;
}

.left-shift { justify-content: flex-start; padding-left: clamp(3rem, 9vw, 9rem); }
.right-shift { justify-content: flex-end; padding-right: clamp(3rem, 10vw, 10rem); }
.narrow .napkin-card { max-width: 36rem; }
.wide .napkin-card { max-width: 45rem; }
.finale { padding-bottom: 8rem; }

.skeleton-wrap {
  position: relative;
  width: min(100%, 42rem);
}

.skeleton-lines {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  gap: 1.2rem;
  align-content: center;
  padding: 3.2rem;
  border-radius: 42px 35px 46px 38px;
  border: 1.5px solid rgba(232, 228, 223, 0.9);
  background: rgba(250, 245, 239, 0.72);
  opacity: 1;
  transform: scale(1);
}

.skeleton-lines i {
  display: block;
  height: 1.2rem;
  border-radius: 64% 36% 50% 50% / 54% 45% 55% 46%;
  background: linear-gradient(100deg, #e8e4df 0%, #b8e6d0 32%, #c9b8e6 54%, #f0c9b8 76%, #e8e4df 100%);
  background-size: 220% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

.skeleton-lines i:nth-child(2) { width: 82%; animation-delay: 0.1s; }
.skeleton-lines i:nth-child(3) { width: 58%; animation-delay: 0.2s; }
.skeleton-wrap.is-visible .skeleton-lines { animation: skeleton-pop 0.72s cubic-bezier(.34,1.56,.64,1) forwards; }

@keyframes shimmer { 0% { background-position: 180% 0; } 100% { background-position: -40% 0; } }
@keyframes skeleton-pop { 0% { opacity: 1; transform: scale(1); } 58% { opacity: 1; transform: scale(1.05); } 100% { opacity: 0; transform: scale(0); visibility: hidden; } }

.napkin-card {
  position: relative;
  max-width: 42rem;
  padding: clamp(2rem, 4vw, 3.4rem);
  color: var(--slate);
  background: rgba(250, 245, 239, 0.82);
  border: 1.5px solid transparent;
  border-radius: 38px 46px 36px 42px / 42px 38px 47px 35px;
  box-shadow: 0 28px 80px rgba(58, 58, 74, 0.08);
  opacity: 0.28;
  transform: translateY(20px) rotate(0.4deg);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.34,1.56,.64,1);
}

.napkin-card::before {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1.7px solid var(--ink);
  border-radius: 46px 39px 50px 42px / 41px 48px 39px 50px;
  opacity: 0.88;
  pointer-events: none;
  clip-path: inset(0 100% 0 0);
}

.skeleton-wrap.is-visible .napkin-card { opacity: 1; transform: translateY(0) rotate(0.4deg); transition-delay: 0.45s; }
.skeleton-wrap.is-visible .napkin-card::before { animation: border-sketch 1s ease-out 0.62s forwards; }
.tilt-left { transform: translateY(20px) rotate(-1.5deg); }
.tilt-right { transform: translateY(20px) rotate(1.8deg); }
.skeleton-wrap.is-visible .tilt-left { transform: translateY(0) rotate(-1.5deg); }
.skeleton-wrap.is-visible .tilt-right { transform: translateY(0) rotate(1.8deg); }

@keyframes border-sketch { to { clip-path: inset(0 0 0 0); } }

.lemon-card { background: rgba(240, 230, 184, 0.34); }
.mint-card { background: rgba(184, 230, 208, 0.34); }
.lilac-card { background: rgba(201, 184, 230, 0.30); }
.peach-card { background: rgba(240, 201, 184, 0.32); }

.eyebrow {
  display: inline-block;
  margin-bottom: 0.8rem;
}

h1 {
  color: var(--ink);
  font-family: "Fredericka the Great", Futura, cursive;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.08;
  margin-bottom: 1.1rem;
}

p + p { margin-top: 1rem; }
.underline { width: min(100%, 430px); margin-top: 1.4rem; }
.underline .draw-path { stroke: var(--accent); stroke-width: 3; }
.skeleton-wrap.is-visible .underline .draw-path { animation: draw-line 1s ease-out 0.78s forwards; }

.bubble-particle {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(58, 58, 74, 0.74);
  transform: translate3d(var(--x), var(--y), 0) scale(var(--scale));
  opacity: var(--opacity);
  background: var(--color);
  box-shadow: inset 8px 10px 18px rgba(250, 245, 239, 0.38);
  pointer-events: auto;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: rgba(58, 58, 74, 0.56);
  font-family: "Azeret Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  transition: opacity 0.2s ease;
}

.bubble-particle::before {
  content: "";
  position: absolute;
  inset: 16%;
  border-top: 1px solid rgba(250, 245, 239, 0.68);
  border-radius: 50%;
  transform: rotate(-28deg);
}

.bubble-particle.is-popping { animation: bubble-pop 0.42s ease-out forwards; }
@keyframes bubble-pop { to { opacity: 0; transform: translate3d(var(--x), var(--y), 0) scale(0); } }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.5rem 7vw 3.5rem;
  border-top: 1px solid rgba(232, 228, 223, 0.9);
  color: var(--muted);
}

@media (max-width: 760px) {
  .doodle { display: none; }
  .nav-note { font-size: clamp(2rem, 13vw, 4rem); }
  .note-one, .note-three, .note-five { left: 12%; }
  .note-two, .note-four { right: 10%; }
  .content-section, .left-shift, .right-shift { justify-content: center; min-height: 70vh; padding: 4rem 1.2rem; margin-top: -1rem; }
  .skeleton-lines, .napkin-card { padding: 2rem; }
  .site-footer { flex-direction: column; }
}
