/* ─── Reset ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ─── Typography ─── */
html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
}

body {
  width: 100%;
  min-height: 100%;
  background: #ffffff;
  cursor: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #111;
  line-height: 1.6;
}

/* ─── Nav ─── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  font-family: 'Pixelify Sans', sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  pointer-events: none;
}
.site-nav.visible {
  pointer-events: auto;
}

.nav-logo {
  width: 80px;
  height: auto;
  opacity: 0;
  filter: blur(6px);
  transform: translateY(-10px);
  transition: opacity 0.4s ease, filter 0.4s ease, transform 0.4s ease;
}
.site-nav.visible .nav-logo {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: rgba(0,0,0,0.45);
  text-decoration: none;
  opacity: 0;
  filter: blur(6px);
  transform: translateY(-8px);
  transition: opacity 0.35s ease, filter 0.35s ease, transform 0.35s ease, color 0.2s ease;
}
.site-nav.visible .nav-links a {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}
.site-nav.visible .nav-links a:nth-child(1) { transition-delay: 0.12s; }
.site-nav.visible .nav-links a:nth-child(2) { transition-delay: 0.18s; }
.site-nav.visible .nav-links a:nth-child(3) { transition-delay: 0.24s; }
.site-nav.visible .nav-links a:nth-child(4) { transition-delay: 0.30s; }
.nav-links a:hover {
  color: #000;
}

/* ─── Sections / Layout ─── */
.section {
  min-height: 100dvh;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  position: relative;
}

.section-inner {
  max-width: 600px;
  width: 100%;
}

/* ─── Reveal animations ─── */
.reveal {
  opacity: 0;
  filter: blur(6px);
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, filter 0.5s ease-out, transform 0.5s ease-out;
}
.reveal.visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* ─── Hero ─── */
.hero {
  flex-direction: column;
  gap: 24px;
  padding: 0;
}
.hero .section-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100dvh;
  max-width: none;
  gap: 24px;
}
.logo {
  width: 309px;
  max-width: 70vw;
  height: auto;
  transition: transform 0.4s cubic-bezier(0.25,1,0.5,1);
}
.logo:hover { transform: scale(1.03); }

/* ─── Logo write-on intro ─── */
.logo path {
  fill: transparent;
  stroke: black;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* ─── Tagline intro ─── */
.tagline {
  font-family: 'Pixelify Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(0,0,0,0.5);
  font-weight: 400;
  opacity: 0;
  filter: blur(6px);
  transform: translateY(8px);
  transition: opacity 0.6s ease, filter 0.6s ease, transform 0.6s ease;
}
.tagline.visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}
@media (min-width: 640px) { .tagline { font-size: 12px; } }

/* ─── Scroll hint intro ─── */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Pixelify Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(0,0,0,0.25);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.scroll-hint.visible {
  animation: hintPulse 2.5s ease-in-out infinite;
  opacity: 1;
}
@keyframes hintPulse {
  0%, 100% { opacity: 0.25; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.5; transform: translateX(-50%) translateY(4px); }
}

/* ─── Section typography ─── */
.section h2 {
  font-family: 'Pixelify Sans', sans-serif;
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 32px;
  color: #000;
}
.section p {
  font-size: 15px;
  color: #333;
  margin-bottom: 16px;
}
.section p:last-child {
  margin-bottom: 0;
}
.section p strong {
  color: #111;
}

/* ─── About / Team ─── */
.team {
  margin-top: 40px;
}
.team-member {
  margin-bottom: 28px;
}
.team-member:last-child {
  margin-bottom: 0;
}
.team-member h3 {
  font-family: 'Pixelify Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 6px;
  color: #000;
}
.team-member p {
  font-size: 14px;
  color: #555;
}

/* ─── Support ─── */
.email-link {
  display: inline-block;
  margin: 8px 0 32px;
  color: #000;
  font-family: 'Pixelify Sans', sans-serif;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.email-link:hover {
  color: #555;
}

/* ─── Privacy (shared styles for standalone page) ─── */
.privacy-section h3 {
  font-family: 'Pixelify Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  margin: 28px 0 10px;
  color: #000;
}
.privacy-section p {
  font-size: 14px;
  color: #444;
  margin-bottom: 12px;
  text-align: left;
}
.privacy-section .effective {
  font-size: 13px;
  color: #888;
  margin-bottom: 24px;
}

/* ─── Privacy page (standalone) ─── */
.privacy-page {
  cursor: auto;
}
.privacy-page html {
  scroll-snap-type: none;
}
.privacy-page .privacy-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 80px 24px 60px;
}
.privacy-page .back-link {
  display: inline-block;
  margin-bottom: 40px;
  font-family: 'Pixelify Sans', sans-serif;
  font-size: 13px;
  color: rgba(0,0,0,0.45);
  text-decoration: none;
  transition: color 0.2s ease;
}
.privacy-page .back-link:hover {
  color: #000;
}
.privacy-page h2 {
  font-family: 'Pixelify Sans', sans-serif;
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 32px;
  color: #000;
}

/* ─── Footer ─── */
.site-footer {
  text-align: center;
  padding: 40px 24px;
  font-size: 12px;
  color: rgba(0,0,0,0.35);
  font-family: 'Pixelify Sans', sans-serif;
  letter-spacing: 0.04em;
}

/* ─── Canvas layers ─── */
#particleCanvas, #wormCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
#particleCanvas { z-index: 9997; }
#wormCanvas { z-index: 9999; }

/* ─── Responsive ─── */
@media (max-width: 640px) {
  .site-nav {
    gap: 8px;
    font-size: 12px;
    padding: 14px 16px;
  }
  .nav-links {
    gap: 20px;
  }
  .nav-logo {
    width: 60px;
  }
  .section {
    padding: 60px 20px;
  }
  .section h2 {
    font-size: 24px;
    margin-bottom: 24px;
  }
  .section p {
    font-size: 14px;
  }
  .privacy-page .privacy-content {
    padding: 60px 20px 40px;
  }
}
