/* eesugi.com - Design Language Styles */
/* Colors: #E8663C #BFA98A #D4A024 #9B7B5A #C47A5A #E84B8A #2A1F14 #3B2F20 #F5EBD8 */
/* Fonts: Caveat (display), Nunito (body), Kalam (accent) */

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

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

body {
  background-color: #F5EBD8;
  color: #2A1F14;
  font-family: 'Nunito', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

.svg-filters {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ===== Background Blobs ===== */
.bg-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  opacity: 0;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.blob path {
  fill: currentColor;
}

.blob-1 {
  width: 450px;
  height: 450px;
  top: -5%;
  left: -8%;
  color: #D4A024;
  opacity: 0.08;
  animation: blobDrift1 20s ease-in-out infinite alternate;
}

.blob-2 {
  width: 380px;
  height: 380px;
  top: 25%;
  right: -10%;
  color: #E8663C;
  opacity: 0.05;
  animation: blobDrift2 25s ease-in-out infinite alternate;
}

.blob-3 {
  width: 500px;
  height: 500px;
  top: 55%;
  left: -12%;
  color: #C47A5A;
  opacity: 0.06;
  animation: blobDrift3 22s ease-in-out infinite alternate;
}

.blob-4 {
  width: 420px;
  height: 420px;
  top: 80%;
  right: -5%;
  color: #E84B8A;
  opacity: 0.04;
  animation: blobDrift4 18s ease-in-out infinite alternate;
}

@keyframes blobDrift1 {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  100% { transform: translate(40px, 30px) rotate(15deg) scale(1.05); }
}

@keyframes blobDrift2 {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  100% { transform: translate(-30px, 50px) rotate(-10deg) scale(1.08); }
}

@keyframes blobDrift3 {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  100% { transform: translate(50px, -20px) rotate(12deg) scale(0.95); }
}

@keyframes blobDrift4 {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  100% { transform: translate(-40px, -40px) rotate(-8deg) scale(1.1); }
}

/* ===== Brush Canvas ===== */
#brush-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.03;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.hero-content {
  position: relative;
}

.hero-title {
  font-family: 'Caveat', cursive;
  font-size: clamp(60px, 12vw, 160px);
  font-weight: 700;
  color: #2A1F14;
  letter-spacing: 0.02em;
  line-height: 1.1;
  filter: url(#ink-spread);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1.2s ease-out 0.3s forwards;
}

.hero-subtitle {
  font-family: 'Kalam', cursive;
  font-size: clamp(18px, 3vw, 32px);
  font-weight: 300;
  color: #9B7B5A;
  letter-spacing: 0.15em;
  margin-top: 0.5rem;
  opacity: 0;
  transform: translateY(15px);
  animation: fadeInUp 1s ease-out 0.8s forwards;
}

.hero-stroke {
  margin-top: 2rem;
  opacity: 0;
  animation: fadeIn 1s ease-out 1.3s forwards;
}

.brush-stroke-svg {
  width: clamp(200px, 50vw, 500px);
  height: auto;
  overflow: visible;
}

.brush-stroke-path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawStroke 2s ease-in-out 1.5s forwards;
}

@keyframes drawStroke {
  to { stroke-dashoffset: 0; }
}

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

@keyframes fadeIn {
  to { opacity: 1; }
}

.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeIn 1s ease-out 2.5s forwards;
}

.scroll-text {
  font-family: 'Kalam', cursive;
  font-size: 14px;
  color: #BFA98A;
  letter-spacing: 0.2em;
  text-transform: lowercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, #BFA98A, transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ===== Vignette Sections ===== */
.vignette {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
}

.vignette-content {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  max-width: 1000px;
  width: 100%;
}

.vignette-content--reverse {
  flex-direction: row-reverse;
}

.vignette-illustration {
  flex-shrink: 0;
  width: clamp(150px, 25vw, 280px);
  height: clamp(150px, 25vw, 280px);
}

.vignette-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.draw-path {
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  transition: stroke-dashoffset 1.5s ease-in-out;
}

.vignette.is-visible .draw-path {
  stroke-dashoffset: 0;
}

.vignette-text {
  flex: 1;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.vignette.is-visible .vignette-text {
  opacity: 1;
  transform: translateY(0);
}

.vignette-title {
  font-family: 'Caveat', cursive;
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 700;
  color: #E8663C;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
  filter: url(#ink-spread);
}

.vignette-body {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 300;
  line-height: 1.8;
  color: #3B2F20;
  max-width: 500px;
}

.vignette-body em {
  font-family: 'Kalam', cursive;
  font-style: normal;
  color: #E84B8A;
  font-weight: 400;
}

.section-accent {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: #BFA98A;
  border-radius: 50%;
  opacity: 0.5;
}

/* Alternate vignette title colors */
#vignette-taste .vignette-title { color: #D4A024; }
#vignette-craft .vignette-title { color: #E8663C; }
#vignette-music .vignette-title { color: #C47A5A; }
#vignette-friendship .vignette-title { color: #9B7B5A; }
#vignette-sunlight .vignette-title { color: #D4A024; }

/* ===== Closing Section ===== */
.closing {
  position: relative;
  z-index: 2;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
}

.closing-content {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.closing.is-visible .closing-content {
  opacity: 1;
  transform: translateY(0);
}

.closing-kanji {
  font-family: 'Caveat', cursive;
  font-size: clamp(48px, 10vw, 120px);
  font-weight: 700;
  color: #2A1F14;
  letter-spacing: 0.02em;
  line-height: 1.1;
  filter: url(#ink-spread);
  margin-bottom: 1.5rem;
}

.closing-english {
  font-family: 'Kalam', cursive;
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 300;
  color: #9B7B5A;
  line-height: 1.6;
}

.closing-stroke {
  margin-top: 2rem;
}

.closing-brush {
  width: clamp(150px, 40vw, 350px);
}

.closing-brush .brush-stroke-path {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  transition: stroke-dashoffset 2s ease-in-out;
}

.closing.is-visible .closing-brush .brush-stroke-path {
  stroke-dashoffset: 0;
}

/* ===== Floating Nav Dot ===== */
.nav-dot {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-dot-core {
  width: 14px;
  height: 14px;
  background: #2A1F14;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
  position: relative;
  z-index: 2;
}

.nav-dot:hover .nav-dot-core {
  transform: scale(1.3);
  background: #E8663C;
}

.nav-dot-menu {
  position: absolute;
  bottom: 100%;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
  padding-bottom: 1rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.nav-dot:hover .nav-dot-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dot-item {
  font-family: 'Kalam', cursive;
  font-size: 16px;
  color: #3B2F20;
  text-decoration: none;
  padding: 0.25rem 0.75rem;
  background: rgba(245, 235, 216, 0.9);
  border-radius: 20px;
  white-space: nowrap;
  transition: color 0.3s ease, background 0.3s ease, transform 0.3s ease;
  transform: translateX(10px);
}

.nav-dot:hover .nav-dot-item {
  transform: translateX(0);
}

.nav-dot:hover .nav-dot-item:nth-child(1) { transition-delay: 0.05s; }
.nav-dot:hover .nav-dot-item:nth-child(2) { transition-delay: 0.1s; }
.nav-dot:hover .nav-dot-item:nth-child(3) { transition-delay: 0.15s; }
.nav-dot:hover .nav-dot-item:nth-child(4) { transition-delay: 0.2s; }
.nav-dot:hover .nav-dot-item:nth-child(5) { transition-delay: 0.25s; }

.nav-dot-item:hover {
  color: #F5EBD8;
  background: #E8663C;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .vignette-content,
  .vignette-content--reverse {
    flex-direction: column;
    text-align: center;
  }

  .vignette-body {
    max-width: 100%;
  }

  .vignette-illustration {
    width: 180px;
    height: 180px;
  }

  .nav-dot {
    bottom: 1.5rem;
    right: 1.5rem;
  }
}

/* ===== Selection Color ===== */
::selection {
  background: #E84B8A;
  color: #F5EBD8;
}
